Is it available to wait inline button push or text message simultaneously in Telethon conversation?
async with bot.conversation(chat_id) as conv:
buttons = [[Button.inline('Yes'), Button.inline('No')]]
conv.send_message('To be or not no be? Answer yes|no, or write your own opinion', buttons=buttons)
#This way we can wait for button press
def press_event(user_id):
return events.CallbackQuery(func=lambda e: e.sender_id == user_id)
press = await conv.wait_event(press_event(sender_id))
#...and this way we can wait for text message
response = await conv.get_response()
#And how can we wait for press event OR text message simultaneously?