Telegram Bot

November 29, 2020 ยท View on GitHub

test deploy

I'm a bot! on Telegram! Contributors

Adding New Commands

To add a command, edit bot.py and add a function that returns a string:

import random

@bot.responds_to("hello")
def hello(context):
    """ returns a greeting """
    return random.sample(["Hola", "Hallo", "Hello", "Salut"])

That's it!

Deployment

This repository will automatically deploy to production if you push/merge to the master branch. To fix/modify the bot, submit a pull request.

Testing

pytest -vv