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/2ei/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.7.tar.gz (159.2 kB view details)

Uploaded Source

Built Distribution

tgram-1.10.7-py3-none-any.whl (388.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tgram-1.10.7.tar.gz
Algorithm Hash digest
SHA256 fa1c22acec8208c95610848111ac53fc37898acd78120e40aaff88e28845c307
MD5 912744e8ad1a67b5c894d81b9ab36aaa
BLAKE2b-256 6c2097e6c31fd088c189cfe00836cbbe580ab95741e8a7f8d440853a98a1f33d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tgram-1.10.7-py3-none-any.whl
Algorithm Hash digest
SHA256 440b0be9700940459ad565f908a6d1155ada8b1e2dcb8fd59ad4ebed070a54ca
MD5 2dfa0d9c35189b0d14ac75676892fee5
BLAKE2b-256 8112683ebdafa14649226139c9d4b83cf0b14d6358e391cf2f301f8049debb0b

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