项目作者: ccebrecos

项目描述 :
Python3 telegram bot made in order to listen bitcoin transactions and events on the network.
高级语言: Python
项目地址: git://github.com/ccebrecos/py-telegram-bot.git
创建时间: 2018-01-29T10:09:53Z
项目社区:https://github.com/ccebrecos/py-telegram-bot

开源协议:Apache License 2.0

下载


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 \
/unlisten \

Configuration

All private configuration is under the following directory:
res/private/

To setup the bot, place your token at:

telegram.py:

  1. TOKEN = ""

To setup the rpc calls, fullfill the following data at:

rpc.py:

  1. URL = ""
  2. AUTH = ('user', 'password')

And finally, to setup the push notifications, use an external websocket, place its data at:

ws.py:

  1. URL = ""

<> with ♥ by @ccebrecos