Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s00d/fast-telegram-action
https://github.com/s00d/fast-telegram-action
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/s00d/fast-telegram-action
- Owner: s00d
- Created: 2023-09-15T11:01:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-15T12:09:36.000Z (over 1 year ago)
- Last Synced: 2024-10-31T10:47:20.811Z (2 months ago)
- Size: 1.85 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Send Telegram Message GitHub Action
This [GitHub Action](https://github.com/marketplace/actions/fast-telegram-action) allows you to send a message to Telegram using a Bash script. It can be useful for sending notifications or alerts from your workflows.
## Inputs
- `token` (required): The Telegram Bot API token.
- `to` (required): The Telegram chat ID or group ID.
- `message` (required): The message text to be sent (supports Markdown). The default value is "Hello from GitHub Actions!".
- `format` (optional): markdown or html. default is markdown.
- `disable_web_page_preview` (optional): disables notifications for this message, supports sending a message without notification. default is false.## Example Usage
```yaml
name: Send Telegram Messageon:
push:
branches:
- mainjobs:
send-message:
runs-on: ubuntu-latest
steps:
- name: Send Telegram Message
uses: s00d/fast-telegram-action@v9
with:
token: ${{ secrets.TELEGRAM_TOKEN }}
to: ${{ secrets.TELEGRAM_TO }}
message: 'This is a test message from GitHub Actions!'
```Make sure you have set up the `TELEGRAM_TOKEN` and `TELEGRAM_TO` secrets in your repository's settings.
## Contributing
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please create an issue or submit a pull request.
## License
This GitHub Action is licensed under the [MIT License](LICENSE).