This is the Python package for an easy-way declarative development of a Telegram bots. Telegram Bot Constructor (tbc) remembers users' states within SQL database. In this way, each user's request (pressed button, message or other input) processed individually. The tbc provides to developer some kind of the MVC instrumentation.
- Model (M) component is implemented using the great Python package transitions (for the states switching) and SQLAlchemy (for the data manipulations)
- View (V) component as a matter of fact is a Telegram-python interface: python-telegram-bot, which provides bot's buttons visualization, bot's replies sending and so on
- Controller (C) component is also partially the python-telegram-bot instrumentation (for the receiving user's inputs) and custom handlers (for the interaction with model)
Clone the repo from GitHub and then:
python setup.py install
Telegram api token could be obtained within the @BotFather.
So, you should go to Telegram and start chat with bot father. Then just follow extremely easy
instruction, provided by @BotFather.
Since we have the idea of the bot structure and token obtained from bot father, we can start to code the
blockchain explorer bot.