@codebam/cf-workers-telegram-bot 7.12.0 → 7.14.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/README.md CHANGED
@@ -19,7 +19,9 @@ CF Workers Telegram Bot
19
19
  npm i @codebam/cf-workers-telegram-bot
20
20
  ```
21
21
 
22
- See `worker.ts` for an example of what a bot might look like. Just import from `@codebam/cf-workers-telegram-bot`.
22
+ See [cwtb-consumer](https://github.com/codebam/cwtb-consumer) for an example of what a bot might look like. Just import from `@codebam/cf-workers-telegram-bot`.
23
+
24
+ See [my blog post](https://seanbehan.ca/posts/cf-workers-telegram-bot) for a more in-depth guide for how to set up a bot.
23
25
 
24
26
  - `npm create cloudflare@latest`
25
27
  - `npx wrangler login`
package/dist/main.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import TelegramExecutionContext from './ctx';
2
2
  import TelegramBot from './telegram_bot';
3
3
  import * as Types from './types';
4
+ export default TelegramBot;
4
5
  export { TelegramBot, Types, TelegramExecutionContext };
package/dist/main.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import TelegramExecutionContext from './ctx';
2
2
  import TelegramBot from './telegram_bot';
3
3
  import * as Types from './types';
4
+ export default TelegramBot;
4
5
  export { TelegramBot, Types, TelegramExecutionContext };
package/dist/types.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ import TelegramBot from './telegram_bot';
2
+ import TelegramExecutionContext from './ctx';
3
+ import API from './api';
4
+ import Webhook from './webhook';
1
5
  import TelegramCommand from './types/TelegramCommand';
2
6
  import Kv from './types/Kv';
3
7
  import localhost from './types/localhost';
@@ -24,4 +28,5 @@ import DDGQueryResponse from './types/DDGQueryResponse';
24
28
  import ChatPermissions from './types/ChatPermissions';
25
29
  import Kanye from './types/Kanye';
26
30
  import SerializableData from './types/SerializableData';
27
- export { TelegramCommand, Kv, localhost, WebhookCommands, Joke, Bored, Balance, TelegramFrom, TelegramChat, TelegramUser, TelegramMessageEntity, TelegramPhotoSize, TelegramMessage, TelegramInputMessageContent, TelegramInlineQuery, Update, TelegramUpdate, PartialTelegramUpdate, TelegramInlineQueryType, TelegramInlineQueryResult, TelegramInlineQueryResultPhoto, TelegramInlineQueryResultArticle, DDGQueryResponse, ChatPermissions, Kanye, SerializableData, };
31
+ export default TelegramBot;
32
+ export { TelegramBot, TelegramExecutionContext, API, Webhook, TelegramCommand, Kv, localhost, WebhookCommands, Joke, Bored, Balance, TelegramFrom, TelegramChat, TelegramUser, TelegramMessageEntity, TelegramPhotoSize, TelegramMessage, TelegramInputMessageContent, TelegramInlineQuery, Update, TelegramUpdate, PartialTelegramUpdate, TelegramInlineQueryType, TelegramInlineQueryResult, TelegramInlineQueryResultPhoto, TelegramInlineQueryResultArticle, DDGQueryResponse, ChatPermissions, Kanye, SerializableData, };
package/dist/types.js CHANGED
@@ -1,3 +1,7 @@
1
+ import TelegramBot from './telegram_bot';
2
+ import TelegramExecutionContext from './ctx';
3
+ import API from './api';
4
+ import Webhook from './webhook';
1
5
  import localhost from './types/localhost';
2
6
  import WebhookCommands from './types/WebhookCommands';
3
7
  import Update from './types/Update';
@@ -5,4 +9,5 @@ import TelegramUpdate from './types/TelegramUpdate';
5
9
  import TelegramInlineQueryResult from './types/TelegramInlineQueryResult';
6
10
  import TelegramInlineQueryResultPhoto from './types/TelegramInlineQueryResultPhoto';
7
11
  import TelegramInlineQueryResultArticle from './types/TelegramInlineQueryResultArticle';
8
- export { localhost, WebhookCommands, Update, TelegramUpdate, TelegramInlineQueryResult, TelegramInlineQueryResultPhoto, TelegramInlineQueryResultArticle, };
12
+ export default TelegramBot;
13
+ export { TelegramBot, TelegramExecutionContext, API, Webhook, localhost, WebhookCommands, Update, TelegramUpdate, TelegramInlineQueryResult, TelegramInlineQueryResultPhoto, TelegramInlineQueryResultArticle, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebam/cf-workers-telegram-bot",
3
- "version": "7.12.0",
3
+ "version": "7.14.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": "25e1ff186ed556bf7ac9a4c3e8efba34ec930986"
47
+ "gitHead": "447e42420100756926c4c3aa1ea41f4405ad465c"
48
48
  }