This commit is contained in:
Rykov7
2023-01-23 18:46:24 +03:00
parent 32b63b3510
commit f30d3e9a07
+1 -1
View File
@@ -78,7 +78,7 @@ def send_rules(message):
markup = types.InlineKeyboardMarkup()
markup.add(RULES, row_width=1)
args = message.text.split()
if len(args) > 1 and args[-1].isdigit():
if len(args) > 1 and args[-1].isdigit() and 0 < int(args[-1]):
send_or_reply(message, f'<b>Правило {args[-1]}</b>\n<i>{rules.get_rule(args[-1])}</i>', reply_markup=markup)
else:
send_or_reply(message, 'Почитай', reply_markup=markup)