I need to click the 1st inline button for which

I made this snippet :

await client.send_message(chat,"bbuy")
a = await client.get_messages(chat, from_user='username', limit=1)
await asyncio.sleep(2)
await a[1].click(0)

But it giving index out of range error can someone help?

2 ответов

16 просмотров

get_messages returns a Message object, not a TotalList if limit was specified as 1.

Похожие вопросы

Карта сайта