【发布时间】:2022-01-25 02:52:36
【问题描述】:
我正在尝试为我的机器人检索电报聊天中的所有固定消息。 从下面的代码
prev_message = bot.get_chat(chat_id).pinned_message.text
我能够检索最近固定的消息。有没有办法将所有固定消息作为一个数组获取? 我正在使用pytelegrambotapi 编写我的机器人。
【问题讨论】:
标签: python python-3.x telegram telegram-bot py-telegram-bot-api