From b08c316d149a038604fdcdedf83bf41a1ed2073f Mon Sep 17 00:00:00 2001 From: Ian Andwati Date: Thu, 16 Feb 2023 18:35:22 +0300 Subject: [PATCH] test from_user parameter --- src/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot.py b/src/bot.py index b2e8b21..a0bc0fc 100644 --- a/src/bot.py +++ b/src/bot.py @@ -16,7 +16,7 @@ time.sleep(3) # configure the webhook for the bot bot.set_webhook( "https://{}.{}/{}".format( - os.getenv("PROJECT_NAME"),os.getenv("PLATFORM_DOMAIN") ,os.getenv("TELEGRAM_TOKEN") + os.getenv("PROJECT_NAME"),os.get_env("PLATFORM_DOMAIN") ,os.getenv("TELEGRAM_TOKEN") ) ) @@ -26,7 +26,7 @@ def send_welcome(message): """ handle triggered by the /start command """ - bot.reply_to(message, "hi there") + bot.reply_to(message, f"hi there {message.from_user}") @bot.message_handler(commands=["random"])