keyb = [[...(......,...)]] # this is working good
else:
keyb = [] # error here
try:
msg = await event.reply(res, parse_mode="HTML", buttons=keyb, link_preview=False)
except ......?:
Error:
The provided reply markup is invalid (caused by SendMessageRequest)
How to catch this error and send message without buttons
else: keyb = None
Обсуждают сегодня