Skip to content

Send a Telegram message from within a GitHub Actions workflow

License

Notifications You must be signed in to change notification settings

p4irin/action-send-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test action-send-telegram

Send Telegram action

Send a message to a Telegram user or group from within a GitHub Actions workflow

Prerequisite

Get a Telegram bot token and the chat-id of the user/group you want to send a message to: Create a new Telegram bot

Inputs

telegram-bot-token

Required Your Telegram bot token.

telegram-chat-id

Required The chat-id of a Telegram user or group

message

Required Your text message

Outputs

telegram_response

The response from Telegram

Example usage

uses: p4irin/action-send-telegram@v1
with:
  telegram-bot-token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
  telegram-chat-id: ${{ secrets.TELEGRAM_CHAT_ID}}
  message: 'Your message here'

About

Send a Telegram message from within a GitHub Actions workflow

Resources

License

Stars

Watchers

Forks

Packages