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}')
def main() -> None: # Replace 'TOKEN' with your Bot's API token. updater = Updater("TOKEN")
updater.dispatcher.add_handler(CommandHandler('hello', hello))
updater.start_polling()
updater.idle()
if name == 'main': main()