mirror of
https://gitlab.com/MisterBiggs/multi-bot-tutorial.git
synced 2025-06-16 07:06:51 +00:00
14 lines
294 B
Python
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()
|