Make your own telegram bot easily.
Before starting, you need to create a bot and get a token for it. For details, see instructions here.
Below is the example code that responds 'pong' for '/ping' command.
from telegrambot import Bot
bot = Bot('your_bot_token')
@bot.command('/ping {name}')
def ping(ctx, name):
return "Hello, {}".format(name)
bot.start()
- Python 3.5 or greater
- Pipenv
pipenv install --dev
pipenv run lint
pipenv run test
pipenv run package