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

Uploaded Source

Built Distribution

tgram-1.11.0-py3-none-any.whl (394.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tgram-1.11.0.tar.gz
Algorithm Hash digest
SHA256 37c270c4911bcee30727a3aae6c26d4a0c6c2564d76bcfe4c313f176d373e0ee
MD5 af42b6a98c40ed2ca9d28b6fb8e0a64e
BLAKE2b-256 045978ba6bb328268c3241671a94ac2d70f9512ee50532fda5433e21b373832c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgram-1.11.0-py3-none-any.whl
  • Upload date:
  • Size: 394.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.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 636846264f755d546d7884c942f78cb640b3af6b555281e6b454afc743b05b0e
MD5 1566432eea690c7031c0804875146d8c
BLAKE2b-256 506a637063f3173020428d64f43607a9b2e91d412c1532b563825979e230744a

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