for now, what I am doing is: (please forgive me for any indentation error as I'm asking this question from the phone)
@bot.on(events.InlineQuery())
async def show_ongoing(event):
global option_0, option_1
builder = event.builder
day_0 = builder.article(title='Important stuff', text=option_0)
day_1 = builder.article(title='important stuff', text=option_1)
await event.answer([day_0, day_1])
But I'm getting Error:
return ''.join(
TypeError: 'Message' object is not iterable
This means, probably I am doing some mistake or we can't directly pass a message object to inlineQuery
What do I want to accomplish?
I want to provide some messages (formatted messages) to my telegram bot and then these formatted messages should be shown whenever inlineQuery will fire, so is my reason to use the message object.
Anyone who can help, I really appreciate it.