Skip to main content

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


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)

Uploaded Source

Built Distribution

botco-0.1.3-py3-none-any.whl (210.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page