Skip to main content

Modern and powerful asynchronous telegram bot framework.

Project description



Modern and powerful asynchronous telegram bot framework.

Release news available here: @RocketgramNews


All dependencies are optional, but you should install aiohttp to use the framework.

orjson or ujson is highly recommended to speedup json parsing.

Also, you can use uvloop as alternative to standard event loop.

  • Python >= 3.7
  • aiohttp >= 3.8.1
  • ujson >= 5.2.0
  • orjson >= 3.6.8
  • uvloop >= 0.12.1

How to install

For development

pip install rocketgram[aiohttp]

For production

pip install uvloop rocketgram[aiohttp,orjson]


There is a trivial example below. Here is useful bot template.

from rocketgram import Bot, Dispatcher, UpdatesExecutor
from rocketgram import context, commonfilters
from rocketgram import SendMessage

token = f'YOUR_BOT_TOKEN'

router = Dispatcher()
bot = Bot(token, router=router)

async def start_command():
    await SendMessage(, f'Hello there!').send()
async def start_command():
    await SendMessage(, f'Some userful help!').send()


Code tested automatically using Github Actions. You can see build status here.

To test code manually install and run pytest:

pip install pytest
python -m pytest

Download files

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

Source Distribution

rocketgram-5.0.1.tar.gz (64.3 kB view hashes)

Uploaded source

Built Distribution

rocketgram-5.0.1-py3-none-any.whl (206.6 kB view hashes)

Uploaded py3

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