Skip to main content

Very friendly BOT API library for python devs.

Project description

tgram
A very friendly BOT API library for python developers.
Channel Documentation Examples

tgram PyPI Downloads

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

Uploaded Source

Built Distribution

tgram-1.10.6-py3-none-any.whl (384.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgram-1.10.6.tar.gz
  • Upload date:
  • Size: 157.6 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.6.tar.gz
Algorithm Hash digest
SHA256 cdbb6e687ee3482881f3c575a40b36f73511bfb3d77d755f0de7c1cc6185a6ea
MD5 a31ec49357997a12beb97a3e625a0526
BLAKE2b-256 be0fa118e6e040b71de35bbe1e1a8a07e4d965cb32daec2a345a56f6902d8dc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tgram-1.10.6-py3-none-any.whl
  • Upload date:
  • Size: 384.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0b40c5927b0ceb80e5eb58fc390e1ab88dd93214896325799111905b39f7e58d
MD5 00e3cea167240cfa62abd9a5d31bd88b
BLAKE2b-256 f7dc33f4d3ecad602715d3b09f85b12d2eb73245ff96257eeaae859b4194ee75

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