Python 根据文档使用时,为什么方法get_pinted_message()会中断?
我想从聊天室(id==main\u id)获取每一条固定的Python 根据文档使用时,为什么方法get_pinted_message()会中断?,python,telethon,Python,Telethon,我想从聊天室(id==main\u id)获取每一条固定的消息: 但此方法始终返回一个错误: 我做错了什么?看起来像个bug,请在库的GitHub页面报告,我可以调查它,提供复制步骤和情况。看起来像个bug,请在库的GitHub页面报告它,我可以调查它,提供复制步骤和情况。 @client.on(events.ChatAction(chats=main_id)) async def normal_handler(event): if event.new_pin: pin
消息:
但此方法始终返回一个错误:
我做错了什么?看起来像个bug,请在库的GitHub页面报告,我可以调查它,提供复制步骤和情况。看起来像个bug,请在库的GitHub页面报告它,我可以调查它,提供复制步骤和情况。
@client.on(events.ChatAction(chats=main_id))
async def normal_handler(event):
if event.new_pin:
pin = await event.get_pinned_message()