Pyxgram
NEW!!!
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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| pyxgram-2.1.tar.gz | 17.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|