bot by @whalepoolbtc - https://whalepool.io
This is a simple bot to allow you to relay messages to telegram
Install pip requirements sudo pip3.6 install -r requirements.txt
cp config.sample.yaml config.yaml
Edit the config.yaml file accordingly
To run the subscriber, who connects to rabbit, awaits messages then sends to telegram:
python3.6 squealer_sub.py
To push a message to telegram, from bash type:
python3.6 squealer_pub.py --msg="... [msg string goes here] ..."
Arg | Type | Default | Required | Explanation |
---|---|---|---|---|
msg | string | - | Yes | Message to be send to telegram |
chat_id | int | config.ADMIN_CHAT_ID | No | An specific chat id to msg to (ie, yourself for testing) |
- Send pictures / Picture arguments
- Validate msg input isn't too long for telegram, spew error warning
- Sanitise/Remove unwanted formatting characters from string that can conflict with telegram markdown parsing
For more info join @whalepoolbtc on telegram