From 4719641e92ae9c94c71f16bd205317224975597a Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 3 Aug 2024 15:37:49 +0000 Subject: [PATCH] Update content of files --- .../corefork.telegram.org/api/paid-media.html | 155 ++++++++++++++++++ data/web/fragment.com/css/auction.css | 10 +- 2 files changed, 156 insertions(+), 9 deletions(-) create mode 100644 data/web/corefork.telegram.org/api/paid-media.html diff --git a/data/web/corefork.telegram.org/api/paid-media.html b/data/web/corefork.telegram.org/api/paid-media.html new file mode 100644 index 0000000000..70992a4730 --- /dev/null +++ b/data/web/corefork.telegram.org/api/paid-media.html @@ -0,0 +1,155 @@ + + + + + Paid media + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Paid media

+ +
+ +

Content creators can accept Stars by publishing paid photos or videos on their channels. Subscribers will be allowed to view such posts only after paying the author to unlock them.

+

Creators can then withdraw Stars using the Toncoin cryptocurrency », or use them to advertise their channel and get even more subscribers – all of this with next to 0 commission from Telegram.

+

Posting paid media

+
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 paid_media_allowed:flags2.14?true can_view_stars_revenue:flags2.15?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;
+
+inputMediaPaidMedia#aa661fc3 stars_amount:long extended_media:Vector<InputMedia> = InputMedia;
+
+---functions---
+
+messages.sendMedia#7852834e flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates;
+

Channel administrators may forward or post paid media if the channelFull.paid_media_allowed flag is set.

+

To post paid media, use messages.sendMedia, passing an inputMediaPaidMedia constructor, containing:

+ +

Viewing paid media

+
messageExtendedMediaPreview#ad628cc8 flags:# w:flags.0?int h:flags.0?int thumb:flags.1?PhotoSize video_duration:flags.2?int = MessageExtendedMedia;
+messageExtendedMedia#ee479c64 media:MessageMedia = MessageExtendedMedia;
+
+messageMediaPaidMedia#a8852491 stars_amount:long extended_media:Vector<MessageExtendedMedia> = MessageMedia;
+
+updateMessageExtendedMedia#d5a41724 peer:Peer msg_id:int extended_media:Vector<MessageExtendedMedia> = Update;
+
+messageMediaInvoice#f6a548d3 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string extended_media:flags.4?MessageExtendedMedia = MessageMedia;
+
+starsTransaction#2db5418f flags:# refund:flags.3?true pending:flags.4?true failed:flags.6?true gift:flags.10?true id:string stars:long date:int peer:StarsTransactionPeer title:flags.0?string description:flags.1?string photo:flags.2?WebDocument transaction_date:flags.5?int transaction_url:flags.5?string bot_payload:flags.7?bytes msg_id:flags.8?int extended_media:flags.9?Vector<MessageMedia> = StarsTransaction;
+
+---functions---
+
+messages.getExtendedMedia#84f80814 peer:InputPeer id:Vector<int> = Updates;
+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/web/fragment.com/css/auction.css b/data/web/fragment.com/css/auction.css index 528cb14fc2..01a70f305e 100644 --- a/data/web/fragment.com/css/auction.css +++ b/data/web/fragment.com/css/auction.css @@ -587,8 +587,6 @@ i.icon { right: 0; top: 0; z-index: 100; - padding-left: env(safe-area-inset-left); - padding-right: env(safe-area-inset-right); background-color: var(--header-bg-color); -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); @@ -939,7 +937,6 @@ a.tm-pagination-item.active:focus { right: 0; top: 0; bottom: 0; - padding-bottom: env(safe-area-inset-bottom); background: var(--bg-color); transition: transform var(--def-transition); } @@ -1138,8 +1135,6 @@ a.tm-menu-link:focus { } .tm-footer { - padding-left: env(safe-area-inset-left); - padding-right: env(safe-area-inset-right); background-color: var(--footer-bg-color); } .tm-footer-links { @@ -1310,7 +1305,7 @@ a.tm-menu-link:focus { .tm-main { margin: 0 auto; - width: auto; + width: 100%; max-width: 480px; padding-bottom: 70px; flex-grow: 1; @@ -3821,9 +3816,6 @@ a.tm-table-action-link:hover { .tm-main { max-width: 720px; - box-sizing: content-box; - padding-left: env(safe-area-inset-left); - padding-right: env(safe-area-inset-right); } .tm-main-premium { max-width: 480px;