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 hashes)
Built Distribution
botco-0.1.3-py3-none-any.whl
(210.6 kB
view hashes)