from telegram import Update | |
from telegram.ext import ApplicationBuilder, CommandHandler, ContextTypes | |
async def hello(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: | |
await update.message.reply_text(f'Hello {update.effective_user.first_name}') | |
app = ApplicationBuilder().token("6164672135:AAGTUz-d1XnlNCxeIalvNODmB8sFQvTot1M").build() | |
app.add_handler(CommandHandler("start", hello)) | |
app.run_polling() |