Py-telegram-bot
Python3 telegram bot made in order to listen bitcoin transactions and events on the Bitcoin network.
The bot has two main functionalities:
- RPC calls
- Push notifications to some events (currently new blocks & transactions events)
Events
Blocks
In order to subscribe to new block events, the message to send to the bot is /sub
. And to unsubscribe /unsub
.
Transactions
For the address events, the messages are as follows:
/listen <addr>
/unlisten <addr>
Configuration
All private configuration is under the following directory:
res/private/
To setup the bot, place your token at:
telegram.py:
TOKEN = ""
To setup the rpc calls, fullfill the following data at:
rpc.py:
URL = ""
AUTH = ('user', 'password')
And finally, to setup the push notifications, use an external websocket, place its data at:
ws.py:
URL = ""
<> with