d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
619 stars 43 forks source link

Add support for Telegram sponsored messages #49

Closed d99kris closed 2 years ago

d99kris commented 2 years ago

From https://core.telegram.org/api/sponsored-messages#sponsored-messages-in-third-party-apps

Telegram continues to grow worldwide, in part thanks to third-party apps using the Telegram API. To cover the increasing costs that come with this growth, Telegram added sponsored messages – a paid privacy-friendly way to promote bots and channels.

If their app allows its users to access content from Telegram channels, third-party developers using the Telegam API are required to support and properly display official sponsored messages in their apps by January 1, 2022.

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

d99kris commented 2 years ago

Conceptual design: