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.11.2.tar.gz
(150.5 kB
view details)
Built Distribution
tgram-1.11.2-py3-none-any.whl
(382.3 kB
view details)
File details
Details for the file tgram-1.11.2.tar.gz
.
File metadata
- Download URL: tgram-1.11.2.tar.gz
- Upload date:
- Size: 150.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c92c34172c86823c844cf4aaf2ffa6ec8b0309657b1c01785be49fd65fd890aa |
|
MD5 | fb5d018a50092a267b3afd689ad55b17 |
|
BLAKE2b-256 | b6ed39f73971d62429144b65337570ea1a3fe6c7556520e439be229d4d737a44 |
File details
Details for the file tgram-1.11.2-py3-none-any.whl
.
File metadata
- Download URL: tgram-1.11.2-py3-none-any.whl
- Upload date:
- Size: 382.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71dbf50d24cd193f71e527c442ef4963c350abd021d115f5234b1580528ac0cd |
|
MD5 | 3a5b7cd4669b35caf94027eaa9c80863 |
|
BLAKE2b-256 | 9d23f3dbe43567a18185051b7c914394ef7e99499e40a376ce6b574c2fe03ee8 |