diff --git a/data/web/corefork.telegram.org/api/revenue.html b/data/web/corefork.telegram.org/api/revenue.html index 3864bd88aa..2b185b0bb6 100644 --- a/data/web/corefork.telegram.org/api/revenue.html +++ b/data/web/corefork.telegram.org/api/revenue.html @@ -93,7 +93,15 @@ stats.getBroadcastRevenueWithdrawalUrl#2a65ef73 channel:InputChannel password:InputCheckPasswordSRP = stats.BroadcastRevenueWithdrawalUrl;

To withdraw funds from a channel's ad revenue balance, invoke stats.getBroadcastRevenueWithdrawalUrl, passing the current account's 2FA password as an InputCheckPasswordSRP constructor, generated as specified here ».

Only the channel owner can invoke this method.

-

The method will return a unique URL to a Fragment page where the user will be able to specify and submit the address of the TON wallet where the funds will be sent.

+

The method will return a unique URL to a Fragment page where the user will be able to specify and submit the address of the TON wallet where the funds will be sent.

+

Disable ads on the channel

+
channelFull#bbab348d flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true restricted_sponsored:flags2.11?true can_view_revenue:flags2.12?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions reactions_limit:flags2.13?int stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet = ChatFull;
+
+---functions---
+
+channels.restrictSponsoredMessages#9ae91519 channel:InputChannel restricted:Bool = Updates;
+

After reaching at least the boost level specified in the channel_restrict_sponsored_level_min » config parameter, channel owners may disable ads on the channel for all users using channels.restrictSponsoredMessages.

+

If ads are disabled on the channel, the channelFull.restricted_sponsored flag will be set (owners only).

diff --git a/data/web/corefork.telegram.org/api/saved-messages.html b/data/web/corefork.telegram.org/api/saved-messages.html index a4fcb59eb9..b05d761d4e 100644 --- a/data/web/corefork.telegram.org/api/saved-messages.html +++ b/data/web/corefork.telegram.org/api/saved-messages.html @@ -130,7 +130,7 @@ if (message.peer_id == user_id) {

A set of methods can then be used to obtain this dialog list, pin/unpin dialogs inside of it, view and remove messages from saved dialogs: messages.getSavedDialogs, messages.getSavedHistory, messages.deleteSavedHistory, messages.getPinnedSavedDialogs, messages.toggleSavedDialogPin, messages.reorderPinnedSavedDialogs work just like their counterparts messages.getDialogs, messages.getHistory, messages.deleteHistory, messages.getPinnedDialogs, messages.toggleDialogPin, messages.reorderPinnedDialogs, with the sole difference that they affect the saved dialog list, instead of the main dialog list.

To search for messages within a saved dialog, use the usual messages.search, messages.getSearchCounters, messages.getSearchResultsCalendar, messages.getSearchResultsPositions methods with peer=inputPeerSelf and saved_peer_id=id of the saved dialog.

Tags

-

For even more organization, you can add multiple tags to your Saved Messages that let you quickly filter them in Search.

+

For even more organization, Premium users can add multiple tags to your Saved Messages that let you quickly filter them in Search.

messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true reactions_as_tags:flags.3?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;
 
 savedReactionTag#cb6ff828 flags:# reaction:Reaction title:flags.0?string count:int = SavedReactionTag;
@@ -159,7 +159,6 @@ If the reactions_as_tags flag is not set on a saved message with at
 
 

You may search for saved messages tagged with one or more reactions using the saved_reaction parameter of messages.search.

messages.getDefaultTagReactions can be used to fetch a default recommended list of tag reactions.

-

Premium users may use any reaction as a tag; non-Premium users may only use the reactions returned by messages.getDefaultTagReactions.

The user may also assign a name (max 12 UTF-8 chars) to a tag reaction using messages.updateSavedReactionTag; to remove the name, call the same method without setting the title flag.

messages.getSavedReactionTags can be used to fetch and locally cache the full list of reaction tag names assigned by the user; a peer may be optionally specified, to fetch only reaction tags used on messages of a specific saved message dialog.
Updating the name of a reaction tag will emit an updateSavedReactionTags update to all logged-in sessions except for the current one; this update should trigger a call to messages.getSavedReactionTags without setting the peer flag to refresh the locally cached list.