TopGit theo dõi appleboy/telegram-action trên GitHub trong nhóm Automation, đã đạt 1.0k sao. GitHub Action that sends a Telegram message.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Remove the message input to send the default message, which looks like:
appleboy/telegram-action/telegram message triggered by appleboy (push)
@v1 follows the latest v1.x release. Pin an exact version such as
appleboy/[email protected] 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.
Send a message to a specific forum topic (thread):
- name: send message to forum topic
uses: appleboy/telegram-action@v1
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message_thread_id: 42
message: Hello from GitHub Actions!
Send message using a custom proxy (supports http, https, and socks5),
like socks5://127.0.0.1:1080 or http://222.124.154.19:23500:
- name: send message using socks5 proxy URL
uses: appleboy/telegram-action@v1
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
socks5: "http://222.124.154.19:23500"
message: Send message from socks5 proxy URL.
Message formatting
With format: markdown the message is sent using Telegram's legacy
Markdown style.
Underscores are escaped automatically, but unbalanced *, `, or [
characters (for example in a commit message) make the Telegram API reject the
whole message with a "can't parse entities" error. For messages with
unpredictable content, prefer format: html or plain text (no format).
Template variables
The message and message_file inputs are rendered as templates: {{ ... }}
placeholders are replaced with values taken from the environment.
- name: send message with template variables
uses: appleboy/telegram-action@v1
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
Commit {{ commit.sha }} on {{ commit.ref }}
triggered by {{ repo.namespace }}
appleboy/telegram-action có 1.0k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/appleboy/telegram-action. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
appleboy/telegram-action có những chủ đề gì?
GitHub topics của appleboy/telegram-action: "github-actions", "telegram", "telegram-bot". TopGit xếp repo vào nhóm Automation.
appleboy/telegram-action có phải mã nguồn mở không?
Có — appleboy/telegram-action phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/appleboy/telegram-action.
appleboy/telegram-action có trang demo không?
Dự án có trang chủ ở https://github.com/marketplace/actions/telegram-message-notify. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
appleboy/telegram-action còn đang phát triển không?
Commit gần nhất trên appleboy/telegram-action là 12 ngày trước (theo timestamp GitHub). Repo có 131 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Cùng nhóm Automation còn repo nào?
appleboy/telegram-action thuộc nhóm Automation trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về appleboy/telegram-action ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/appleboy/telegram-action là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về telegram-action?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về telegram-action.