telethon 如何获取 'alert' 消息?

telethon how to get 'alert' message?

我怎样才能收到 'alert' 消息?

我的代码:

@client.on(events.NewMessage(chats=group_to_enter))
async def handler(event):
    buttons = await event.get_buttons()
    for bline in buttons:
        for button in bline:
            print(button.button.text)
            await button.click()

但此代码无法获取群组中显示的警报消息唯一消息

结果从Message.click(或MessageButton.click)返回:

result = await button.click()
print(result)