@frogbotai/piece-telegram-bot 0.15.0 → 0.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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -24
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PieceFactoryConfig } from
|
|
1
|
+
import { type PieceFactoryConfig } from 'frogbot/pieces';
|
|
2
2
|
export declare const telegramBotActions: readonly ["send_text_message", "send_media", "send_document", "send_location", "edit_message_text", "get_chat"];
|
|
3
3
|
export declare const telegramBotScopes: readonly [];
|
|
4
4
|
export declare function createTelegramBot(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,kBAAkB,iHAOrB,CAAC;AACX,eAAO,MAAM,iBAAiB,aAAc,CAAC;AAE7C,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUzD,oEAAoE;;IAEpE,2FAA2F;;IAE3F,uEAAuE;;IAEvE,gGAAgG;;IAEhG,wFAAwF;;IAExF,uGAAuG;;IAEvG,yEAAyE;;IAEzE,gKAAgK;;IAEhK,yFAAyF;;IAEzF,wIAAwI;;IAExI,kEAAkE;;IAElE,2GAA2G;;IAE3G,gHAAgH;;IAEhH,uGAAuG;;IAEvG,sFAAsF;;IAEtF,kFAAkF;;IAElF,2DAA2D;;IAE3D,uIAAuI;;IAEvI,yHAAyH;;IAEzH,qEAAqE;;EAGxE"}
|
package/dist/index.js
CHANGED
|
@@ -1,57 +1,64 @@
|
|
|
1
1
|
import * as module from '@activepieces/piece-telegram-bot';
|
|
2
|
-
import { createActivepiecesPiece } from
|
|
3
|
-
export const telegramBotActions = [
|
|
2
|
+
import { createActivepiecesPiece } from 'frogbot/pieces';
|
|
3
|
+
export const telegramBotActions = [
|
|
4
|
+
'send_text_message',
|
|
5
|
+
'send_media',
|
|
6
|
+
'send_document',
|
|
7
|
+
'send_location',
|
|
8
|
+
'edit_message_text',
|
|
9
|
+
'get_chat',
|
|
10
|
+
];
|
|
4
11
|
export const telegramBotScopes = [];
|
|
5
12
|
export function createTelegramBot(config) {
|
|
6
13
|
const piece = createActivepiecesPiece({
|
|
7
14
|
module: module,
|
|
8
|
-
service:
|
|
9
|
-
credentialType:
|
|
15
|
+
service: 'telegram_bot',
|
|
16
|
+
credentialType: 'secret_text',
|
|
10
17
|
defaultActions: telegramBotActions,
|
|
11
18
|
scopes: telegramBotScopes,
|
|
12
19
|
config,
|
|
13
20
|
});
|
|
14
21
|
return Object.assign(piece, {
|
|
15
22
|
/** Send Text Message: Send a text message through a Telegram bot */
|
|
16
|
-
sendTextMessage: piece.tool(
|
|
23
|
+
sendTextMessage: piece.tool('send_text_message'),
|
|
17
24
|
/** Send Media: Send a media message (photo, video, sticker, GIF) through a Telegram bot */
|
|
18
|
-
sendMedia: piece.tool(
|
|
25
|
+
sendMedia: piece.tool('send_media'),
|
|
19
26
|
/** Send Document: Send a generic file (document) to a Telegram chat */
|
|
20
|
-
sendDocument: piece.tool(
|
|
27
|
+
sendDocument: piece.tool('send_document'),
|
|
21
28
|
/** Send Audio: Send an audio file to a Telegram chat (.MP3/.M4A — shown in the music player) */
|
|
22
|
-
sendAudio: piece.tool(
|
|
29
|
+
sendAudio: piece.tool('send_audio'),
|
|
23
30
|
/** Send Location: Send a geographic location (latitude/longitude) to a Telegram chat */
|
|
24
|
-
sendLocation: piece.tool(
|
|
31
|
+
sendLocation: piece.tool('send_location'),
|
|
25
32
|
/** Send Media Group: Send a group of 2–10 photos, videos, documents or audios as an album to a chat */
|
|
26
|
-
sendMediaGroup: piece.tool(
|
|
33
|
+
sendMediaGroup: piece.tool('send_media_group'),
|
|
27
34
|
/** Send Poll: Send a native Telegram poll (regular or quiz) to a chat */
|
|
28
|
-
sendPoll: piece.tool(
|
|
35
|
+
sendPoll: piece.tool('send_poll'),
|
|
29
36
|
/** Send Chat Action: Show a status (typing, uploading photo, recording voice, etc.) on behalf of the bot in a chat. The status is shown for up to 5 seconds. */
|
|
30
|
-
sendChatAction: piece.tool(
|
|
37
|
+
sendChatAction: piece.tool('send_chat_action'),
|
|
31
38
|
/** Edit Message Text: Edit the text of a previously sent message or an inline message */
|
|
32
|
-
editMessageText: piece.tool(
|
|
39
|
+
editMessageText: piece.tool('edit_message_text'),
|
|
33
40
|
/** Delete Message: Delete a message sent in a chat. Bots can delete their own messages and messages in groups where they are admins. */
|
|
34
|
-
deleteMessage: piece.tool(
|
|
41
|
+
deleteMessage: piece.tool('delete_message'),
|
|
35
42
|
/** Forward Message: Forward a message from one chat to another */
|
|
36
|
-
forwardMessage: piece.tool(
|
|
43
|
+
forwardMessage: piece.tool('forward_message'),
|
|
37
44
|
/** Pin Message: Pin a message in a chat. The bot must be an administrator in the chat for this to work. */
|
|
38
|
-
pinMessage: piece.tool(
|
|
45
|
+
pinMessage: piece.tool('pin_message'),
|
|
39
46
|
/** Unpin Message: Unpin a message in a chat. Leave Message Id empty to unpin the most recent pinned message. */
|
|
40
|
-
unpinMessage: piece.tool(
|
|
47
|
+
unpinMessage: piece.tool('unpin_message'),
|
|
41
48
|
/** Get Chat: Get up-to-date information about a chat (name, description, photo, member count, etc.) */
|
|
42
|
-
getChat: piece.tool(
|
|
49
|
+
getChat: piece.tool('get_chat'),
|
|
43
50
|
/** Get Chat Member: Get member info (or null) for the provided chat id and user id */
|
|
44
|
-
getChatMember: piece.tool(
|
|
51
|
+
getChatMember: piece.tool('get_chat_member'),
|
|
45
52
|
/** Get File: Get file information and optionally download a file from Telegram */
|
|
46
|
-
getFile: piece.tool(
|
|
53
|
+
getFile: piece.tool('get_file'),
|
|
47
54
|
/** Create Invite Link: Create an invite link for a chat */
|
|
48
|
-
createInviteLink: piece.tool(
|
|
55
|
+
createInviteLink: piece.tool('create_invite_link'),
|
|
49
56
|
/** Answer Callback Query: Respond to a callback query sent by an inline keyboard button. Shows a notification or alert to the user. */
|
|
50
|
-
answerCallbackQuery: piece.tool(
|
|
57
|
+
answerCallbackQuery: piece.tool('answer_callback_query'),
|
|
51
58
|
/** Request Approval Message: Send an approval message to a chat and wait until the message is approved or disapproved */
|
|
52
|
-
requestApprovalMessage: piece.tool(
|
|
59
|
+
requestApprovalMessage: piece.tool('request_approval_message'),
|
|
53
60
|
/** Custom API Call: Make a custom API call to a specific endpoint */
|
|
54
|
-
customApiCall: piece.tool(
|
|
61
|
+
customApiCall: piece.tool('custom_api_call'),
|
|
55
62
|
});
|
|
56
63
|
}
|
|
57
64
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,mBAAmB;IACnB,YAAY;IACZ,eAAe;IACf,eAA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AChH,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;QACzC,uGAAuG;QACvG,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;QAC/B,sFAAsF;QACtF,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;QAC5C,kFAAkF;QAClF,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;QAC/B,2DAA2D;QAC3D,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC;QAClD,uIAAuI;QACvI,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC;QACxD,yHAAyH;QACzH,sBAAsB,EAAE,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC;QAC9D,qEAAqE;QACrE,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-telegram-bot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Telegram Bot tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"@activepieces/piece-telegram-bot": "0.6.5"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"frogbot": "0.
|
|
25
|
+
"frogbot": "0.17.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "5.6.2",
|
|
29
|
-
"frogbot": "0.
|
|
29
|
+
"frogbot": "0.17.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|