Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A simple telegram bot framework on top of Python asyncio

Project Description

Baymax, a simple telegram bot framework on top of Python asyncio

Work in progress


  • Python 3.6 or higher


pip install baymax

Basic usage example

from import Bot

bot = Bot('token')

async def start_handler(message):
    await bot.reply(message, 'Welcome!')

Middleware example

async def message_logging_middleware(raw_update):'New update received: %s', raw_update['update_id'])
NOTE: All middleware functions should be coroutines for now, even if they do not have asynchronous actions.

Reply keyboard markup example

from baymax.markups import KeyboardButton, ReplyKeyboardMarkup

async def rate_handler(message):
    await bot.reply(message, 'Rate me', reply_markup=ReplyKeyboardMarkup(
        ], resize_keyboard=True, one_time_keyboard=True))
NOTE: Reply markup API / objects will be changing, they are far from good now.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(8.1 kB) Copy SHA256 Hash SHA256
Wheel py3 Feb 1, 2018

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting