Basic, easily extendable, Telegram bot class
Project description
A very minimal class that implements the basic Telegram bot functionalities. Can (should) be extended depending on needs.
Quickstart
import asyncio
loop = asyncio.get_event_loop()
bot = Bot('token')
loop.run_until_complete(asyncio.wait([
loop.create_task(bot.start())
# other tasks
]))
loop.run_forever()
To set the webhook you can use the set_webhook_url method.
Resources
TODO: documentation, testing, support sticker, inline mode, passport, payments, games, thumbnail for files, better quickstart example
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
ubot-3.3.2.tar.gz
(8.6 kB
view hashes)
Built Distribution
ubot-3.3.2-py3-none-any.whl
(15.2 kB
view hashes)