Comparing version 4.9.0-canary.6 to 4.9.0-canary.7
@@ -211,4 +211,4 @@ "use strict"; | ||
*/ | ||
respond(...args) { | ||
this.assert(this.chat, 'respond'); | ||
sendMessage(...args) { | ||
this.assert(this.chat, 'sendMessage'); | ||
return this.telegram.sendMessage(this.chat.id, ...args); | ||
@@ -220,4 +220,4 @@ } | ||
reply(...args) { | ||
(0, util_1.deprecate)('ctx.reply', 'reply', 'respond', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respond(...args); | ||
(0, util_1.deprecate)('ctx.reply', 'reply', 'sendMessage', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendMessage(...args); | ||
} | ||
@@ -393,5 +393,5 @@ /** | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithphoto | ||
* @see https://core.telegram.org/bots/api#sendphoto | ||
*/ | ||
respondWithPhoto(...args) { | ||
sendPhoto(...args) { | ||
this.assert(this.chat, 'replyWithPhoto'); | ||
@@ -401,12 +401,12 @@ return this.telegram.sendPhoto(this.chat.id, ...args); | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithphoto | ||
* @see https://core.telegram.org/bots/api#sendphoto | ||
*/ | ||
replyWithPhoto(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithPhoto', 'reply', 'respondWithPhoto', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithPhoto(...args); | ||
(0, util_1.deprecate)('ctx.replyWithPhoto', 'reply', 'sendPhoto', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendPhoto(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithmediagroup | ||
* @see https://core.telegram.org/bots/api#sendmediagroup | ||
*/ | ||
respondWithMediaGroup(...args) { | ||
sendMediaGroup(...args) { | ||
this.assert(this.chat, 'replyWithMediaGroup'); | ||
@@ -416,54 +416,54 @@ return this.telegram.sendMediaGroup(this.chat.id, ...args); | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithmediagroup | ||
* @see https://core.telegram.org/bots/api#sendmediagroup | ||
*/ | ||
replyWithMediaGroup(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithMediaGroup', 'reply', 'respondWithMediaGroup', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithMediaGroup(...args); | ||
(0, util_1.deprecate)('ctx.replyWithMediaGroup', 'reply', 'sendMediaGroup', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendMediaGroup(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithaudio | ||
* @see https://core.telegram.org/bots/api#sendaudio | ||
*/ | ||
respondWithAudio(...args) { | ||
this.assert(this.chat, 'respondWithAudio'); | ||
sendAudio(...args) { | ||
this.assert(this.chat, 'sendAudio'); | ||
return this.telegram.sendAudio(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithaudio | ||
* @see https://core.telegram.org/bots/api#sendaudio | ||
*/ | ||
replyWithAudio(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithAudio', 'reply', 'respondWithAudio', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithAudio(...args); | ||
(0, util_1.deprecate)('ctx.replyWithAudio', 'reply', 'sendAudio', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendAudio(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdice | ||
* @see https://core.telegram.org/bots/api#senddice | ||
*/ | ||
respondWithDice(...args) { | ||
this.assert(this.chat, 'respondWithDice'); | ||
sendDice(...args) { | ||
this.assert(this.chat, 'sendDice'); | ||
return this.telegram.sendDice(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdice | ||
* @see https://core.telegram.org/bots/api#senddice | ||
*/ | ||
replyWithDice(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithDice', 'reply', 'respondWithDice', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithDice(...args); | ||
(0, util_1.deprecate)('ctx.replyWithDice', 'reply', 'sendDice', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendDice(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdocument | ||
* @see https://core.telegram.org/bots/api#senddocument | ||
*/ | ||
respondWithDocument(...args) { | ||
this.assert(this.chat, 'respondWithDocument'); | ||
sendDocument(...args) { | ||
this.assert(this.chat, 'sendDocument'); | ||
return this.telegram.sendDocument(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdocument | ||
* @see https://core.telegram.org/bots/api#senddocument | ||
*/ | ||
replyWithDocument(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithDocument', 'reply', 'respondWithDocument', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithDocument(...args); | ||
(0, util_1.deprecate)('ctx.replyWithDocument', 'reply', 'sendDocument', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendDocument(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithsticker | ||
* @see https://core.telegram.org/bots/api#sendsticker | ||
*/ | ||
respondWithSticker(...args) { | ||
sendSticker(...args) { | ||
this.assert(this.chat, 'replyWithSticker'); | ||
@@ -473,26 +473,26 @@ return this.telegram.sendSticker(this.chat.id, ...args); | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithsticker | ||
* @see https://core.telegram.org/bots/api#sendsticker | ||
*/ | ||
replyWithSticker(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithSticker', 'reply', 'respondWithSticker', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithSticker(...args); | ||
(0, util_1.deprecate)('ctx.replyWithSticker', 'reply', 'sendSticker', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendSticker(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideo | ||
* @see https://core.telegram.org/bots/api#sendvideo | ||
*/ | ||
respondWithVideo(...args) { | ||
this.assert(this.chat, 'respondWithVideo'); | ||
sendVideo(...args) { | ||
this.assert(this.chat, 'sendVideo'); | ||
return this.telegram.sendVideo(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideo | ||
* @see https://core.telegram.org/bots/api#sendvideo | ||
*/ | ||
replyWithVideo(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithVideo', 'reply', 'respondWithVideo', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithVideo(...args); | ||
(0, util_1.deprecate)('ctx.replyWithVideo', 'reply', 'sendVideo', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendVideo(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithanimation | ||
* @see https://core.telegram.org/bots/api#sendanimation | ||
*/ | ||
respondWithAnimation(...args) { | ||
sendAnimation(...args) { | ||
this.assert(this.chat, 'replyWithAnimation'); | ||
@@ -502,91 +502,91 @@ return this.telegram.sendAnimation(this.chat.id, ...args); | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithanimation | ||
* @see https://core.telegram.org/bots/api#sendanimation | ||
*/ | ||
replyWithAnimation(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithAnimation', 'reply', 'respondWithAnimation', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithAnimation(...args); | ||
(0, util_1.deprecate)('ctx.replyWithAnimation', 'reply', 'sendAnimation', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendAnimation(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideonote | ||
* @see https://core.telegram.org/bots/api#sendvideonote | ||
*/ | ||
respondWithVideoNote(...args) { | ||
this.assert(this.chat, 'respondWithVideoNote'); | ||
sendVideoNote(...args) { | ||
this.assert(this.chat, 'sendVideoNote'); | ||
return this.telegram.sendVideoNote(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideonote | ||
* @see https://core.telegram.org/bots/api#sendvideonote | ||
*/ | ||
replyWithVideoNote(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithVideoNote', 'reply', 'respondWithVideoNote', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithVideoNote(...args); | ||
(0, util_1.deprecate)('ctx.replyWithVideoNote', 'reply', 'sendVideoNote', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendVideoNote(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithinvoice | ||
* @see https://core.telegram.org/bots/api#sendinvoice | ||
*/ | ||
respondWithInvoice(...args) { | ||
this.assert(this.chat, 'respondWithInvoice'); | ||
sendInvoice(...args) { | ||
this.assert(this.chat, 'sendInvoice'); | ||
return this.telegram.sendInvoice(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithinvoice | ||
* @see https://core.telegram.org/bots/api#sendinvoice | ||
*/ | ||
replyWithInvoice(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithInvoice', 'reply', 'respondWithInvoice', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithInvoice(...args); | ||
(0, util_1.deprecate)('ctx.replyWithInvoice', 'reply', 'sendInvoice', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendInvoice(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithgame | ||
* @see https://core.telegram.org/bots/api#sendgame | ||
*/ | ||
respondWithGame(...args) { | ||
this.assert(this.chat, 'respondWithGame'); | ||
sendGame(...args) { | ||
this.assert(this.chat, 'sendGame'); | ||
return this.telegram.sendGame(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithgame | ||
* @see https://core.telegram.org/bots/api#sendgame | ||
*/ | ||
replyWithGame(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithGame', 'reply', 'respondWithGame', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithGame(...args); | ||
(0, util_1.deprecate)('ctx.replyWithGame', 'reply', 'sendGame', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendGame(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvoice | ||
* @see https://core.telegram.org/bots/api#sendvoice | ||
*/ | ||
respondWithVoice(...args) { | ||
this.assert(this.chat, 'respondWithVoice'); | ||
sendVoice(...args) { | ||
this.assert(this.chat, 'sendVoice'); | ||
return this.telegram.sendVoice(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvoice | ||
* @see https://core.telegram.org/bots/api#sendvoice | ||
*/ | ||
replyWithVoice(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithVoice', 'reply', 'respondWithVoice', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithVoice(...args); | ||
(0, util_1.deprecate)('ctx.replyWithVoice', 'reply', 'sendVoice', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendVoice(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithpoll | ||
* @see https://core.telegram.org/bots/api#sendpoll | ||
*/ | ||
respondWithPoll(...args) { | ||
this.assert(this.chat, 'respondWithPoll'); | ||
sendPoll(...args) { | ||
this.assert(this.chat, 'sendPoll'); | ||
return this.telegram.sendPoll(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithpoll | ||
* @see https://core.telegram.org/bots/api#sendpoll | ||
*/ | ||
replyWithPoll(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithPoll', 'reply', 'respondWithPoll', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithPoll(...args); | ||
(0, util_1.deprecate)('ctx.replyWithPoll', 'reply', 'sendPoll', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendPoll(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithquiz | ||
* @see https://core.telegram.org/bots/api#sendquiz | ||
*/ | ||
respondWithQuiz(...args) { | ||
this.assert(this.chat, 'respondWithQuiz'); | ||
sendQuiz(...args) { | ||
this.assert(this.chat, 'sendQuiz'); | ||
return this.telegram.sendQuiz(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithquiz | ||
* @see https://core.telegram.org/bots/api#sendquiz | ||
*/ | ||
replyWithQuiz(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithQuiz', 'reply', 'respondWithQuiz', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithQuiz(...args); | ||
(0, util_1.deprecate)('ctx.replyWithQuiz', 'reply', 'sendQuiz', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendQuiz(...args); | ||
} | ||
@@ -601,56 +601,56 @@ /** | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithchataction | ||
* @see https://core.telegram.org/bots/api#sendchataction | ||
*/ | ||
respondWithChatAction(...args) { | ||
this.assert(this.chat, 'respondWithChatAction'); | ||
sendChatAction(...args) { | ||
this.assert(this.chat, 'sendChatAction'); | ||
return this.telegram.sendChatAction(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithchataction | ||
* @see https://core.telegram.org/bots/api#sendchataction | ||
*/ | ||
replyWithChatAction(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithChatAction', 'reply', 'respondWithChatAction'); | ||
return this.respondWithChatAction(...args); | ||
(0, util_1.deprecate)('ctx.replyWithChatAction', 'reply', 'sendChatAction'); | ||
return this.sendChatAction(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithlocation | ||
* @see https://core.telegram.org/bots/api#sendlocation | ||
*/ | ||
respondWithLocation(...args) { | ||
this.assert(this.chat, 'respondWithLocation'); | ||
sendLocation(...args) { | ||
this.assert(this.chat, 'sendLocation'); | ||
return this.telegram.sendLocation(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithlocation | ||
* @see https://core.telegram.org/bots/api#sendlocation | ||
*/ | ||
replyWithLocation(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithLocation', 'reply', 'respondWithLocation', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithLocation(...args); | ||
(0, util_1.deprecate)('ctx.replyWithLocation', 'reply', 'sendLocation', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendLocation(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvenue | ||
* @see https://core.telegram.org/bots/api#sendvenue | ||
*/ | ||
respondWithVenue(...args) { | ||
this.assert(this.chat, 'respondWithVenue'); | ||
sendVenue(...args) { | ||
this.assert(this.chat, 'sendVenue'); | ||
return this.telegram.sendVenue(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvenue | ||
* @see https://core.telegram.org/bots/api#sendvenue | ||
*/ | ||
replyWithVenue(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithVenue', 'reply', 'respondWithVenue', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithVenue(...args); | ||
(0, util_1.deprecate)('ctx.replyWithVenue', 'reply', 'sendVenue', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendVenue(...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithcontact | ||
* @see https://core.telegram.org/bots/api#sendcontact | ||
*/ | ||
respondWithContact(...args) { | ||
this.assert(this.chat, 'respondWithContact'); | ||
sendContact(...args) { | ||
this.assert(this.chat, 'sendContact'); | ||
return this.telegram.sendContact(this.chat.id, ...args); | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithcontact | ||
* @see https://core.telegram.org/bots/api#sendcontact | ||
*/ | ||
replyWithContact(...args) { | ||
(0, util_1.deprecate)('ctx.replyWithContact', 'reply', 'respondWithContact', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.respondWithContact(...args); | ||
(0, util_1.deprecate)('ctx.replyWithContact', 'reply', 'sendContact', 'https://telegraf.js.org/experimental#new-reply'); | ||
return this.sendContact(...args); | ||
} | ||
@@ -657,0 +657,0 @@ /** |
{ | ||
"name": "telegraf", | ||
"version": "4.9.0-canary.6", | ||
"version": "4.9.0-canary.7", | ||
"description": "Modern Telegram Bot Framework", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -354,4 +354,4 @@ import * as tg from './core/types/typegram' | ||
*/ | ||
respond(this: Context, ...args: Shorthand<'sendMessage'>) { | ||
this.assert(this.chat, 'respond') | ||
sendMessage(this: Context, ...args: Shorthand<'sendMessage'>) { | ||
this.assert(this.chat, 'sendMessage') | ||
return this.telegram.sendMessage(this.chat.id, ...args) | ||
@@ -367,6 +367,6 @@ } | ||
'reply', | ||
'respond', | ||
'sendMessage', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respond(...args) | ||
return this.sendMessage(...args) | ||
} | ||
@@ -591,5 +591,5 @@ | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithphoto | ||
* @see https://core.telegram.org/bots/api#sendphoto | ||
*/ | ||
respondWithPhoto(this: Context, ...args: Shorthand<'sendPhoto'>) { | ||
sendPhoto(this: Context, ...args: Shorthand<'sendPhoto'>) { | ||
this.assert(this.chat, 'replyWithPhoto') | ||
@@ -600,3 +600,3 @@ return this.telegram.sendPhoto(this.chat.id, ...args) | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithphoto | ||
* @see https://core.telegram.org/bots/api#sendphoto | ||
*/ | ||
@@ -607,12 +607,12 @@ replyWithPhoto(this: Context, ...args: Shorthand<'sendPhoto'>) { | ||
'reply', | ||
'respondWithPhoto', | ||
'sendPhoto', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithPhoto(...args) | ||
return this.sendPhoto(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithmediagroup | ||
* @see https://core.telegram.org/bots/api#sendmediagroup | ||
*/ | ||
respondWithMediaGroup(this: Context, ...args: Shorthand<'sendMediaGroup'>) { | ||
sendMediaGroup(this: Context, ...args: Shorthand<'sendMediaGroup'>) { | ||
this.assert(this.chat, 'replyWithMediaGroup') | ||
@@ -623,3 +623,3 @@ return this.telegram.sendMediaGroup(this.chat.id, ...args) | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithmediagroup | ||
* @see https://core.telegram.org/bots/api#sendmediagroup | ||
*/ | ||
@@ -630,13 +630,13 @@ replyWithMediaGroup(this: Context, ...args: Shorthand<'sendMediaGroup'>) { | ||
'reply', | ||
'respondWithMediaGroup', | ||
'sendMediaGroup', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithMediaGroup(...args) | ||
return this.sendMediaGroup(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithaudio | ||
* @see https://core.telegram.org/bots/api#sendaudio | ||
*/ | ||
respondWithAudio(this: Context, ...args: Shorthand<'sendAudio'>) { | ||
this.assert(this.chat, 'respondWithAudio') | ||
sendAudio(this: Context, ...args: Shorthand<'sendAudio'>) { | ||
this.assert(this.chat, 'sendAudio') | ||
return this.telegram.sendAudio(this.chat.id, ...args) | ||
@@ -646,3 +646,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithaudio | ||
* @see https://core.telegram.org/bots/api#sendaudio | ||
*/ | ||
@@ -653,13 +653,13 @@ replyWithAudio(this: Context, ...args: Shorthand<'sendAudio'>) { | ||
'reply', | ||
'respondWithAudio', | ||
'sendAudio', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithAudio(...args) | ||
return this.sendAudio(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdice | ||
* @see https://core.telegram.org/bots/api#senddice | ||
*/ | ||
respondWithDice(this: Context, ...args: Shorthand<'sendDice'>) { | ||
this.assert(this.chat, 'respondWithDice') | ||
sendDice(this: Context, ...args: Shorthand<'sendDice'>) { | ||
this.assert(this.chat, 'sendDice') | ||
return this.telegram.sendDice(this.chat.id, ...args) | ||
@@ -669,3 +669,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdice | ||
* @see https://core.telegram.org/bots/api#senddice | ||
*/ | ||
@@ -676,13 +676,13 @@ replyWithDice(this: Context, ...args: Shorthand<'sendDice'>) { | ||
'reply', | ||
'respondWithDice', | ||
'sendDice', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithDice(...args) | ||
return this.sendDice(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdocument | ||
* @see https://core.telegram.org/bots/api#senddocument | ||
*/ | ||
respondWithDocument(this: Context, ...args: Shorthand<'sendDocument'>) { | ||
this.assert(this.chat, 'respondWithDocument') | ||
sendDocument(this: Context, ...args: Shorthand<'sendDocument'>) { | ||
this.assert(this.chat, 'sendDocument') | ||
return this.telegram.sendDocument(this.chat.id, ...args) | ||
@@ -692,3 +692,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdocument | ||
* @see https://core.telegram.org/bots/api#senddocument | ||
*/ | ||
@@ -699,12 +699,12 @@ replyWithDocument(this: Context, ...args: Shorthand<'sendDocument'>) { | ||
'reply', | ||
'respondWithDocument', | ||
'sendDocument', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithDocument(...args) | ||
return this.sendDocument(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithsticker | ||
* @see https://core.telegram.org/bots/api#sendsticker | ||
*/ | ||
respondWithSticker(this: Context, ...args: Shorthand<'sendSticker'>) { | ||
sendSticker(this: Context, ...args: Shorthand<'sendSticker'>) { | ||
this.assert(this.chat, 'replyWithSticker') | ||
@@ -715,3 +715,3 @@ return this.telegram.sendSticker(this.chat.id, ...args) | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithsticker | ||
* @see https://core.telegram.org/bots/api#sendsticker | ||
*/ | ||
@@ -722,13 +722,13 @@ replyWithSticker(this: Context, ...args: Shorthand<'sendSticker'>) { | ||
'reply', | ||
'respondWithSticker', | ||
'sendSticker', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithSticker(...args) | ||
return this.sendSticker(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideo | ||
* @see https://core.telegram.org/bots/api#sendvideo | ||
*/ | ||
respondWithVideo(this: Context, ...args: Shorthand<'sendVideo'>) { | ||
this.assert(this.chat, 'respondWithVideo') | ||
sendVideo(this: Context, ...args: Shorthand<'sendVideo'>) { | ||
this.assert(this.chat, 'sendVideo') | ||
return this.telegram.sendVideo(this.chat.id, ...args) | ||
@@ -738,3 +738,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideo | ||
* @see https://core.telegram.org/bots/api#sendvideo | ||
*/ | ||
@@ -745,12 +745,12 @@ replyWithVideo(this: Context, ...args: Shorthand<'sendAudio'>) { | ||
'reply', | ||
'respondWithVideo', | ||
'sendVideo', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithVideo(...args) | ||
return this.sendVideo(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithanimation | ||
* @see https://core.telegram.org/bots/api#sendanimation | ||
*/ | ||
respondWithAnimation(this: Context, ...args: Shorthand<'sendAnimation'>) { | ||
sendAnimation(this: Context, ...args: Shorthand<'sendAnimation'>) { | ||
this.assert(this.chat, 'replyWithAnimation') | ||
@@ -761,3 +761,3 @@ return this.telegram.sendAnimation(this.chat.id, ...args) | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithanimation | ||
* @see https://core.telegram.org/bots/api#sendanimation | ||
*/ | ||
@@ -768,13 +768,13 @@ replyWithAnimation(this: Context, ...args: Shorthand<'sendAnimation'>) { | ||
'reply', | ||
'respondWithAnimation', | ||
'sendAnimation', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithAnimation(...args) | ||
return this.sendAnimation(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideonote | ||
* @see https://core.telegram.org/bots/api#sendvideonote | ||
*/ | ||
respondWithVideoNote(this: Context, ...args: Shorthand<'sendVideoNote'>) { | ||
this.assert(this.chat, 'respondWithVideoNote') | ||
sendVideoNote(this: Context, ...args: Shorthand<'sendVideoNote'>) { | ||
this.assert(this.chat, 'sendVideoNote') | ||
return this.telegram.sendVideoNote(this.chat.id, ...args) | ||
@@ -784,3 +784,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideonote | ||
* @see https://core.telegram.org/bots/api#sendvideonote | ||
*/ | ||
@@ -791,13 +791,13 @@ replyWithVideoNote(this: Context, ...args: Shorthand<'sendVideoNote'>) { | ||
'reply', | ||
'respondWithVideoNote', | ||
'sendVideoNote', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithVideoNote(...args) | ||
return this.sendVideoNote(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithinvoice | ||
* @see https://core.telegram.org/bots/api#sendinvoice | ||
*/ | ||
respondWithInvoice(this: Context, ...args: Shorthand<'sendInvoice'>) { | ||
this.assert(this.chat, 'respondWithInvoice') | ||
sendInvoice(this: Context, ...args: Shorthand<'sendInvoice'>) { | ||
this.assert(this.chat, 'sendInvoice') | ||
return this.telegram.sendInvoice(this.chat.id, ...args) | ||
@@ -807,3 +807,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithinvoice | ||
* @see https://core.telegram.org/bots/api#sendinvoice | ||
*/ | ||
@@ -814,13 +814,13 @@ replyWithInvoice(this: Context, ...args: Shorthand<'sendInvoice'>) { | ||
'reply', | ||
'respondWithInvoice', | ||
'sendInvoice', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithInvoice(...args) | ||
return this.sendInvoice(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithgame | ||
* @see https://core.telegram.org/bots/api#sendgame | ||
*/ | ||
respondWithGame(this: Context, ...args: Shorthand<'sendGame'>) { | ||
this.assert(this.chat, 'respondWithGame') | ||
sendGame(this: Context, ...args: Shorthand<'sendGame'>) { | ||
this.assert(this.chat, 'sendGame') | ||
return this.telegram.sendGame(this.chat.id, ...args) | ||
@@ -830,3 +830,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithgame | ||
* @see https://core.telegram.org/bots/api#sendgame | ||
*/ | ||
@@ -837,13 +837,13 @@ replyWithGame(this: Context, ...args: Shorthand<'sendGame'>) { | ||
'reply', | ||
'respondWithGame', | ||
'sendGame', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithGame(...args) | ||
return this.sendGame(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvoice | ||
* @see https://core.telegram.org/bots/api#sendvoice | ||
*/ | ||
respondWithVoice(this: Context, ...args: Shorthand<'sendVoice'>) { | ||
this.assert(this.chat, 'respondWithVoice') | ||
sendVoice(this: Context, ...args: Shorthand<'sendVoice'>) { | ||
this.assert(this.chat, 'sendVoice') | ||
return this.telegram.sendVoice(this.chat.id, ...args) | ||
@@ -853,3 +853,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvoice | ||
* @see https://core.telegram.org/bots/api#sendvoice | ||
*/ | ||
@@ -860,13 +860,13 @@ replyWithVoice(this: Context, ...args: Shorthand<'sendVoice'>) { | ||
'reply', | ||
'respondWithVoice', | ||
'sendVoice', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithVoice(...args) | ||
return this.sendVoice(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithpoll | ||
* @see https://core.telegram.org/bots/api#sendpoll | ||
*/ | ||
respondWithPoll(this: Context, ...args: Shorthand<'sendPoll'>) { | ||
this.assert(this.chat, 'respondWithPoll') | ||
sendPoll(this: Context, ...args: Shorthand<'sendPoll'>) { | ||
this.assert(this.chat, 'sendPoll') | ||
return this.telegram.sendPoll(this.chat.id, ...args) | ||
@@ -876,3 +876,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithpoll | ||
* @see https://core.telegram.org/bots/api#sendpoll | ||
*/ | ||
@@ -883,13 +883,13 @@ replyWithPoll(this: Context, ...args: Shorthand<'sendPoll'>) { | ||
'reply', | ||
'respondWithPoll', | ||
'sendPoll', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithPoll(...args) | ||
return this.sendPoll(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithquiz | ||
* @see https://core.telegram.org/bots/api#sendquiz | ||
*/ | ||
respondWithQuiz(this: Context, ...args: Shorthand<'sendQuiz'>) { | ||
this.assert(this.chat, 'respondWithQuiz') | ||
sendQuiz(this: Context, ...args: Shorthand<'sendQuiz'>) { | ||
this.assert(this.chat, 'sendQuiz') | ||
return this.telegram.sendQuiz(this.chat.id, ...args) | ||
@@ -899,3 +899,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithquiz | ||
* @see https://core.telegram.org/bots/api#sendquiz | ||
*/ | ||
@@ -906,6 +906,6 @@ replyWithQuiz(this: Context, ...args: Shorthand<'sendQuiz'>) { | ||
'reply', | ||
'respondWithQuiz', | ||
'sendQuiz', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithQuiz(...args) | ||
return this.sendQuiz(...args) | ||
} | ||
@@ -922,6 +922,6 @@ | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithchataction | ||
* @see https://core.telegram.org/bots/api#sendchataction | ||
*/ | ||
respondWithChatAction(this: Context, ...args: Shorthand<'sendChatAction'>) { | ||
this.assert(this.chat, 'respondWithChatAction') | ||
sendChatAction(this: Context, ...args: Shorthand<'sendChatAction'>) { | ||
this.assert(this.chat, 'sendChatAction') | ||
return this.telegram.sendChatAction(this.chat.id, ...args) | ||
@@ -931,14 +931,14 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithchataction | ||
* @see https://core.telegram.org/bots/api#sendchataction | ||
*/ | ||
replyWithChatAction(this: Context, ...args: Shorthand<'sendChatAction'>) { | ||
deprecate('ctx.replyWithChatAction', 'reply', 'respondWithChatAction') | ||
return this.respondWithChatAction(...args) | ||
deprecate('ctx.replyWithChatAction', 'reply', 'sendChatAction') | ||
return this.sendChatAction(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithlocation | ||
* @see https://core.telegram.org/bots/api#sendlocation | ||
*/ | ||
respondWithLocation(this: Context, ...args: Shorthand<'sendLocation'>) { | ||
this.assert(this.chat, 'respondWithLocation') | ||
sendLocation(this: Context, ...args: Shorthand<'sendLocation'>) { | ||
this.assert(this.chat, 'sendLocation') | ||
return this.telegram.sendLocation(this.chat.id, ...args) | ||
@@ -948,3 +948,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithlocation | ||
* @see https://core.telegram.org/bots/api#sendlocation | ||
*/ | ||
@@ -955,13 +955,13 @@ replyWithLocation(this: Context, ...args: Shorthand<'sendLocation'>) { | ||
'reply', | ||
'respondWithLocation', | ||
'sendLocation', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithLocation(...args) | ||
return this.sendLocation(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvenue | ||
* @see https://core.telegram.org/bots/api#sendvenue | ||
*/ | ||
respondWithVenue(this: Context, ...args: Shorthand<'sendVenue'>) { | ||
this.assert(this.chat, 'respondWithVenue') | ||
sendVenue(this: Context, ...args: Shorthand<'sendVenue'>) { | ||
this.assert(this.chat, 'sendVenue') | ||
return this.telegram.sendVenue(this.chat.id, ...args) | ||
@@ -971,3 +971,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvenue | ||
* @see https://core.telegram.org/bots/api#sendvenue | ||
*/ | ||
@@ -978,13 +978,13 @@ replyWithVenue(this: Context, ...args: Shorthand<'sendVenue'>) { | ||
'reply', | ||
'respondWithVenue', | ||
'sendVenue', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithVenue(...args) | ||
return this.sendVenue(...args) | ||
} | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithcontact | ||
* @see https://core.telegram.org/bots/api#sendcontact | ||
*/ | ||
respondWithContact(this: Context, ...args: Shorthand<'sendContact'>) { | ||
this.assert(this.chat, 'respondWithContact') | ||
sendContact(this: Context, ...args: Shorthand<'sendContact'>) { | ||
this.assert(this.chat, 'sendContact') | ||
return this.telegram.sendContact(this.chat.id, ...args) | ||
@@ -994,3 +994,3 @@ } | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithcontact | ||
* @see https://core.telegram.org/bots/api#sendcontact | ||
*/ | ||
@@ -1001,6 +1001,6 @@ replyWithContact(this: Context, ...args: Shorthand<'sendContact'>) { | ||
'reply', | ||
'respondWithContact', | ||
'sendContact', | ||
'https://telegraf.js.org/experimental#new-reply' | ||
) | ||
return this.respondWithContact(...args) | ||
return this.sendContact(...args) | ||
} | ||
@@ -1007,0 +1007,0 @@ |
@@ -80,3 +80,3 @@ import * as tg from './core/types/typegram'; | ||
*/ | ||
editMessageMedia(this: Context, media: tg.InputMedia, extra?: tt.ExtraEditMessageMedia): Promise<true | (tg.Update.Edited & tg.Message.AnimationMessage) | (tg.Update.Edited & tg.Message.DocumentMessage) | (tg.Update.Edited & tg.Message.AudioMessage) | (tg.Update.Edited & tg.Message.PhotoMessage) | (tg.Update.Edited & tg.Message.VideoMessage)>; | ||
editMessageMedia(this: Context, media: tg.InputMedia, extra?: tt.ExtraEditMessageMedia): Promise<true | (tg.Update.Edited & tg.Message.AnimationMessage) | (tg.Update.Edited & tg.Message.AudioMessage) | (tg.Update.Edited & tg.Message.DocumentMessage) | (tg.Update.Edited & tg.Message.PhotoMessage) | (tg.Update.Edited & tg.Message.VideoMessage)>; | ||
/** | ||
@@ -97,3 +97,3 @@ * @see https://core.telegram.org/bots/api#editmessagereplymarkup | ||
*/ | ||
respond(this: Context, ...args: Shorthand<'sendMessage'>): Promise<tg.Message.TextMessage>; | ||
sendMessage(this: Context, ...args: Shorthand<'sendMessage'>): Promise<tg.Message.TextMessage>; | ||
/** | ||
@@ -201,111 +201,111 @@ * @see https://core.telegram.org/bots/api#sendmessage | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithphoto | ||
* @see https://core.telegram.org/bots/api#sendphoto | ||
*/ | ||
respondWithPhoto(this: Context, ...args: Shorthand<'sendPhoto'>): Promise<tg.Message.PhotoMessage>; | ||
sendPhoto(this: Context, ...args: Shorthand<'sendPhoto'>): Promise<tg.Message.PhotoMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithphoto | ||
* @see https://core.telegram.org/bots/api#sendphoto | ||
*/ | ||
replyWithPhoto(this: Context, ...args: Shorthand<'sendPhoto'>): Promise<tg.Message.PhotoMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithmediagroup | ||
* @see https://core.telegram.org/bots/api#sendmediagroup | ||
*/ | ||
respondWithMediaGroup(this: Context, ...args: Shorthand<'sendMediaGroup'>): Promise<(tg.Message.DocumentMessage | tg.Message.AudioMessage | tg.Message.PhotoMessage | tg.Message.VideoMessage)[]>; | ||
sendMediaGroup(this: Context, ...args: Shorthand<'sendMediaGroup'>): Promise<(tg.Message.DocumentMessage | tg.Message.AudioMessage | tg.Message.PhotoMessage | tg.Message.VideoMessage)[]>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithmediagroup | ||
* @see https://core.telegram.org/bots/api#sendmediagroup | ||
*/ | ||
replyWithMediaGroup(this: Context, ...args: Shorthand<'sendMediaGroup'>): Promise<(tg.Message.DocumentMessage | tg.Message.AudioMessage | tg.Message.PhotoMessage | tg.Message.VideoMessage)[]>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithaudio | ||
* @see https://core.telegram.org/bots/api#sendaudio | ||
*/ | ||
respondWithAudio(this: Context, ...args: Shorthand<'sendAudio'>): Promise<tg.Message.AudioMessage>; | ||
sendAudio(this: Context, ...args: Shorthand<'sendAudio'>): Promise<tg.Message.AudioMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithaudio | ||
* @see https://core.telegram.org/bots/api#sendaudio | ||
*/ | ||
replyWithAudio(this: Context, ...args: Shorthand<'sendAudio'>): Promise<tg.Message.AudioMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdice | ||
* @see https://core.telegram.org/bots/api#senddice | ||
*/ | ||
respondWithDice(this: Context, ...args: Shorthand<'sendDice'>): Promise<tg.Message.DiceMessage>; | ||
sendDice(this: Context, ...args: Shorthand<'sendDice'>): Promise<tg.Message.DiceMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdice | ||
* @see https://core.telegram.org/bots/api#senddice | ||
*/ | ||
replyWithDice(this: Context, ...args: Shorthand<'sendDice'>): Promise<tg.Message.DiceMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdocument | ||
* @see https://core.telegram.org/bots/api#senddocument | ||
*/ | ||
respondWithDocument(this: Context, ...args: Shorthand<'sendDocument'>): Promise<tg.Message.DocumentMessage>; | ||
sendDocument(this: Context, ...args: Shorthand<'sendDocument'>): Promise<tg.Message.DocumentMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithdocument | ||
* @see https://core.telegram.org/bots/api#senddocument | ||
*/ | ||
replyWithDocument(this: Context, ...args: Shorthand<'sendDocument'>): Promise<tg.Message.DocumentMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithsticker | ||
* @see https://core.telegram.org/bots/api#sendsticker | ||
*/ | ||
respondWithSticker(this: Context, ...args: Shorthand<'sendSticker'>): Promise<tg.Message.StickerMessage>; | ||
sendSticker(this: Context, ...args: Shorthand<'sendSticker'>): Promise<tg.Message.StickerMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithsticker | ||
* @see https://core.telegram.org/bots/api#sendsticker | ||
*/ | ||
replyWithSticker(this: Context, ...args: Shorthand<'sendSticker'>): Promise<tg.Message.StickerMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideo | ||
* @see https://core.telegram.org/bots/api#sendvideo | ||
*/ | ||
respondWithVideo(this: Context, ...args: Shorthand<'sendVideo'>): Promise<tg.Message.VideoMessage>; | ||
sendVideo(this: Context, ...args: Shorthand<'sendVideo'>): Promise<tg.Message.VideoMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideo | ||
* @see https://core.telegram.org/bots/api#sendvideo | ||
*/ | ||
replyWithVideo(this: Context, ...args: Shorthand<'sendAudio'>): Promise<tg.Message.VideoMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithanimation | ||
* @see https://core.telegram.org/bots/api#sendanimation | ||
*/ | ||
respondWithAnimation(this: Context, ...args: Shorthand<'sendAnimation'>): Promise<tg.Message.AnimationMessage>; | ||
sendAnimation(this: Context, ...args: Shorthand<'sendAnimation'>): Promise<tg.Message.AnimationMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithanimation | ||
* @see https://core.telegram.org/bots/api#sendanimation | ||
*/ | ||
replyWithAnimation(this: Context, ...args: Shorthand<'sendAnimation'>): Promise<tg.Message.AnimationMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideonote | ||
* @see https://core.telegram.org/bots/api#sendvideonote | ||
*/ | ||
respondWithVideoNote(this: Context, ...args: Shorthand<'sendVideoNote'>): Promise<tg.Message.VideoNoteMessage>; | ||
sendVideoNote(this: Context, ...args: Shorthand<'sendVideoNote'>): Promise<tg.Message.VideoNoteMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvideonote | ||
* @see https://core.telegram.org/bots/api#sendvideonote | ||
*/ | ||
replyWithVideoNote(this: Context, ...args: Shorthand<'sendVideoNote'>): Promise<tg.Message.VideoNoteMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithinvoice | ||
* @see https://core.telegram.org/bots/api#sendinvoice | ||
*/ | ||
respondWithInvoice(this: Context, ...args: Shorthand<'sendInvoice'>): Promise<tg.Message.InvoiceMessage>; | ||
sendInvoice(this: Context, ...args: Shorthand<'sendInvoice'>): Promise<tg.Message.InvoiceMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithinvoice | ||
* @see https://core.telegram.org/bots/api#sendinvoice | ||
*/ | ||
replyWithInvoice(this: Context, ...args: Shorthand<'sendInvoice'>): Promise<tg.Message.InvoiceMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithgame | ||
* @see https://core.telegram.org/bots/api#sendgame | ||
*/ | ||
respondWithGame(this: Context, ...args: Shorthand<'sendGame'>): Promise<tg.Message.GameMessage>; | ||
sendGame(this: Context, ...args: Shorthand<'sendGame'>): Promise<tg.Message.GameMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithgame | ||
* @see https://core.telegram.org/bots/api#sendgame | ||
*/ | ||
replyWithGame(this: Context, ...args: Shorthand<'sendGame'>): Promise<tg.Message.GameMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvoice | ||
* @see https://core.telegram.org/bots/api#sendvoice | ||
*/ | ||
respondWithVoice(this: Context, ...args: Shorthand<'sendVoice'>): Promise<tg.Message.VoiceMessage>; | ||
sendVoice(this: Context, ...args: Shorthand<'sendVoice'>): Promise<tg.Message.VoiceMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvoice | ||
* @see https://core.telegram.org/bots/api#sendvoice | ||
*/ | ||
replyWithVoice(this: Context, ...args: Shorthand<'sendVoice'>): Promise<tg.Message.VoiceMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithpoll | ||
* @see https://core.telegram.org/bots/api#sendpoll | ||
*/ | ||
respondWithPoll(this: Context, ...args: Shorthand<'sendPoll'>): Promise<tg.Message.PollMessage>; | ||
sendPoll(this: Context, ...args: Shorthand<'sendPoll'>): Promise<tg.Message.PollMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithpoll | ||
* @see https://core.telegram.org/bots/api#sendpoll | ||
*/ | ||
replyWithPoll(this: Context, ...args: Shorthand<'sendPoll'>): Promise<tg.Message.PollMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithquiz | ||
* @see https://core.telegram.org/bots/api#sendquiz | ||
*/ | ||
respondWithQuiz(this: Context, ...args: Shorthand<'sendQuiz'>): Promise<tg.Message.PollMessage>; | ||
sendQuiz(this: Context, ...args: Shorthand<'sendQuiz'>): Promise<tg.Message.PollMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithquiz | ||
* @see https://core.telegram.org/bots/api#sendquiz | ||
*/ | ||
@@ -318,31 +318,31 @@ replyWithQuiz(this: Context, ...args: Shorthand<'sendQuiz'>): Promise<tg.Message.PollMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithchataction | ||
* @see https://core.telegram.org/bots/api#sendchataction | ||
*/ | ||
respondWithChatAction(this: Context, ...args: Shorthand<'sendChatAction'>): Promise<true>; | ||
sendChatAction(this: Context, ...args: Shorthand<'sendChatAction'>): Promise<true>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithchataction | ||
* @see https://core.telegram.org/bots/api#sendchataction | ||
*/ | ||
replyWithChatAction(this: Context, ...args: Shorthand<'sendChatAction'>): Promise<true>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithlocation | ||
* @see https://core.telegram.org/bots/api#sendlocation | ||
*/ | ||
respondWithLocation(this: Context, ...args: Shorthand<'sendLocation'>): Promise<tg.Message.LocationMessage>; | ||
sendLocation(this: Context, ...args: Shorthand<'sendLocation'>): Promise<tg.Message.LocationMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithlocation | ||
* @see https://core.telegram.org/bots/api#sendlocation | ||
*/ | ||
replyWithLocation(this: Context, ...args: Shorthand<'sendLocation'>): Promise<tg.Message.LocationMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvenue | ||
* @see https://core.telegram.org/bots/api#sendvenue | ||
*/ | ||
respondWithVenue(this: Context, ...args: Shorthand<'sendVenue'>): Promise<tg.Message.VenueMessage>; | ||
sendVenue(this: Context, ...args: Shorthand<'sendVenue'>): Promise<tg.Message.VenueMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithvenue | ||
* @see https://core.telegram.org/bots/api#sendvenue | ||
*/ | ||
replyWithVenue(this: Context, ...args: Shorthand<'sendVenue'>): Promise<tg.Message.VenueMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithcontact | ||
* @see https://core.telegram.org/bots/api#sendcontact | ||
*/ | ||
respondWithContact(this: Context, ...args: Shorthand<'sendContact'>): Promise<tg.Message.ContactMessage>; | ||
sendContact(this: Context, ...args: Shorthand<'sendContact'>): Promise<tg.Message.ContactMessage>; | ||
/** | ||
* @see https://core.telegram.org/bots/api#replywithcontact | ||
* @see https://core.telegram.org/bots/api#sendcontact | ||
*/ | ||
@@ -349,0 +349,0 @@ replyWithContact(this: Context, ...args: Shorthand<'sendContact'>): Promise<tg.Message.ContactMessage>; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
480889