Simple rabbitmq publisher and subscriber for sending messages to telegram
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
utils
.gitignore
_check_running.sh
_uptodate_checker.sh
config.sample.yaml
readme.md
requirements.txt
squealer.png
squealer_pub.py
squealer_sub.py

readme.md

Squealer Rabbitmq telegram relay bot

bot by @whalepoolbtc - https://whalepool.io

This is a simple bot to allow you to relay messages to telegram

Requirements

Install pip requirements sudo pip3.6 install -r requirements.txt

Setup config

cp config.sample.yaml config.yaml
Edit the config.yaml file accordingly

Run

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] ..." 

squealer_pub.py arguments

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)

To do

  • 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

Profile pic