Very friendly BOT API library for Python developers.
Project description
tgram
A user-friendly Telegram Bot API library for Python developers.Channel • Documentation • Examples
🚀 Quick Start
Here's a basic example to get started with tgram:
from tgram import TgBot, filters
from tgram.types import Message
bot = TgBot("YOUR_BOT_TOKEN")
@bot.on_message(filters.text & filters.private)
async def on_message(bot: TgBot, message: Message) -> Message:
# Echo the incoming message
return await message.reply_text(
message.text,
entities=message.entities
)
bot.run()
📦 Features
- Smart Plugins: Auto-loadable plugins for modular development.
- Filters for Handlers: Simplify event handling with filters.
- Bound Methods: Access bound methods for different update types easily.
📚 Documentation
Full documentation is available here.
🔧 Installation
You can install the tgram library using one of the following methods:
Via git:
pip install git+https://github.com/z44d/tgram -U
Via PyPI (Recommended)
pip install tgram -U
💡 Requirements
- Python: Version 3.8 or higher.
- Telegram Bot Token: Obtain one by following this guide.
💬 Help & Support
- For general questions and help, join our Telegram chat.
- Follow updates via the Telegram Channel.
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.12.2.tar.gz
(162.9 kB
view details)
Built Distribution
tgram-1.12.2-py3-none-any.whl
(414.8 kB
view details)
File details
Details for the file tgram-1.12.2.tar.gz
.
File metadata
- Download URL: tgram-1.12.2.tar.gz
- Upload date:
- Size: 162.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1e3dd321a3eec072581a1147ca59139433966aeb6792fe5a391c0513f423b38 |
|
MD5 | e82cfda71afdde48448dc81fcea962b4 |
|
BLAKE2b-256 | d09fc7cfd86bf5873a371edaca26e0f0318d9123b1571e82a248af783658e85c |
Provenance
The following attestation bundles were made for tgram-1.12.2.tar.gz
:
Publisher:
release.yml
on z44d/tgram
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
tgram-1.12.2.tar.gz
- Subject digest:
b1e3dd321a3eec072581a1147ca59139433966aeb6792fe5a391c0513f423b38
- Sigstore transparency entry: 149374920
- Sigstore integration time:
- Predicate type:
File details
Details for the file tgram-1.12.2-py3-none-any.whl
.
File metadata
- Download URL: tgram-1.12.2-py3-none-any.whl
- Upload date:
- Size: 414.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 333ec710b29024e6f34f8364778d71d57b2652f2e7c916a90c913fc9447f342a |
|
MD5 | a4140e103b6f460a893ad5e65594d4b2 |
|
BLAKE2b-256 | 709d2e06a6c7521cf5c8c87d54c1360d3f9ca1f4c7955d0c80d47f53f0d7ec76 |
Provenance
The following attestation bundles were made for tgram-1.12.2-py3-none-any.whl
:
Publisher:
release.yml
on z44d/tgram
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
tgram-1.12.2-py3-none-any.whl
- Subject digest:
333ec710b29024e6f34f8364778d71d57b2652f2e7c916a90c913fc9447f342a
- Sigstore transparency entry: 149374921
- Sigstore integration time:
- Predicate type: