Closed d99kris closed 2 years ago
Conceptual design:
getChat
and store in a local map.SetCurrentChatRequest
for ui to notify tgchat when current chat changes.SetCurrentChatRequest
is called on a chatTypeSupergroup
which is_channel_
, tgchat shall call getChatSponsoredMessages
(ensure 5 mins interval between calls).viewSponsoredMessage
instead of regular markMessageReadRequest
.
From https://core.telegram.org/api/sponsored-messages#sponsored-messages-in-third-party-apps
This issue is for adding support for sponsored messages in
nchat
.For testing there is a channel with sponsored messages at https://t.me/SecretAdTestChannel
References: https://github.com/tdlib/td/issues/1753 https://github.com/tdlib/td/issues/1759