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
- Start Session opens the account's session with its
.sessionfile and.jsondata 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. - 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.
- 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
| Job | Actions |
|---|---|
| Sessions | Start Session, Destroy Session, Set Session ID, Get Session ID, Get Active Sessions, Convert Session, Detect Session Format |
| Messages | Send Message, Reply to Message, Forward Message, Edit Message, Clone Message, Delete Message, Get Message, Publish Post, Send Comment |
| Reactions, views, polls | Send Reaction, View Messages, View Target, Read History, Vote Poll |
| Bots | Start Bot, Get Bot Buttons, Click Inline Button |
| Dialogs and search | Get Dialogs, Get Unread Dialogs, Get Controlled Dialogs, Search Entities, Get Entity Info, Check Username |
| Parsing | Parse Messages, Parse Users |
| Channels and groups | Join 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 |
| Contacts | Add Contact, Delete Contact, Block User, Unblock User |
| Profile and security | Get Account Info, Edit Profile, Get Privacy Settings, Change Privacy, Terminate Other Sessions, Auth: Set Password |
| Stories | Get 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.
| Mode | Actions |
|---|---|
| Mailer | Send Message, Forward Message |
| Comment Bot | Send Comment |
| Auto Reply | Reply to Message |
| Message Editor | Edit Message |
| Channel Clonner | Clone Message |
| Content Bot | Publish Post |
| Reactions Booster | Send Reaction, Vote Poll |
| View Booster | View Messages, View Target, Read History |
| Subscribers Booster | Join Channel/Group, Leave Channel/Group |
| Inviting | Invite to Group/Channel, Add Contact, Delete Contact |
| Parsing | Get Dialogs, Get Unread Dialogs, Get Controlled Dialogs, Parse Messages, Parse Users |
| Entity Creator | Create Channel, Create Group, Rename Entity, Remove Entity, Delete Chat, Promote Admin, Demote Admin |
| Profile Customizer | Edit Profile |
| Privacy Settings | Get Privacy Settings, Change Privacy, Block User, Unblock User |
| Telegram Stories | Get Peer Stories, Get Story By ID, View Story, Send Story Reaction, Create Story, Pin/Unpin Story, Delete Story |
| Converter | Detect Session Format, Convert Session |
| Account Manager | Terminate 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
Modules and actions
The Multogram Modules Constructor reference: all action modules — Telegram, logic and data, files and databases, network, code execution, threads, resources, statistics, logging, AI — and what each one does.
Logic and data
Multogram Modules Constructor modules for logic and data processing: Logic, String, Array, JSON, Math, Regex, DateTime, Encode, Crypto, Identity — all actions.