Open TurnrDev opened 4 years ago
After thurther investgation, the issue only seems to happen when message has been declared on the init for MenuPages.
Unfortunately this one is a bit rough to fix. Per the implementation as it stands, send_initial_message
isn't called if a message is already supplied. For Menu
that works okay but for MenuPages
that means that it's never called and thus the page isn't shown.
I've added a note in README about this exact issue (PR #17) - It's not a bug fix but it's better than nothing :)
This is my code:
I followed the code example in README.md for
AsyncIteratorPageSource
and it says to simply call the Menu Pages object and theawait menu.start(ctx)
but any time I did that I had an empty response. Seems I needed to callawait menu.show_page(0)
first