1
0
mirror of https://gitlab.com/MisterBiggs/multi-bot-tutorial.git synced 2025-06-15 22:56:45 +00:00
Multi-Bot-Tutorial/telegram/telegramBot.py

14 lines
294 B
Python

from telegram.ext import Updater, CommandHandler
def hello(bot, update):
update.message.reply_text("Hello {}".format(update.message.from_user.first_name))
updater = Updater("TOKEN")
updater.dispatcher.add_handler(CommandHandler("hello", hello))
updater.start_polling()
updater.idle()