Skip to content
Docs
Modules ConstructorModules and actions

Telegram

The Telegram module in the Multogram Modules Constructor: account sessions, messages and comments, reactions and views, bots, dialogs and parsing, channels and groups, contacts, profile and privacy, stories. Which Multogram modes each action needs.

Working with Telegram accounts — as in the official application, without a browser. Each action runs on behalf of the account whose session is open in the current thread.

How work with an account starts

  1. Start Session opens the account's session with its .session file and .json data file, through a proxy if one is set. The new module template does this in the AuthSession function and takes the proxy from [[account]].proxy — see Your first module.
  2. After that, actions work with this session — you don't need to specify the account in each one. In the template their place is the THEN branch of the ProcessAccount function.
  3. Destroy Session closes the session when work with the account is finished.

An action's target — a user, chat, channel or group — is set in the Target field: @username, a t.me/… link, a phone number or a numeric ID.

Actions

JobActions
SessionsStart Session, Destroy Session, Set Session ID, Get Session ID, Get Active Sessions, Convert Session, Detect Session Format
MessagesSend Message, Reply to Message, Forward Message, Edit Message, Clone Message, Delete Message, Get Message, Publish Post, Send Comment
Reactions, views, pollsSend Reaction, View Messages, View Target, Read History, Vote Poll
BotsStart Bot, Get Bot Buttons, Click Inline Button
Dialogs and searchGet Dialogs, Get Unread Dialogs, Get Controlled Dialogs, Search Entities, Get Entity Info, Check Username
ParsingParse Messages, Parse Users
Channels and groupsJoin Channel/Group, Leave Channel/Group, Create Channel, Create Group, Rename Entity, Remove Entity, Delete Chat, Promote Admin, Demote Admin, Invite to Group/Channel, Toggle Content Protection
ContactsAdd Contact, Delete Contact, Block User, Unblock User
Profile and securityGet Account Info, Edit Profile, Get Privacy Settings, Change Privacy, Terminate Other Sessions, Auth: Set Password
StoriesGet Peer Stories, Get Story By ID, View Story, Send Story Reaction, Create Story, Pin/Unpin Story, Delete Story

Send Message and Publish Post send text or media: photos, videos, files, voice and video messages, with HTML markup in the text.

Which modes the actions need

Some actions belong to Multogram modes. Such an action can be added to the scenario only if your account has the mode, and the finished module runs only for those who have it too — see Mode requirements.

ModeActions
MailerSend Message, Forward Message
Comment BotSend Comment
Auto ReplyReply to Message
Message EditorEdit Message
Channel ClonnerClone Message
Content BotPublish Post
Reactions BoosterSend Reaction, Vote Poll
View BoosterView Messages, View Target, Read History
Subscribers BoosterJoin Channel/Group, Leave Channel/Group
InvitingInvite to Group/Channel, Add Contact, Delete Contact
ParsingGet Dialogs, Get Unread Dialogs, Get Controlled Dialogs, Parse Messages, Parse Users
Entity CreatorCreate Channel, Create Group, Rename Entity, Remove Entity, Delete Chat, Promote Admin, Demote Admin
Profile CustomizerEdit Profile
Privacy SettingsGet Privacy Settings, Change Privacy, Block User, Unblock User
Telegram StoriesGet Peer Stories, Get Story By ID, View Story, Send Story Reaction, Create Story, Pin/Unpin Story, Delete Story
ConverterDetect Session Format, Convert Session
Account ManagerTerminate Other Sessions

The other actions — sessions, reading messages, bots, search and account information — don't require modes.

Respect Telegram's limits

Frequent similar actions — messages to strangers, mass joins and invitations — lead to FloodWait and spam block. Add pauses (Delay), move them into the module's settings and spread the work across accounts and time.

Updated

CookiesPrivacy Policy

We use essential cookies to run this site. With your consent, we will also use analytics cookies to improve it and marketing cookies to credit whoever referred you. You can change your choice at any time.