Skip to main content

Very friendly BOT API library for Python developers.

Project description

tgram

tgram

A user-friendly Telegram Bot API library for Python developers.
ChannelDocumentationExamples

🚀 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

Project details


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.9.tar.gz (160.6 kB view details)

Uploaded Source

Built Distribution

tgram-1.11.9-py3-none-any.whl (408.8 kB view details)

Uploaded Python 3

File details

Details for the file tgram-1.11.9.tar.gz.

File metadata

  • Download URL: tgram-1.11.9.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

Hashes for tgram-1.11.9.tar.gz
Algorithm Hash digest
SHA256 7c352faf54ba0f93c2280b58212e79799eca25acb098c507881b1f382b4b567c
MD5 0526ae3e57785494ef4c6c8791d81a24
BLAKE2b-256 d8edb595f6c01acdb07d5bfe8384235cca27aa692137d283a88bcb350cb5bdcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for tgram-1.11.9.tar.gz:

Publisher: release.yml on z44d/tgram

Attestations:

File details

Details for the file tgram-1.11.9-py3-none-any.whl.

File metadata

  • Download URL: tgram-1.11.9-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

Hashes for tgram-1.11.9-py3-none-any.whl
Algorithm Hash digest
SHA256 84370373640cc4e0aa893d5ec91192176f27d9edc4fe8b39ca18aad605393c38
MD5 dfc389f7b0720d403b7a581adbd63abd
BLAKE2b-256 a9f3a113a3ebbbcc4e054f343070965ab1b277af22dcbb1796e109cf72add300

See more details on using hashes here.

Provenance

The following attestation bundles were made for tgram-1.11.9-py3-none-any.whl:

Publisher: release.yml on z44d/tgram

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page