Very friendly BOT API library for python devs.
Project description
Example Usage
from tgram import TgBot, filters
from tgram.types import Message
bot = TgBot("TOKEN")
@bot.on_message(filters.text & filters.private)
async def on_message(bot: TgBot, message: Message) -> Message:
#Echo
return await message.reply_text(
message.text,
entities=message.entities)
bot.run_for_updates()
Features
- Smart plugins with auto-load.
- Filters for handlers.
- Bound methods for update types.
Requirements
- Python 3.8 or higher.
- A Telegram BOT Token.
How to install?
Here's how to install the tgram library. The commands are given below:
# With Git
pip install git+https://github.com/z44d/tgram -U
# With PyPi (Recommended)
pip install tgram -U
Help & Support
- Join our Telegram chat.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tgram-1.10.8.tar.gz
(160.7 kB
view details)
Built Distribution
tgram-1.10.8-py3-none-any.whl
(391.8 kB
view details)
File details
Details for the file tgram-1.10.8.tar.gz
.
File metadata
- Download URL: tgram-1.10.8.tar.gz
- Upload date:
- Size: 160.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d28663658d447afc3b0e97eeac55bd05477f9daccc506fc05ac584d8b7b7c77 |
|
MD5 | 9d7c1445674e12b58b9cce252483af55 |
|
BLAKE2b-256 | 9be7143f1d076146bf21016ac606c0be79a65622c235ad3b542735d482dbf580 |
File details
Details for the file tgram-1.10.8-py3-none-any.whl
.
File metadata
- Download URL: tgram-1.10.8-py3-none-any.whl
- Upload date:
- Size: 391.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52bdb3fd9661488dbbbdc565c090648f89a152f7261692527fb158df05a182fb |
|
MD5 | 4ae1431775258cdeb95f1847ec2c0c6e |
|
BLAKE2b-256 | 213d897f731c0da6253d6ea0f4d82c6999eaf3043f1fa01605fa23f7fc103508 |