telepot.aio.Bot convenient subclass, featuring dataset-powered SQLite.
Project description
davtelepot
This project conveniently subclasses third party telepot.aio.Bot, providing many interesting features.
Please note that you need Python3.5+ to run async code
Check requirements.txt for third party dependencies.
Check out help(Bot) for detailed information.
Project folders
data folder
*.db: databases used by bots*.log: log files (store log_file_name and errors_file_name indata/config.pymodule)passwords.py: contains secret information to be git-ignored (e.g. bot tokens)
my_token = 'token_of_bot1'
my_other_token = 'token_of_bot2'
...
Usage
from davtelepot import Bot
from data.passwords import my_token, my_other_token
my_bot = Bot(token=my_token, db_name='my_db')
my_other_bot = Bot(token=my_other_token, db_name='my_other_db')
@my_bot.command('/foo')
async def foo_command(update):
return "Bar!"
@my_other_bot.command('/bar')
async def bar_command(update):
return "Foo!"
Bot.run()
Check out help(Bot) for detailed information.
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
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 davtelepot-1.4.21.tar.gz.
File metadata
- Download URL: davtelepot-1.4.21.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc63373894b458d1930611d00ef2a002364af3c8d055c6391428c811bdb351b3
|
|
| MD5 |
73b5e4398aa37b9bec7792cd77e7a5fd
|
|
| BLAKE2b-256 |
3273e963b686a688fda1d26b0de1e675969fb73e05644466ea6adacc24eaaf97
|
File details
Details for the file davtelepot-1.4.21-py3-none-any.whl.
File metadata
- Download URL: davtelepot-1.4.21-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c706571355b256aefd2c0573f7a9802977110dabdc1b95a0db79f612bd575537
|
|
| MD5 |
92284dea972073175101799b11c23a0c
|
|
| BLAKE2b-256 |
e97ac7f4fad521de67a550f3d75afde83089ffd52838ef824b83ab065798a42a
|