telegram-webhook

Crates.iotelegram-webhook
lib.rstelegram-webhook
version0.1.0
sourcesrc
created_at2023-09-06 12:14:31.456073
updated_at2023-09-06 12:14:31.456073
descriptionA webhook server can forward messages from a source to Telegram chat(s).
homepagehttps://telegram-webhook.hack.ink
repositoryhttps://github.com/hack-ink/telegram-webhook
max_upload_size
id965216
size107,469
Xavier Lau (AurevoirXavier)

documentation

README

Telegram Webhook

A webhook server can forward messages from a source to Telegram chat(s).

License Checks Release GitHub tag (latest by date) GitHub code lines GitHub last commit

Installation options

  1. Download from https://github.com/hack-ink/telegram-webhook/releases.
  2. Install from crates.io cargo install telegram-webhook.
  3. 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 <ID>

Options:
  -p, --port <PORT>   Port to listen on [default: 8080]
  -c, --chat-ids <ID>  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

  1. Search for the bot @rwa_data_bot on Telegram and start a conversation with it by sending /start.
  2. Tap on the Chat button and choose the specific chat you wish to retrieve the ID for.
Commit count: 8

cargo fmt