1
歡呼大家! 我有一個電報頻道。我想在我的網站上自動生成窗口。 Widget通過電報從通道獲取最後的消息。 像一個推特部件。無法找到足夠的手冊,它如何通過電報從我的頻道獲取所有消息?
歡呼大家! 我有一個電報頻道。我想在我的網站上自動生成窗口。 Widget通過電報從通道獲取最後的消息。 像一個推特部件。無法找到足夠的手冊,它如何通過電報從我的頻道獲取所有消息?
您可以使用:
updates.getChannelDifference#bb32d7c0 channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;
它將返回的其中之一:
updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference;
updates.channelDifferenceTooLong#5e167646 flags:# final:flags.0?true pts:int timeout:flags.1?int top_message:int top_important_message:int read_inbox_max_id:int unread_count:int unread_important_count:int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;
updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector<Message> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;
在你的電報實施,問題updates.getChannelDifference
定期拉(和緩存)您的新頻道消息。
updates.channelDifferenceEmpty
返回到表示您已看到您的頻道上的最新消息。
然後,您可以流/推新郵件到你的網站面板/插件
嗨,我和你一起工作的義務,請與我聯繫: [email protected]或電報:@ Amingh777 我在等你,謝謝。 –
@AminGhaderi當然沒問題 –