Skip to main content

Pyxgram

NEW!!!

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

Spanish

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.

Examples

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

from pyxgram.bot import Basebot

bot=Basebot('mytoken')

@bot.normal_command
def start(update,context):
  bot.send_text('Hello',update,context)

bot.start()

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

bot=BaseBot('mytoken')

@bot.normal_command
def start(update,context):
  bot.send_text('Hello',update,context)

bot.start()

Release files for pyxgram 2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyxgram 2.1
File Size Uploaded
pyxgram-2.1.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyxgram 2.1
File Interpreter ABI Platform
pyxgram-2.1-py3-none-any.whl Python 3 none any Details

Total release size: 34.9 kB

Release files / pyxgram-2.1.tar.gz

Download URL pyxgram-2.1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
966ed27b370031a32645fbebf7dae9ed7ea2ecfa3186b97e044405e5319e0dfb
BLAKE2b-256 checksum
How to use checksums
12dfe6fe3b00b12bc18eec7537b49135867d2454a80f229996f0bc23ac442cf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / pyxgram-2.1-py3-none-any.whl

Download URL pyxgram-2.1-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1c8587a3ed3ed16a961010db3ecb05569cbbb661a9165c7e55439b99aecb05f
BLAKE2b-256 checksum
How to use checksums
8c045c1162eef6c3298816d50267cfb958112b64605590d5bd39143d414be8ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release history Release notifications | RSS feed

This release

2.1 This release

2 release files

2.0

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page