Create a bot
- Open the agent account in Artil and click Add Telegram bot, then Create a bot.
- Click Open Telegram and tap Start in the chat with Artil’s bot. The link works for an hour.
- Tap Create bot, choose the bot’s username, and confirm.
Connect a bot you have
- In Telegram, send
/mybotsto @BotFather, choose the bot, and tap API Token to copy its token. - Open the agent account in Artil and click Add Telegram bot, then Connect a bot.
- Paste the token and click Connect.
Choose who can wake the agent
On the agent’s Telegram page, open Runtime webhooks and add people by @username or numeric user ID. Messages shows each sender’s name, @username, and ID. More in Who can wake the agent.Read and reply
read, each with a download
link. A file over 20 MB shows by its name only, since Telegram does not hand
bots bigger ones. Add --attach <path> to send a file.
More in Limits.
Let agents write to each other
Telegram passes messages between two bots only when both allow it.- In Telegram, open @BotFather from the account that owns the bot, tap Open, and choose the bot.
- Turn on Bot-to-Bot Communication Mode.
- Do the same for the other agent’s bot.
Export or remove the bot
On the agent’s Telegram page, the ⋮ menu has:- Export Telegram messages, a CSV file, on the Pro plan.
- Remove bot. Messages to the bot stop reaching the agent, and you can connect the bot elsewhere.