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
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())
More Examples will be published soon
Project details
Release history Release notifications | RSS feed
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.1a8.tar.gz
(35.9 kB
view details)
File details
Details for the file TGramBot-0.0.1a8.tar.gz
.
File metadata
- Download URL: TGramBot-0.0.1a8.tar.gz
- Upload date:
- Size: 35.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a361be4ea56b4275eeb0320a4274b7559b8e01d64ebe79989fb36fc68a8ee39 |
|
MD5 | 20e85653764756f1665a8672a77549d3 |
|
BLAKE2b-256 | 35ddefd34802e3f44d30e80104d69d837149703c22984c89da0c895097c0bfd2 |