python-telegram-bot

We have made you a wrapper you can't refuse

Star Fork



It's fun

from telegram import Update
from telegram.ext import Updater, CommandHandler, CallbackContext


def hello(update: Update, context: CallbackContext) -> None:
    update.message.reply_text(f'Hello {update.effective_user.first_name}')


updater = Updater('YOUR TOKEN HERE')

updater.dispatcher.add_handler(CommandHandler('hello', hello))

updater.start_polling()
updater.idle()

Easy to setup

$ pip install python-telegram-bot
$ python bot.py

And it is free

python-telegram-bot is distributed under a LGPLv3 license.