[英]Telegram Bot API C# How to get All Pinned Messages?
Telegram added the feature to pin more than one message. Telegram 添加了固定多条消息的功能。 I'm doing it like this:
我这样做是这样的:
var chat = botClient.GetChatAsync(chatid).Result;
pinnedmsgtxt = chat.PinnedMessage.Text;
pinnedmsg= chat.PinnedMessage;
but I can only get the last message that was pinned.但我只能得到最后一条被固定的消息。 Any way to get all of them?
有什么方法可以全部获取吗? Am I missing something?
我错过了什么吗? I'm using https://github.com/TelegramBots/telegram.bot
我正在使用https://github.com/TelegramBots/telegram.bot
Use messages.search
method with inputMessagesFilterPinned
filter.使用带有
inputMessagesFilterPinned
过滤器的messages.search
方法。
Please read more here:请在此处阅读更多内容:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.