Skip to main content

Very friendly BOT API library for Python developers.

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

Uploaded Source

Built Distribution

tgram-1.11.6-py3-none-any.whl (401.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tgram-1.11.6.tar.gz
Algorithm Hash digest
SHA256 9c672c3d76fc678efbc8862b62ec8546d4f11b73bd0841ed6d3ad29bf5941681
MD5 df9a820b0c4283ca5f7dd229e34726db
BLAKE2b-256 bc9866433033c57b4336ca20913f8b034a54dec6bb48d65e33325eb2537d9d43

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tgram-1.11.6-py3-none-any.whl
Algorithm Hash digest
SHA256 32385dbe15a7b4c40444f969b48ae259894f2e90ecb51539f6a5fe194b9242fa
MD5 7e9299bc1a7c218f4fee426c15c2275a
BLAKE2b-256 3ef858ebb09019e737a2b57c893b21b395106a44cbe4dbc36614a56a0d4ef874

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