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

Uploaded Source

Built Distribution

tgram-1.11.5-py3-none-any.whl (394.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgram-1.11.5.tar.gz
  • Upload date:
  • Size: 154.3 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.5.tar.gz
Algorithm Hash digest
SHA256 d7ec790c86126a6a4a86a5a62a7376e498042e08b312959a4f345d8e8ce16ba8
MD5 ac76275ed6839b3a7a3e32eef70cd19c
BLAKE2b-256 ff4a76c455bd848b58c873958ac033683e9db78a830cf36ecb0badf051b0f227

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgram-1.11.5-py3-none-any.whl
  • Upload date:
  • Size: 394.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9c4c0ebcf634b7177c80e08d0f786ade978bf4df5675342405eaac57c39d51ca
MD5 758da7453f9fab91d50c5fe6c285cc4d
BLAKE2b-256 adcd00a4f90d3189f71521481fc981340a84ac2cf3c1b38590a68f44eddefd0e

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