This release is a pre-release and may not be stable for production use.
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", workers=50, parse_mode='MarkdownV2')
@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
Metadata
Release files for TGramBot 0.0.1b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| TGramBot-0.0.1b1.tar.gz | 36.9 kB | Without provenance | Details for TGramBot-0.0.1b1.tar.gz |
Release files / TGramBot-0.0.1b1.tar.gz
| Download URL | TGramBot-0.0.1b1.tar.gz |
|---|---|
| Size | 36.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2435c1f34f7badef2202f561c86c70883e14e8c4977bbfb31cfdae7f4cb1f7f
|
|
BLAKE2b-256 checksum How to use checksums |
a2a95bfd16c7c328c335164a04576c746c3b2258acb2c9562ab298a4b28c5444
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for TGramBot 0.0.1b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.