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
+22
@@ -34,6 +34,7 @@ const MessageSubTypes = [
|
||||
'invoice',
|
||||
'group_chat_created',
|
||||
'game',
|
||||
'dice',
|
||||
'document',
|
||||
'delete_chat_photo',
|
||||
'contact',
|
||||
@@ -419,6 +420,11 @@ class TelegrafContext {
|
||||
return this.telegram.sendAudio(this.chat.id, ...args)
|
||||
}
|
||||
|
||||
replyWithDice (...args) {
|
||||
this.assert(this.chat, 'replyWithDice')
|
||||
return this.telegram.sendDice(this.chat.id, ...args)
|
||||
}
|
||||
|
||||
replyWithDocument (...args) {
|
||||
this.assert(this.chat, 'replyWithDocument')
|
||||
return this.telegram.sendDocument(this.chat.id, ...args)
|
||||
@@ -512,6 +518,10 @@ class TelegrafContext {
|
||||
return this.telegram.setStickerPositionInSet(sticker, position)
|
||||
}
|
||||
|
||||
setStickerSetThumb (...args) {
|
||||
return this.telegram.setStickerSetThumb(...args)
|
||||
}
|
||||
|
||||
deleteStickerFromSet (sticker) {
|
||||
return this.telegram.deleteStickerFromSet(sticker)
|
||||
}
|
||||
@@ -531,10 +541,22 @@ class TelegrafContext {
|
||||
return this.telegram.addStickerToSet(this.from.id, ...args)
|
||||
}
|
||||
|
||||
getMyCommands () {
|
||||
return this.telegram.getMyCommands()
|
||||
}
|
||||
|
||||
setMyCommands (...args) {
|
||||
return this.telegram.setMyCommands(...args)
|
||||
}
|
||||
|
||||
replyWithMarkdown (markdown, extra) {
|
||||
return this.reply(markdown, { parse_mode: 'Markdown', ...extra })
|
||||
}
|
||||
|
||||
replyWithMarkdownV2 (markdown, extra) {
|
||||
return this.reply(markdown, { parse_mode: 'MarkdownV2', ...extra })
|
||||
}
|
||||
|
||||
replyWithHTML (html, extra) {
|
||||
return this.reply(html, { parse_mode: 'HTML', ...extra })
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user