@codebam/cf-workers-telegram-bot 11.11.0 → 11.12.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.
- package/dist/telegram_bot.js +5 -0
- package/package.json +1 -1
package/dist/telegram_bot.js
CHANGED
|
@@ -116,6 +116,8 @@ export default class TelegramBot {
|
|
|
116
116
|
case 'guest_message':
|
|
117
117
|
// For guest messages, we fall through to command detection if it's not a special type
|
|
118
118
|
break;
|
|
119
|
+
case 'business_message':
|
|
120
|
+
return this.defaultCommand;
|
|
119
121
|
case 'pre_checkout_query':
|
|
120
122
|
return ':pre_checkout_query' in this.commands ? ':pre_checkout_query' : this.defaultCommand;
|
|
121
123
|
case 'successful_payment':
|
|
@@ -132,6 +134,9 @@ export default class TelegramBot {
|
|
|
132
134
|
return command;
|
|
133
135
|
}
|
|
134
136
|
}
|
|
137
|
+
if (ctx.update_type === 'guest_message' && ':guest_message' in this.commands) {
|
|
138
|
+
return ':guest_message';
|
|
139
|
+
}
|
|
135
140
|
return this.defaultCommand;
|
|
136
141
|
}
|
|
137
142
|
/**
|