File size: 422 Bytes
75cb1f5 a6ff3ac 75cb1f5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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() |