Skip to main content

Modern solution for telegram bots development

Project description

Botify

Getting started

Install library via pip (Unavailable yet)

pip install botify

Create config folder in your project root directory with .yaml file (name doesn't matter)

name: botify # Whatever you want, but don't use '.' character.
token: <YOUR-BOT-API-TOKEN-HERE>
db_uri: sqlite:///data.db

And then use it like this:

from botify import botify

@botify.start()
async def start_handler(message):
    await botify.send(
        message.from_user.id, "Hello, {{ user.firstname }}. {% if user.id == 1 %}You are first!{% endif %}",
        buttons = [("Github", "#https://github.com/dmitriypaulov/botify")]
    )

botify.run()

See more in docs

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

botify-telegram-0.0.1.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

botify_telegram-0.0.1-py3-none-any.whl (20.2 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