IPC removed, replaced by WS
This commit is contained in:
1 parent
ba4217fb24
commit
656c193511
503 files changed
+28128
-34498
No files matched your search
+16
@@ -115,6 +115,10 @@ class Telegram extends ApiClient {
|
||||
return this.callApi('sendPhoto', { chat_id: chatId, photo, ...extra })
|
||||
}
|
||||
|
||||
sendDice (chatId, extra) {
|
||||
return this.callApi('sendDice', { chat_id: chatId, ...extra })
|
||||
}
|
||||
|
||||
sendDocument (chatId, document, extra) {
|
||||
return this.callApi('sendDocument', { chat_id: chatId, document, ...extra })
|
||||
}
|
||||
@@ -386,10 +390,22 @@ class Telegram extends ApiClient {
|
||||
})
|
||||
}
|
||||
|
||||
setStickerSetThumb (name, userId, thumb) {
|
||||
return this.callApi('setStickerSetThumb', { name, user_id: userId, thumb })
|
||||
}
|
||||
|
||||
deleteStickerFromSet (sticker) {
|
||||
return this.callApi('deleteStickerFromSet', { sticker })
|
||||
}
|
||||
|
||||
getMyCommands () {
|
||||
return this.callApi('getMyCommands')
|
||||
}
|
||||
|
||||
setMyCommands (commands) {
|
||||
return this.callApi('setMyCommands', { commands })
|
||||
}
|
||||
|
||||
setPassportDataErrors (userId, errors) {
|
||||
return this.callApi('setPassportDataErrors', {
|
||||
user_id: userId,
|
||||
|
||||
Reference in new issue
Block a user