From fc219833058c7b162da57f579d284723e4769489 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Fri, 16 Sep 2022 20:42:58 +0200 Subject: [PATCH] Fixed absence of "block" & "unblock" buttons --- poster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poster.py b/poster.py index fc47fc3..9ccdac9 100644 --- a/poster.py +++ b/poster.py @@ -315,8 +315,6 @@ if configGet("submit", "mode"): if msg.from_user.phone_number != None: caption += f" ({msg.from_user.phone_number})" - msg.copy(configGet("admin"), caption=caption, reply_markup=InlineKeyboardMarkup(buttons)) - if msg.from_user.id != configGet("admin"): buttons += [ [ @@ -330,6 +328,8 @@ if configGet("submit", "mode"): msg.reply_text(locale("sub_sent", "message", locale=user_locale), quote=True) subLimit(msg.from_user) + msg.copy(configGet("admin"), caption=caption, reply_markup=InlineKeyboardMarkup(buttons)) + else: msg.reply_text(locale("sub_cooldown", "message", locale=user_locale).format(str(configGet("timeout", "submission")))) except AttributeError: