Telegram integration

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

  1. Create a bot: open @BotFather in Telegram, send /newbot, choose a name (e.g. Picokoi Alerts) and a username ending in bot, then copy the bot token (looks like 123456789:AAE…).
  2. 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 @channelname as the Chat ID.
  3. Get your Chat ID: open this URL in a browser with your token filled in:
    https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates
    Find the "chat": {"id": …} value inside "result":
    "message": {
      "chat": {
        "id": 123456789,
        "type": "private"
      }
    }
    Copy that id number. Group and supergroup IDs start with - (often -100…).
  4. 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 refresh getUpdates.
  • 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…