Установка $ pip install python-telegram-bot Code $ pip install python-telegram-bot Использование from telegram.ext import Updater, CommandHandler def hello(bot, update): if update.message.text == 'текст, на который бот должен реагировать': #тут твой скрипт updater = Updater('сюда токен бота') updater.dispatcher.add_handler(CommandHandler('hello', hello)) updater.start_polling() updater.idle() Code from telegram.ext import Updater, CommandHandler def hello(bot, update): if update.message.text == 'текст, на который бот должен реагировать': #тут твой скрипт updater = Updater('сюда токен бота') updater.dispatcher.add_handler(CommandHandler('hello', hello)) updater.start_polling() updater.idle()