@pipedream/telegram_bot_api 0.3.12 → 0.4.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.
Files changed (28) hide show
  1. package/actions/create-chat-invite-link/create-chat-invite-link.mjs +6 -1
  2. package/actions/delete-message/delete-message.mjs +6 -1
  3. package/actions/edit-media-message/edit-media-message.mjs +6 -1
  4. package/actions/edit-text-message/edit-text-message.mjs +6 -1
  5. package/actions/export-chat-invite-link/export-chat-invite-link.mjs +6 -1
  6. package/actions/forward-message/forward-message.mjs +6 -1
  7. package/actions/get-num-members-in-chat/get-num-members-in-chat.mjs +6 -1
  8. package/actions/kick-chat-member/kick-chat-member.mjs +6 -1
  9. package/actions/list-administrators-in-chat/list-administrators-in-chat.mjs +6 -1
  10. package/actions/list-chats/list-chats.mjs +6 -1
  11. package/actions/list-commands-options/list-commands-options.mjs +25 -0
  12. package/actions/list-updates/list-updates.mjs +6 -1
  13. package/actions/pin-message/pin-message.mjs +6 -1
  14. package/actions/promote-chat-member/promote-chat-member.mjs +6 -1
  15. package/actions/restrict-chat-member/restrict-chat-member.mjs +6 -1
  16. package/actions/send-album/send-album.mjs +6 -1
  17. package/actions/send-audio-file/send-audio-file.mjs +6 -1
  18. package/actions/send-document-or-image/send-document-or-image.mjs +6 -1
  19. package/actions/send-media-by-url-or-id/send-media-by-url-or-id.mjs +6 -1
  20. package/actions/send-photo/send-photo.mjs +6 -1
  21. package/actions/send-sticker/send-sticker.mjs +6 -1
  22. package/actions/send-text-message-or-reply/send-text-message-or-reply.mjs +6 -1
  23. package/actions/send-video/send-video.mjs +6 -1
  24. package/actions/send-video-note/send-video-note.mjs +6 -1
  25. package/actions/send-voice-message/send-voice-message.mjs +6 -1
  26. package/actions/set-chat-permissions/set-chat-permissions.mjs +6 -1
  27. package/actions/unpin-message/unpin-message.mjs +6 -1
  28. package/package.json +2 -2
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-create-chat-invite-link",
5
5
  name: "Create Chat Invite Link",
6
6
  description: "Create an additional invite link for a chat, [See the docs](https://core.telegram.org/bots/api#createchatinvitelink) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-delete-message",
5
5
  name: "Delete a Message",
6
6
  description: "Deletes a message. [See the docs](https://core.telegram.org/bots/api#deletemessage) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -8,7 +8,12 @@ export default {
8
8
  key: "telegram_bot_api-edit-media-message",
9
9
  name: "Edit a Media Message",
10
10
  description: "Edits photo or video messages. [See the docs](https://core.telegram.org/bots/api#editmessagemedia) for more information",
11
- version: "0.0.6",
11
+ version: "0.0.7",
12
+ annotations: {
13
+ destructiveHint: true,
14
+ openWorldHint: true,
15
+ readOnlyHint: false,
16
+ },
12
17
  type: "action",
13
18
  props: {
14
19
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-edit-text-message",
5
5
  name: "Edit a Text Message",
6
6
  description: "Edits text or game messages. [See the docs](https://core.telegram.org/bots/api#editmessagetext) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-export-chat-invite-link",
5
5
  name: "Export Chat Invite Link",
6
6
  description: "Generate a new primary invite link for a chat, [See the docs](https://core.telegram.org/bots/api#createchatinvitelink) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-forward-message",
5
5
  name: "Forward a Message",
6
6
  description: "Forwards messages of any kind. [See the docs](https://core.telegram.org/bots/api#forwardmessage) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-get-num-members-in-chat",
5
5
  name: "Get the Number of Members in a Chat",
6
6
  description: "Use this module to get the number of members in a chat. [See the docs](https://core.telegram.org/bots/api#getchatmembercount) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-kick-chat-member",
5
5
  name: "Kick a Chat Member",
6
6
  description: "Use this method to kick a user from a group, a supergroup or channel. [See the docs](https://core.telegram.org/bots/api#banchatmember) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-list-administrators-in-chat",
5
5
  name: "List Administrators In Chat",
6
6
  description: "Use this module to get a list of administrators in a chat. [See the docs](https://core.telegram.org/bots/api#getchatadministrators) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-list-chats",
5
5
  name: "List Chats",
6
6
  description: "List available Telegram chats. [See the docs](https://core.telegram.org/bots/api#getupdates) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -0,0 +1,25 @@
1
+ import telegram_bot_api from "../../telegram_bot_api.app.mjs";
2
+
3
+ export default {
4
+ key: "telegram_bot_api-list-commands-options",
5
+ name: "List Commands Options",
6
+ description: "Retrieves available options for the Commands field.",
7
+ version: "0.0.1",
8
+ type: "action",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: true,
13
+ },
14
+ props: {
15
+ telegram_bot_api,
16
+ },
17
+ async run({ $ }) {
18
+ const options = await telegram_bot_api.propDefinitions.commands.options
19
+ .call(this.telegram_bot_api);
20
+ $.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
21
+ ? ""
22
+ : "s"}`);
23
+ return options;
24
+ },
25
+ };
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-list-updates",
5
5
  name: "List Updates",
6
6
  description: "Retrieves a list of updates from the Telegram server. [See the docs](https://core.telegram.org/bots/api#getupdates) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-pin-message",
5
5
  name: "Pin a Message",
6
6
  description: "Pins a message. [See the docs](https://core.telegram.org/bots/api#pinchatmessage) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-promote-chat-member",
5
5
  name: "Promote a Chat Member",
6
6
  description: "Use this method to promote or demote a user in a supergroup or a channel. [See the docs](https://core.telegram.org/bots/api#promotechatmember) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-restrict-chat-member",
5
5
  name: "Restrict a Chat Member",
6
6
  description: "Use this method to restrict a user in a supergroup. [See the docs](https://core.telegram.org/bots/api#restrictchatmember) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "telegram_bot_api-send-album",
6
6
  name: "Send an Album (Media Group)",
7
7
  description: "Sends a group of photos or videos as an album. [See the docs](https://core.telegram.org/bots/api#sendmediagroup) for more information",
8
- version: "0.0.6",
8
+ version: "0.0.7",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  telegramBotApi,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "telegram_bot_api-send-audio-file",
6
6
  name: "Send an Audio File",
7
7
  description: "Sends an audio file to your Telegram Desktop application. [See the docs](https://core.telegram.org/bots/api#sendaudio) for more information",
8
- version: "0.0.6",
8
+ version: "0.0.7",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  telegramBotApi,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "telegram_bot_api-send-document-or-image",
6
6
  name: "Send a Document/Image",
7
7
  description: "Sends a document or an image to your Telegram Desktop application. [See the docs](https://core.telegram.org/bots/api#senddocument) for more information",
8
- version: "0.0.6",
8
+ version: "0.0.7",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  telegramBotApi,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "telegram_bot_api-send-media-by-url-or-id",
6
6
  name: "Send Media by URL or ID",
7
7
  description: "Sends a file (document, photo, video, audio, ...) by HTTP URL or by ID that exists on the Telegram servers. [See the docs](https://core.telegram.org/bots/api#inputmedia) for more information",
8
- version: "0.0.6",
8
+ version: "0.0.7",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  telegramBotApi,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "telegram_bot_api-send-photo",
6
6
  name: "Send a Photo",
7
7
  description: "Sends a photo to your Telegram Desktop application. [See the docs](https://core.telegram.org/bots/api#sendphoto) for more information",
8
- version: "0.0.6",
8
+ version: "0.0.7",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-send-sticker",
5
5
  name: "Send a Sticker",
6
6
  description: "Sends a .webp sticker to you Telegram Desktop application. [See the docs](https://core.telegram.org/bots/api#sendsticker) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-send-text-message-or-reply",
5
5
  name: "Send a Text Message or Reply",
6
6
  description: "Sends a text message or a reply to your Telegram Desktop application. [See the docs](https://core.telegram.org/bots/api#sendmessage) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "telegram_bot_api-send-video",
6
6
  name: "Send a Video",
7
7
  description: "Sends a video file to your Telegram Desktop application. [See the docs](https://core.telegram.org/bots/api#sendvideo) for more information",
8
- version: "0.0.6",
8
+ version: "0.0.7",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  telegramBotApi,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "telegram_bot_api-send-video-note",
6
6
  name: "Send a Video Note",
7
7
  description: "As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method to send video messages. [See the docs](https://core.telegram.org/bots/api#sendvideonote) for more information",
8
- version: "0.0.6",
8
+ version: "0.0.7",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  telegramBotApi,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "telegram_bot_api-send-voice-message",
6
6
  name: "Send a Voice Message",
7
7
  description: "Sends a voice message. [See the docs](https://core.telegram.org/bots/api#sendvoice) for more information",
8
- version: "0.0.6",
8
+ version: "0.0.7",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-set-chat-permissions",
5
5
  name: "Set Chat Permissions",
6
6
  description: "Set default chat permissions for all members. [See the docs](https://core.telegram.org/bots/api#setchatpermissions) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
@@ -4,7 +4,12 @@ export default {
4
4
  key: "telegram_bot_api-unpin-message",
5
5
  name: "Unpin a Message",
6
6
  description: "Unpins a message. [See the docs](https://core.telegram.org/bots/api#unpinchatmessage) for more information",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  telegramBotApi,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/telegram_bot_api",
3
- "version": "0.3.12",
3
+ "version": "0.4.0",
4
4
  "description": "Pipedream Telegram_bot_api Components",
5
5
  "main": "telegram_bot_api.app.mjs",
6
6
  "keywords": [
@@ -10,7 +10,7 @@
10
10
  "homepage": "https://pipedream.com/apps/telegram_bot_api",
11
11
  "author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
12
12
  "dependencies": {
13
- "@pipedream/platform": "^3.0.3",
13
+ "@pipedream/platform": "^3.1.1",
14
14
  "node-telegram-bot-api": "^0.54.0",
15
15
  "uuid": "^8.3.2"
16
16
  },