@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.
@@ -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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebam/cf-workers-telegram-bot",
3
- "version": "11.11.0",
3
+ "version": "11.12.0",
4
4
  "description": "serverless telegram bot on cf workers",
5
5
  "main": "./dist/main.js",
6
6
  "module": "./dist/main.js",