From bac5ba9f3697f62ff7da24f121df474b25350549 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 4 Dec 2024 21:04:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B0=D1=80=D0=BA=D0=94=D0=90?= =?UTF-8?q?=D0=A3=D0=9D=D0=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tg.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tg.py b/tg.py index 7cfc93a..b6054c2 100644 --- a/tg.py +++ b/tg.py @@ -289,11 +289,13 @@ def gen_token_tg(message): @bot.message_handler(commands=['chat_id']) def chat_id(message): - bot.reply_to(message, f'chat_id: `{message.chat.id}`', parse_mode='Markdown') + print(message.chat.id) + print(f'chat_id: `{message.chat.id}`') + bot.reply_to(message, f'chat\_id: `{message.chat.id}`', parse_mode='Markdown') @bot.message_handler(commands=['user_id']) def user_id(message): - bot.reply_to(message, f'user_id: `{message.from_user.id}`', parse_mode='Markdown') + bot.reply_to(message, f'user\_id: `{message.from_user.id}`', parse_mode='Markdown') @bot.message_handler(func=lambda message: True)