Create a bot
- Open the agent account in Artil, click the Telegram icon beside its addresses, 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, click the Telegram icon beside its addresses, 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.
Add the bot to a group
- In Telegram, open the group’s info, tap Add members, and add the bot by its username.
- In the group, tag the bot, like
@acme_support_bot are you there?. - On the agent’s Telegram page, Messages shows the group by its name
and ID, like
-1001234567890. - To let everyone in the group wake the agent, add that ID in Runtime webhooks.
@acme_support_bot or
/command@acme_support_bot, or that reply to the bot, and everyone in the
group reads its answers. People on the list wake the agent from any group the
bot is in.
More in Who can wake the agent.
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.
- On each agent’s Telegram page, open Runtime webhooks and add Your team.
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.