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.4.tar.gz
(155.5 kB
view details)
Built Distribution
tgram-1.11.4-py3-none-any.whl
(390.5 kB
view details)
File details
Details for the file tgram-1.11.4.tar.gz
.
File metadata
- Download URL: tgram-1.11.4.tar.gz
- Upload date:
- Size: 155.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 | 7d0d2758fb94bf2a030bb758bfcdd66b2898126a8349fca88676b2e6240ccc0d |
|
MD5 | 8013e4b90bb37fab0b432360faef2d9e |
|
BLAKE2b-256 | 36b8b28e01bfb439ab518e0f0c7cb97243c4bd273677c6f6342736e9db798f60 |
File details
Details for the file tgram-1.11.4-py3-none-any.whl
.
File metadata
- Download URL: tgram-1.11.4-py3-none-any.whl
- Upload date:
- Size: 390.5 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 | 6d822244e2915f610107ee868776a90bd5c9618bcc395de7b54ef63b50968426 |
|
MD5 | 6d544486641cfdb699d064f4967465a9 |
|
BLAKE2b-256 | 67530bbfebca735812d05a554d86d01e8840b3a9e4eb22a0958645c2ae151d8a |