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

Uploaded Source

Built Distribution

tgram-1.10.8-py3-none-any.whl (391.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tgram-1.10.8.tar.gz
Algorithm Hash digest
SHA256 9d28663658d447afc3b0e97eeac55bd05477f9daccc506fc05ac584d8b7b7c77
MD5 9d7c1445674e12b58b9cce252483af55
BLAKE2b-256 9be7143f1d076146bf21016ac606c0be79a65622c235ad3b542735d482dbf580

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tgram-1.10.8-py3-none-any.whl
Algorithm Hash digest
SHA256 52bdb3fd9661488dbbbdc565c090648f89a152f7261692527fb158df05a182fb
MD5 4ae1431775258cdeb95f1847ec2c0c6e
BLAKE2b-256 213d897f731c0da6253d6ea0f4d82c6999eaf3043f1fa01605fa23f7fc103508

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