GhostPaw Telegram

v0.7.9
io.github.GhostPawJS/telegram Checked 3 hours ago Published 21 days ago

Telegram message mirror, search, sending, and moderation tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

tg_read

Read and query the Telegram database: messages, chats, users, reactions, and more. Use when: Use when you need to inspect stored messages, find chats or users, search text, or retrieve reaction and edit history. Not for: Do not use for sending, editing, or deleting messages.

ParameterTypeDescription
subcommand *stringWhich read operation to perform
afterintegerAfter this timestamp (ms)
beforeintegerBefore this timestamp (ms)
chatIdintegerChat ID
limitintegerMax results
messageIdintegerMessage ID
querystringFull-text search query
threadIdintegerThread ID filter
userIdintegerUser ID

tg_send

Outbound actions: send, edit, delete, pin/unpin messages, send typing indicator, and forward messages. Use when: Plans only by default. Use createTelegramToolFacade with execute: true and a client to perform actions with configurable limits. Use when you need to send or modify messages, show a typing indicator, or forward a message to another chat. Not for: Do not use for reading or querying stored data.

ParameterTypeDescription
subcommand *stringThe send subcommand.
chatIdintegerChat ID
fromChatIdintegerSource chat ID
messageIdintegerMessage ID
parseModestringParse mode (HTML, MarkdownV2)
replyToMessageIdintegerReply-to message ID
textstringMessage text
toChatIdintegerDestination chat ID

tg_manage

Moderation and chat administration: ban, unban, restrict, promote, kick users, and query member info. Use when: Plans only by default. Use createTelegramToolFacade with execute: true and a client to perform actions with configurable limits. Use when you need to moderate users, manage chat permissions, or look up member status. Not for: Do not use for sending messages or reading message history.

ParameterTypeDescription
subcommand *stringThe moderation subcommand.
canSendMessagesbooleanWhether the user can send messages.
chatIdintegerThe chat ID.
deleteMessagesbooleanDelete messages on ban.
isAdminbooleanGrant or revoke admin.
limitintegerMax members to return.
statusstringFilter by member status.
untilDateintegerUnix timestamp until the action applies.
userIdintegerThe user ID.

tg_connect

Query bot connection status, configuration, and chat list. Use when: Use to retrieve bot statistics, stored state values, or a list of active chats. Not for: Do not use for sending messages or moderating users.

ParameterTypeDescription
subcommand *stringThe connect subcommand.
keystringThe state key to look up.
limitintegerMax chats to return.