Skip to main content

A framework for python bots for telegram

Project description



In the versions 2 or higher you can delete the context for all you calls to bot, excepts the commands.


A bit of history... Pyxgram was born when i create the Reisub Bot, my code it was very unreadable, but i have the idea of create a framework for fix my code and help the python community.

The pyxgram framework works thanks the python-telegram-bot library, wich has a big comunity, but that library its hard to use for some people, but you can use the code of this library with update and context objects or self.dispatcher and self.updater

More info

You can see the wiki here. Wiki.


This is a code example for the people has no knowedge about this framework. Works in the 1.1 Versions or higher

from import Basebot


def start(update,context):


You need to replace the 'mytoken' string to your bot token

Other example, this only works in versions 1.2 or higher

from pyxgram import BaseBot


def start(update,context):


Project details

Download files

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

Files for pyxgram, version 2.1
Filename, size File type Python version Upload date Hashes
Filename, size pyxgram-2.1-py3-none-any.whl (17.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyxgram-2.1.tar.gz (17.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page