我正在使用 Telethon 编写 Telegram 客户端。我如何获得 channel 描述? get_entity
方法不提供 channel 说明。
最佳答案
from telethon.tl.functions.channels import GetFullChannelRequest
# creating client here
ch = client.get_entity("@mychannel")
ch_full = client(GetFullChannelRequest(channel=ch))
ch_full.full_chat.about # this is what you need
所以你可能想检查
full_chat
属性,因为它包含其余信息
关于python-3.x - 如何在 Telethon 中获取 Telegram 的 channel 描述?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48432287/