Very friendly BOT API library for python devs.
Project description
A very friendly BOT API library for python developers.
Channel
•
Documentation
•
Examples
tgram
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/2ei/tgram -U
# With PyPi (Recommended)
pip install tgram -U
Help & Support
- Join our telgeam 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.5.tar.gz
(116.2 kB
view hashes)
Built Distribution
tgram-1.10.5-py3-none-any.whl
(119.8 kB
view hashes)