Send alerts to a chat, group or channel with your own bot. Credentials are stored encrypted in Picokoi and never logged or displayed in full.
Set up a Telegram bot
- Create a bot: open @BotFather in Telegram, send
/newbot, choose a name (e.g.Picokoi Alerts) and a username ending inbot, then copy the bot token (looks like123456789:AAE…). - Start a chat with the bot:
- Personal chat: open the
t.me/<your_bot>link from BotFather and tap Start (or send/start). Telegram bots cannot message you until you message them first. - Group: add the bot to your group and send a message in the group.
- Channel: add the bot as a channel administrator with permission to post messages. Public channels can use
@channelnameas the Chat ID.
- Personal chat: open the
- Get your Chat ID: open this URL in a browser with your token filled in:
Find thehttps://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates"chat": {"id": …}value inside"result":
Copy that"message": { "chat": { "id": 123456789, "type": "private" } }idnumber. Group and supergroup IDs start with-(often-100…). - Paste the Bot token and Chat ID into Picokoi, save, and click Send test.
Common mistakes:
- Do not use the digits before
:in your bot token as the Chat ID — that is the bot's own ID, and Telegram does not allow bots to message themselves. - Seeing
"result": []? Send another message to your bot (or in the group) and refreshgetUpdates. - Seeing
409 Conflict? That bot already has a webhook set elsewhere — create a dedicated bot in @BotFather for Picokoi.
CLI equivalent
picokoi channel add --kind telegram --name ops-telegram --chat-id 123456789 --bot-token 123456789:AAE…