diff options
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -13,9 +13,15 @@ from telegram import Update from telegram.ext import ApplicationBuilder, CommandHandler, ContextTypes from dotenv import load_dotenv import os +import logging load_dotenv() +logging.basicConfig( + level=logging.INFO, + format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' +) + async def hello(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: await update.message.reply_text(f'Hello {update.effective_user.first_name}') |