@codebam/cf-workers-telegram-bot 11.4.0 → 11.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -146,6 +146,7 @@ export default class TelegramExecutionContext {
|
|
|
146
146
|
*/
|
|
147
147
|
async replyVideo(video, options = {}) {
|
|
148
148
|
switch (this.update_type) {
|
|
149
|
+
case 'voice':
|
|
149
150
|
case 'message':
|
|
150
151
|
case 'guest_message':
|
|
151
152
|
return await this.api.sendVideo(this.bot.api.toString(), {
|
|
@@ -182,6 +183,7 @@ export default class TelegramExecutionContext {
|
|
|
182
183
|
*/
|
|
183
184
|
async replyPhoto(photo, caption = '', options = {}) {
|
|
184
185
|
switch (this.update_type) {
|
|
186
|
+
case 'voice':
|
|
185
187
|
case 'photo':
|
|
186
188
|
case 'message':
|
|
187
189
|
case 'guest_message':
|
|
@@ -232,6 +234,7 @@ export default class TelegramExecutionContext {
|
|
|
232
234
|
*/
|
|
233
235
|
async sendTyping() {
|
|
234
236
|
switch (this.update_type) {
|
|
237
|
+
case 'voice':
|
|
235
238
|
case 'message':
|
|
236
239
|
case 'photo':
|
|
237
240
|
case 'document':
|
|
@@ -305,6 +308,7 @@ export default class TelegramExecutionContext {
|
|
|
305
308
|
*/
|
|
306
309
|
async reply(message, parse_mode = '', reply = true, options = {}) {
|
|
307
310
|
switch (this.update_type) {
|
|
311
|
+
case 'voice':
|
|
308
312
|
case 'message':
|
|
309
313
|
case 'photo':
|
|
310
314
|
case 'document':
|