AACFlow

Telegram MTProto

Mit Telegram über das MTProto-Protokoll interagieren — Nachrichten senden, Chat-Verlauf abrufen, Dialoge auflisten

te

Telegram MTProto is the native protocol powering the Telegram platform, offering lower-level access compared to the Bot API. It allows reading message history from regular accounts, listing all accessible dialogs, and sending messages programmatically.

With the Telegram MTProto integration in AACFlow, you can:

  • Send messages: Dispatch text messages to any chat, group, or channel accessible to the account
  • Get history: Retrieve the message history of a conversation
  • List dialogs: Enumerate all dialogs (chats, groups, channels) available to the authenticated account

This integration is ideal for automation scenarios that require access beyond the Bot API scope, such as reading existing conversations or working with personal Telegram accounts.

Nutzungsanleitung

Integrate Telegram MTProto into the workflow. Requires API ID and API Hash from my.telegram.org, and a session string for user account access (or a Bot Token for Bot API fallback).

Tools

telegram_mtproto_send_message

Send a message to a Telegram chat

Eingabe

ParameterTypErforderlichBeschreibung
apiIdstringJaAPI ID from my.telegram.org, or Bot Token for Bot API
apiHashstringJaAPI Hash from my.telegram.org
sessionStringstringNeinSerialized session string for user account auth
chatIdstringJaTarget chat ID or username
messagestringJaText message to send

Ausgabe

ParameterTypBeschreibung
messageIdnumberID of the sent message
successbooleanWhether the message was sent

telegram_mtproto_get_history

Retrieve message history from a chat

Eingabe

ParameterTypErforderlichBeschreibung
apiIdstringJaAPI ID or Bot Token
apiHashstringJaAPI Hash
sessionStringstringNeinSession string
chatIdstringJaChat ID or username
limitnumberNeinNumber of messages to retrieve

Ausgabe

ParameterTypBeschreibung
messagesarrayArray of message objects
countnumberTotal messages returned

telegram_mtproto_get_dialogs

List all accessible dialogs

Eingabe

ParameterTypErforderlichBeschreibung
apiIdstringJaAPI ID or Bot Token
apiHashstringJaAPI Hash
sessionStringstringNeinSession string
limitnumberNeinMaximum dialogs to return

Ausgabe

ParameterTypBeschreibung
dialogsarrayArray of dialog objects (chats, groups, channels)

On this page

Heute mit dem Aufbau beginnen
Über 100 000 Entwickler vertrauen uns.
Die SaaS-Plattform zum Aufbau von KI-Agenten und für Ihre agentische Belegschaft.
Loslegen