@codebam/cf-workers-telegram-bot 11.4.0 → 11.5.1

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':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebam/cf-workers-telegram-bot",
3
- "version": "11.4.0",
3
+ "version": "11.5.1",
4
4
  "description": "serverless telegram bot on cf workers",
5
5
  "main": "./dist/main.js",
6
6
  "module": "./dist/main.js",
@@ -36,21 +36,21 @@
36
36
  "url": "https://github.com/codebam/cf-workers-telegram-bot.git"
37
37
  },
38
38
  "devDependencies": {
39
- "@cloudflare/workers-types": "^4.20260510.1",
39
+ "@cloudflare/workers-types": "^4.20260511.1",
40
40
  "@eslint/js": "^10.0.1",
41
- "@typescript-eslint/eslint-plugin": "^8.59.2",
42
- "@typescript-eslint/parser": "^8.59.2",
41
+ "@typescript-eslint/eslint-plugin": "^8.59.3",
42
+ "@typescript-eslint/parser": "^8.59.3",
43
43
  "eslint": "^10.3.0",
44
44
  "eslint-config-prettier": "^10.1.8",
45
45
  "globals": "^17.6.0",
46
- "npm-check-updates": "^22.1.1",
46
+ "npm-check-updates": "^22.2.0",
47
47
  "prettier": "^3.8.3",
48
48
  "typedoc": "^0.28.19",
49
49
  "typedoc-plugin-extras": "^4.0.1",
50
50
  "typescript": "^6.0.3",
51
- "typescript-eslint": "^8.59.2",
52
- "vitest": "^4.1.5",
53
- "wrangler": "^4.90.0"
51
+ "typescript-eslint": "^8.59.3",
52
+ "vitest": "^4.1.6",
53
+ "wrangler": "^4.90.1"
54
54
  },
55
55
  "dependencies": {
56
56
  "@eslint/eslintrc": "^3.3.5"