{"repo":"appleboy/telegram-action","free":true,"listed":false,"github":"https://github.com/appleboy/telegram-action","clone":"git clone https://github.com/appleboy/telegram-action.git","description":"GitHub Action that sends a Telegram message.","language":"Dockerfile","stars":1019,"topics":["github-actions","telegram","telegram-bot"],"license":"MIT","category":"chat-messaging","readme_excerpt":"🚀 Telegram for GitHub Actions 繁體中文 简体中文 GitHub Action for sending Telegram notification messages. Usage Send a custom message on every push: Remove the message input to send the default message, which looks like: @v1 follows the latest v1.x release. Pin an exact version such as appleboy/telegram-action@v1.1.1 if you want fully reproducible builds. Setup 1. Create a Telegram bot Talk to @BotFather in Telegram, send /newbot , and follow the prompts. BotFather replies with the bot token — this is your TELEGRAM TOKEN secret. See the Telegram Bot API for details. 2. Get the chat ID First send any message to your bot (for a group or channel, add the bot as a member and post a message there), then call: Read the chat ID from result[].message.chat.id — this is your TELEGRAM TO secret. - A private chat ID is a positive number, e.g. 65382999 . - A group / supergroup / channel ID is negative and usually starts with -100 , e.g. -1001234567890 . Use the numeric ID; usernames like @channelname are not supported. - If getUpdates returns an empty result, send a fresh message in the chat and call it again. Note : the \"Error: Chat not found\" error means the chat ID is wrong or the bot has never been added to that chat. See also this StackOverflow answer. Example getUpdates response 3. Add the secrets to your repository In your repository go to Settings → Secrets and variables → Actions and add TELEGRAM TOKEN and TELEGRAM TO . Input variables Variable Description ------------------------ -----","default_branch":null,"files":null,"tree":[],"storefront":"/r/appleboy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/appleboy/telegram-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}