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.9.tar.gz
(162.5 kB
view details)
Built Distribution
tgram-1.10.9-py3-none-any.whl
(394.0 kB
view details)
File details
Details for the file tgram-1.10.9.tar.gz
.
File metadata
- Download URL: tgram-1.10.9.tar.gz
- Upload date:
- Size: 162.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50ff9db481f4f565e687d9a1533269a1819924560da2980969304d9b76bfe4bf |
|
MD5 | 12cd07a7464ad5fbd8b32ff7ec6bb0d6 |
|
BLAKE2b-256 | 4e718095efd3cd9cee6d49f1ee3f18569f51b8a8866d5550d85232a8565ce9ab |
File details
Details for the file tgram-1.10.9-py3-none-any.whl
.
File metadata
- Download URL: tgram-1.10.9-py3-none-any.whl
- Upload date:
- Size: 394.0 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 | 270f1c6fc24a09d926cf4813a0e938439ef7386e22d9690375180755c9e6397d |
|
MD5 | 3bcd3c6d7b5519a84a4fa6c260d8c506 |
|
BLAKE2b-256 | 29591342007af6afeeadf8828c852890c74437f5609e7c5305e8a8a62bd4a65d |