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)