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.1.tar.gz
(160.6 kB
view details)
Built Distribution
tgram-1.12.1-py3-none-any.whl
(408.8 kB
view details)
File details
Details for the file tgram-1.12.1.tar.gz
.
File metadata
- Download URL: tgram-1.12.1.tar.gz
- Upload date:
- Size: 160.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a0014c9b6713965266c783876ad59ab46a8ff5973d92cfd87169b4dc1933104 |
|
MD5 | 93b86d168c2e711fcdb6b984bf75ad26 |
|
BLAKE2b-256 | 38f1a0ae8b5fb087a938b2b61554a4503723eae7c82c15c62b8f8c646303172d |
Provenance
The following attestation bundles were made for tgram-1.12.1.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.1.tar.gz
- Subject digest:
0a0014c9b6713965266c783876ad59ab46a8ff5973d92cfd87169b4dc1933104
- Sigstore transparency entry: 147095688
- Sigstore integration time:
- Predicate type:
File details
Details for the file tgram-1.12.1-py3-none-any.whl
.
File metadata
- Download URL: tgram-1.12.1-py3-none-any.whl
- Upload date:
- Size: 408.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 | 207ed4df6c1010e4d56b6b93be328011da4e1e0f6a890c6bf0447088d52dcb66 |
|
MD5 | cc9e2706a81b2b5e1fd3a424accdbeda |
|
BLAKE2b-256 | acdd00653147721f0f7382b04188508a2935f99a5e15695631afdbbd6f202d87 |
Provenance
The following attestation bundles were made for tgram-1.12.1-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.1-py3-none-any.whl
- Subject digest:
207ed4df6c1010e4d56b6b93be328011da4e1e0f6a890c6bf0447088d52dcb66
- Sigstore transparency entry: 147095690
- Sigstore integration time:
- Predicate type: