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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file botify-telegram-0.0.1.tar.gz.
File metadata
- Download URL: botify-telegram-0.0.1.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a7da0b20c2367d5bdcad9475844066fcc4e3f88e35afff0912b3dbe8fa80af5
|
|
| MD5 |
5370e18127149bfddfe7277706d663d7
|
|
| BLAKE2b-256 |
cfc96be97ca93f3503ea5e7ae4af230d4d236af99b00d187f1eec8289acfcb1b
|
File details
Details for the file botify_telegram-0.0.1-py3-none-any.whl.
File metadata
- Download URL: botify_telegram-0.0.1-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efc5157c30cd91f4ea36b98a29170829c86ba54a2c63503d102ebcc54311382a
|
|
| MD5 |
becdeffff4d2a95cb399e74fc022db38
|
|
| BLAKE2b-256 |
58a71a061569053d86e02f955e18918c9ed17ed756e63972b2c332bb56b17291
|