Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ubot-4.0.0.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

ubot-4.0.0-py3-none-any.whl (17.9 kB view hashes)

Uploaded Python 3

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