@codebam/cf-workers-telegram-bot 7.16.0 → 7.17.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.
@@ -1,5 +1,7 @@
1
1
  /// <reference types="@cloudflare/workers-types" />
2
- import { SerializableData, TelegramInlineQueryResultArticle, TelegramInlineQueryResultPhoto } from './types.js';
2
+ import SerializableData from './types/SerializableData.js';
3
+ import TelegramInlineQueryResultArticle from './types/TelegramInlineQueryResultArticle.js';
4
+ import TelegramInlineQueryResultPhoto from './types/TelegramInlineQueryResultPhoto.js';
3
5
  import TelegramInlineQueryResultVideo from './types/TelegramInlineQueryResultVideo.js';
4
6
  export default class TelegramApi {
5
7
  static getApiUrl(botApi: string, slug: string, data: Record<string, SerializableData>): Request<unknown, CfProperties<unknown>>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@cloudflare/workers-types" />
2
- import { TelegramUpdate } from './types.js';
2
+ import TelegramUpdate from './types/TelegramUpdate.js';
3
3
  import TelegramExecutionContext from './telegram_execution_context.js';
4
4
  import Webhook from './webhook.js';
5
5
  export default class TelegramBot {
@@ -1,4 +1,4 @@
1
- import { TelegramUpdate } from './types.js';
1
+ import TelegramUpdate from './types/TelegramUpdate.js';
2
2
  import TelegramExecutionContext from './telegram_execution_context.js';
3
3
  import Webhook from './webhook.js';
4
4
  export default class TelegramBot {
@@ -1,6 +1,7 @@
1
1
  /// <reference types="@cloudflare/workers-types" />
2
2
  import TelegramBot from './telegram_bot.js';
3
- import { SerializableData, TelegramUpdate } from './types.js';
3
+ import SerializableData from './types/SerializableData.js';
4
+ import TelegramUpdate from './types/TelegramUpdate.js';
4
5
  export default class TelegramExecutionContext {
5
6
  bot: TelegramBot;
6
7
  update: TelegramUpdate;
@@ -1,5 +1,6 @@
1
1
  import TelegramApi from './telegram_api.js';
2
- import { TelegramInlineQueryResultArticle, TelegramInlineQueryResultPhoto } from './types.js';
2
+ import TelegramInlineQueryResultArticle from './types/TelegramInlineQueryResultArticle.js';
3
+ import TelegramInlineQueryResultPhoto from './types/TelegramInlineQueryResultPhoto.js';
3
4
  import TelegramInlineQueryResultVideo from './types/TelegramInlineQueryResultVideo.js';
4
5
  export default class TelegramExecutionContext {
5
6
  bot;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebam/cf-workers-telegram-bot",
3
- "version": "7.16.0",
3
+ "version": "7.17.0",
4
4
  "description": "serverless telegram bot on cf workers",
5
5
  "main": "./dist/main.js",
6
6
  "module": "./dist/main.js",
@@ -44,5 +44,5 @@
44
44
  "typescript-eslint": "^7.8.0",
45
45
  "vitest": "^1.6.0"
46
46
  },
47
- "gitHead": "715d10cd3def51fbc5dc61c7d7a32149352862f5"
47
+ "gitHead": "03634bbfeffcfacd0a67ff46fc6ae2a76440eb8e"
48
48
  }