await result = builder.article('help', text='This Is Inline Query')
q.answer(result)
??
⎞ .·. ⎝
@bot.on(events.InlineQuery) async def myHelper(q): builder = q.builder result = builder.article('help', text='This Is Inline Query') await q.answer(result)
Unhandled exception on myHelper Traceback (most recent call last): File "C:\Users\stark\AppData\Roaming\Python\Python311\site-packages\telethon\client\updates.py", line 570, in _dispatch_update await callback(event) File "C:\Users\stark\Desktop\members adder\tele\plugins\help.py", line 10, in myHelper await q.answer(result) File "C:\Users\stark\AppData\Roaming\Python\Python311\site-packages\telethon\events\inlinequery.py", line 212, in answer futures = [self._as_future(x) for x in results] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'InputBotInlineResult' object is not iterable Error
await q.answer([result])
Ohh thanks
Обсуждают сегодня