Fixed absence of "block" & "unblock" buttons

This commit is contained in:
Profitroll 2022-09-16 20:42:58 +02:00
parent 58c5429e5c
commit fc21983305
1 changed files with 2 additions and 2 deletions

View File

@ -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: