Modern solution for telegram bots development
Project description
Botify
Getting started
Install library via pip (Unavailable yet)
pip install botify
Create config folder in your project root directory with .yaml file (name doesn't matter)
name: botify # Whatever you want, but don't use '.' character.
token: <YOUR-BOT-API-TOKEN-HERE>
db_uri: sqlite:///data.db
And then use it like this:
from botify import botify
@botify.start()
async def start_handler(message):
await botify.send(
message.from_user.id, "Hello, {{ user.firstname }}. {% if user.id == 1 %}You are first!{% endif %}",
buttons = [("Github", "#https://github.com/dmitriypaulov/botify")]
)
botify.run()
See more in docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
botify-telegram-0.0.1.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for botify_telegram-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efc5157c30cd91f4ea36b98a29170829c86ba54a2c63503d102ebcc54311382a |
|
MD5 | becdeffff4d2a95cb399e74fc022db38 |
|
BLAKE2b-256 | 58a71a061569053d86e02f955e18918c9ed17ed756e63972b2c332bb56b17291 |