mirror of
https://github.com/FAUSheppy/telegram-http-gateway
synced 2026-01-22 08:57:37 +01:00
initial
This commit is contained in:
22
README.md
Normal file
22
README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# HTTP->Telegram Gateway Notification Service
|
||||
Simplistic server that connect to a Telegram bot, takes messages via *POST*-requests containing json encoded data and sends them to all clients that are subscribed
|
||||
|
||||
# Telegram Setup
|
||||
- create a bot as described [here](https://core.telegram.org/bots)
|
||||
- add your bot as a contact
|
||||
|
||||
# Telegram Bot Commands
|
||||
|
||||
/start # subscribe
|
||||
/unsubscribe # unsubscribe
|
||||
|
||||
# Server Setup
|
||||
|
||||
usage: telegram-interface.py [-h] [--interface INTERFACE] [--port PORT]
|
||||
[--token-file TOKEN_FILE]
|
||||
|
||||
optional arguments:
|
||||
-h, --help show this help message and exit
|
||||
--interface INTERFACE Interface on which to listen (default: localhost)
|
||||
--port PORT Port on which to listen (default: 5000)
|
||||
--token-file TOKEN_FILE File containing the Bot-Token (default: bot.token)
|
||||
Reference in New Issue
Block a user