Skip to main content

Very friendly BOT API library for python devs.

Project description

tgram

tgram

Very friendly BOT API library for Python developers.
Channel Documentation Examples

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

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

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

Uploaded Source

Built Distribution

tgram-1.11.1-py3-none-any.whl (381.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgram-1.11.1.tar.gz
  • Upload date:
  • Size: 149.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for tgram-1.11.1.tar.gz
Algorithm Hash digest
SHA256 a9faaa4d429206665c9019ed0a9028b32f3182b125e0b14e4e538638615e0f01
MD5 d461bedf9b3d5a03a3dbbf6c7ada30ad
BLAKE2b-256 33fa507cde1262cd1b5724c2b98bb138cb34e87540c563274428234bc74acd20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgram-1.11.1-py3-none-any.whl
  • Upload date:
  • Size: 381.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for tgram-1.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d69aa9de975f7d51f11dc2571ec66adaed8e32754b475cd3a51ae4ac5807780
MD5 38930e3f971eb5f40ac9f9ae85c9b030
BLAKE2b-256 400807c9fb74d5aa99d7fc9dff0640393b662e4e1cbc5e53478573da8a655afa

See more details on using hashes here.

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