https://github.com/stefanopisano/gz-notifications
Simple script to send notifications to a Telegram Channel.
https://github.com/stefanopisano/gz-notifications
shell telegram telegram-bot
Last synced: 21 days ago
JSON representation
Simple script to send notifications to a Telegram Channel.
- Host: GitHub
- URL: https://github.com/stefanopisano/gz-notifications
- Owner: StefanoPisano
- License: mit
- Created: 2023-02-20T12:07:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-20T20:04:36.000Z (over 3 years ago)
- Last Synced: 2025-11-20T04:03:07.245Z (7 months ago)
- Topics: shell, telegram, telegram-bot
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gz-notifications
Simple shell script bot to send notifications to a Telegram Channel.
## Prerequisites
1. Create your personal bot (Check https://core.telegram.org/bots/tutorial).
2. Annotate the bot Token.
3. Add the bot in some chat and get the CHAT ID. In order to do that, you can simply run `https://api.telegram.org/botXXX:YYYYY/getUpdates`, this will return a JSON containing the id of the chat. You need to replace `XXX:YYYYY` with the bot token.
## How To
1. Get the script `gz-notifications.sh`.
2. Set a variable named `GZ_TG_TOKEN` in your local environment.
3. Call the script passing the `chat id` and the message you want to run. For example `./gz-notifications.sh -123456 "This is a test!"`