如何获取电报频道中帖子的评论?

问题描述 投票:0回答:1

我尝试使用 get_discussion_message。 .id 已正确确定。但 .text 和 .author 属于帖子本身。

ch = -...

app = Client(
    "my_account",
    api_id=...,
    api_hash="..."
)

async def main():
    await app.start()

    async for message in app.get_chat_history(ch):
        try:
            msg = await app.get_discussion_message(ch, message.id)
            print(msg)
        except:
            None
    await app.stop()


app.run(main())
python python-3.x telegram pyrogram telegram-api
1个回答
0
投票

如果我理解正确的话,您实际上想要检索的是对一条消息的回复,在频道中,它被称为“评论”。既然已经被问过,我将提供原始问题的链接。

[帖子]

© www.soinside.com 2019 - 2024. All rights reserved.