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.3.tar.gz
(152.7 kB
view details)
Built Distribution
tgram-1.11.3-py3-none-any.whl
(385.6 kB
view details)
File details
Details for the file tgram-1.11.3.tar.gz
.
File metadata
- Download URL: tgram-1.11.3.tar.gz
- Upload date:
- Size: 152.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61b7382724a8ebf11d9eee25e93de6ba49bcbc0187aa2f93b054276a2b3e2bbb |
|
MD5 | d00022a7c27d355f091c4d0116f36fb7 |
|
BLAKE2b-256 | c2dab6765d8a29a758a9d6c403aea496e92d91181313894b6abfbd74742344d4 |
File details
Details for the file tgram-1.11.3-py3-none-any.whl
.
File metadata
- Download URL: tgram-1.11.3-py3-none-any.whl
- Upload date:
- Size: 385.6 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 | a6378b27097d18e7bfb6ecd40418354d7998da6ebcffa22f4ebaf2cf0c1e7847 |
|
MD5 | faf80a0cb4a1508160303c346ed76129 |
|
BLAKE2b-256 | f3c3d472e187e8aedf0525b453abbfc581bb7a3095496fab4c694b8b984155ff |