# Telegram Webhook
### A webhook server can forward messages from a source to Telegram chat(s).
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://github.com/hack-ink/telegram-webhook/actions/workflows/checks.yml)
[](https://github.com/hack-ink/telegram-webhook/actions/workflows/release.yml)
[](https://github.com/hack-ink/telegram-webhook/tags)
[](https://github.com/hack-ink/telegram-webhook)
[](https://github.com/hack-ink/telegram-webhook)
Installation options
- Download from https://github.com/hack-ink/telegram-webhook/releases.
- Install from crates.io
cargo install telegram-webhook
.
- Clone the repository and execute
cargo build --release
.
Usage
```
A webhook server can forward messages from a source to Telegram chat(s).
Usage: telegram-webhook [OPTIONS] --chat-id
Options:
-p, --port Port to listen on [default: 8080]
-c, --chat-ids Telegram chat ID
-h, --help Print help
-V, --version Print version
```
Set the bot token
export BOT_TOKEN=the-token-that-you-got-from-the-telegram-bot-father
How to obtain the chat ID
- Search for the bot @rwadatabot on Telegram and start a conversation with it by sending
/start
.
- Tap on the
Chat
button and choose the specific chat you wish to retrieve the ID for.