slimbot
Advanced tools
Comparing version 0.7.4 to 0.7.5
{ | ||
"name": "slimbot", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"description": "Simple and minimal Telegram Bot API for Node.js. No frills.", | ||
@@ -19,3 +19,3 @@ "author": "Edison Chee <edisonchee@live.com>", | ||
"engines": { | ||
"node": "^8.4.0" | ||
"node": "^8.7.0" | ||
}, | ||
@@ -28,9 +28,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"bluebird": "^3.5.0", | ||
"bluebird": "^3.5.1", | ||
"eventemitter3": "^2.0.3", | ||
"request-promise": "^4.2.1" | ||
"request-promise": "^4.2.2" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "^2.13.1", | ||
"eslint": "^4.6.1", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^4.8.0", | ||
"istanbul": "^0.4.5", | ||
@@ -37,0 +37,0 @@ "jasmine": "^2.8.0", |
@@ -10,3 +10,3 @@ [![Build Status](https://travis-ci.org/edisonchee/slimbot.svg?branch=master)](https://travis-ci.org/edisonchee/slimbot) | ||
Updated for [Bot API 3.3](https://core.telegram.org/bots/api#august-23-2017). | ||
Updated for [Bot API 3.4](https://core.telegram.org/bots/api#october-11-2017). | ||
@@ -13,0 +13,0 @@ ## Resources |
@@ -483,2 +483,64 @@ const EventEmitter = require('eventemitter3'); | ||
editMessageLiveLocation(chatId, messageId, lat, lon, optionalParams, callback) { | ||
let params = { | ||
chat_id: chatId, | ||
message_id: messageId, | ||
latitude: lat, | ||
longitude: lon | ||
} | ||
if (typeof optionalParams == 'function') { | ||
callback = optionalParams; | ||
} else { | ||
Object.assign(params, optionalParams); | ||
} | ||
return this._request('editMessageLiveLocation', params, callback); | ||
} | ||
editInlineMessageLiveLocation(inlineMessageId, lat, lon, optionalParams, callback) { | ||
let params = { | ||
inline_message_id: inlineMessageId, | ||
latitude: lat, | ||
longitude: lon | ||
} | ||
if (typeof optionalParams == 'function') { | ||
callback = optionalParams; | ||
} else { | ||
Object.assign(params, optionalParams); | ||
} | ||
return this._request('editMessageLiveLocation', params, callback); | ||
} | ||
stopMessageLiveLocation(chatId, messageId, optionalParams, callback) { | ||
let params = { | ||
chat_id: chatId, | ||
message_id: messageId | ||
} | ||
if (typeof optionalParams == 'function') { | ||
callback = optionalParams; | ||
} else { | ||
Object.assign(params, optionalParams); | ||
} | ||
return this._request('stopMessageLiveLocation', params, callback); | ||
} | ||
stopInlineMessageLiveLocation(inlineMessageId, optionalParams, callback) { | ||
let params = { | ||
inline_message_id: inlineMessageId | ||
} | ||
if (typeof optionalParams == 'function') { | ||
callback = optionalParams; | ||
} else { | ||
Object.assign(params, optionalParams); | ||
} | ||
return this._request('stopMessageLiveLocation', params, callback); | ||
} | ||
sendVenue(chatId, lat, lon, title, address, optionalParams, callback) { | ||
@@ -718,2 +780,19 @@ let params = { | ||
setChatStickerSet(chatId, stickerSetName, callback) { | ||
let params = { | ||
chat_id: chatId, | ||
sticker_set_name: stickerSetName | ||
} | ||
return this._request('setChatStickerSet', params, callback); | ||
} | ||
deleteChatStickerSet(chatId, callback) { | ||
let params = { | ||
chat_id: chatId | ||
} | ||
return this._request('deleteChatStickerSet', params, callback); | ||
} | ||
// Payment | ||
@@ -720,0 +799,0 @@ |
Sorry, the diff of this file is not supported yet
259728
1070
Updatedbluebird@^3.5.1
Updatedrequest-promise@^4.2.2