From f61780d659644843515464526439e59013ea12da Mon Sep 17 00:00:00 2001 From: none Date: Fri, 2 Feb 2024 19:35:43 +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=20=D0=B1=D0=B0=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastreg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastreg.py b/fastreg.py index ec0f44a..7d8f57f 100644 --- a/fastreg.py +++ b/fastreg.py @@ -56,7 +56,7 @@ def accept(message): @bot.message_handler(commands=['d']) def deny(message): if message.chat.id == own_id: - id = message.text[3:] + id = message.text.split()[1] reason = ' '.join(message.text.split()[2:]) bot.send_message(id, f"Ваша заявка отклонена, причина: \n\n {reason}") bot.reply_to(message, f"Заявка {telebot.formatting.hcode( str(id) )} отклонена.", parse_mode="HTML") @@ -64,7 +64,7 @@ def deny(message): @bot.message_handler(func=lambda message: True) def echo_message(message): global own_id - bot.send_message(own_id, f"Пользователь: {telebot.util.user_link(message.from_user)} \nTG: {message.from_user.username} \nID: {telebot.formatting.hcode(str(message.chat.id))} \nНик: {message.text}", parse_mode="HTML") + bot.send_message(own_id, f"Пользователь: {telebot.util.user_link(message.from_user)} \nTG: @{message.from_user.username} \nID: {telebot.formatting.hcode(str(message.chat.id))} \n\nНик: {message.text}", parse_mode="HTML") bot.reply_to(message, "Ваши данные отправлены на модерацию.\nПодождите, пожалуйста.")