Skip to main content

Partially Auto-generated and asynchronous Minimal Telegram BOT API framework in Python for bots

Project description

TGramBot

TGramBot is a partially auto-generated and asynchronous Minimal Telegram Bot API framework in Python for bots

This library is inspired by a number of other libraries:

Special thanks to Paul Larsen for his libraries

This Library is still in its Alpha phase

Most of the methods and types using in this library are auto-generated by scraping the official documentation of Telegram Bot Api

So the chance of getting bugs and errors are high. So please let us know through the issue section about the bug you have encountered.

Installing..

pip3 install tgrambot

Example

import asyncio

from tgrambot import Bot
from tgrambot.filters import Filters
from tgrambot.types import Message


bot = Bot("token", **kwargs)

@bot.on_message(Filters.command('start'))
async def start_bot(c: Bot, m: Message):
    await c.send_message(m.chat.id, "Hola Amigo!")

async def main():
    await bot.run()

if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

Examples

More examples are published in the example directory

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

TGramBot-0.0.1a9.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

TGramBot-0.0.1a9-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

Details for the file TGramBot-0.0.1a9.tar.gz.

File metadata

  • Download URL: TGramBot-0.0.1a9.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for TGramBot-0.0.1a9.tar.gz
Algorithm Hash digest
SHA256 7e1b7b4d81d49539affff01afe93a4cf59ad06d1065949c3648a092874576ab5
MD5 cbeaca4fece6fa65f4e7310c3b86b624
BLAKE2b-256 d3d438847ffaa66c1486c69615f579b0722731b40b5919da34e0c5ddd734ba4a

See more details on using hashes here.

File details

Details for the file TGramBot-0.0.1a9-py3-none-any.whl.

File metadata

  • Download URL: TGramBot-0.0.1a9-py3-none-any.whl
  • Upload date:
  • Size: 45.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for TGramBot-0.0.1a9-py3-none-any.whl
Algorithm Hash digest
SHA256 fe14ef9fbfa62411229c359d2cad7326a8b6d6881acac4ba7164b25f2179b707
MD5 85bde95481c43a6882bde2baa28c669e
BLAKE2b-256 337721821fed0713eec7786e09b48d52401f673236ebfabf37b9978fa41b012a

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