No project description provided
Project description
botco
- Telegram bot api wrapper (WIP)
Installation
pip install botco
Quick start
from botco import Bot, Dispatcher, types
from botco.contrib.fsm import FSM
bot = Bot("token_here")
dp = Dispatcher()
@dp.message(commands="start")
def start_message(message: types.Message, bot: Bot, state: FSM):
message.answer("Hello world!")
@dp.message()
def echo(message: types.Message):
message.reply(message.text)
dp.start_polling(bot)
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
botco-0.1.3.tar.gz
(191.1 kB
view details)
Built Distribution
botco-0.1.3-py3-none-any.whl
(210.6 kB
view details)
File details
Details for the file botco-0.1.3.tar.gz
.
File metadata
- Download URL: botco-0.1.3.tar.gz
- Upload date:
- Size: 191.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81be6f4677f4ca7909c3d22bc7a5381ed60880b887703c8a72d77350b29a1ec1 |
|
MD5 | 5ee30e9261df4bafe7b6e2f778de7702 |
|
BLAKE2b-256 | 6e1ad54ef697919d65b2daddb8b5ab9b750a3d92e7700740756bbf0ca9858ef4 |
File details
Details for the file botco-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: botco-0.1.3-py3-none-any.whl
- Upload date:
- Size: 210.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee723d1591f76fa77ec538e967b6684b2b5c7b763f6ba152c231590d94e0d648 |
|
MD5 | de3abffb14f234b60b00b3870e7ed6f7 |
|
BLAKE2b-256 | 6f2640af166fbde0e10921961990d2d761e3af3201eebbc60e033ae2545dedbd |