From fcc00d44727c858f4f921df81b0a270483de8959 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 9 Dec 2023 18:32:18 +0000 Subject: [PATCH] Update content of files --- .../web/corefork.telegram.org/api/colors.html | 118 ++++++++++++++++++ .../web/corefork.telegram.org/api/config.html | 43 ++++++- .../corefork.telegram.org/api/premium.html | 6 + .../corefork.telegram.org/api/wallpapers.html | 27 ++-- .../constructor/userFull.html | 2 +- .../method/messages.setChatWallPaper.html | 4 +- data/web/fragment.com/js/auction.js | 8 +- 7 files changed, 190 insertions(+), 18 deletions(-) create mode 100644 data/web/corefork.telegram.org/api/colors.html diff --git a/data/web/corefork.telegram.org/api/colors.html b/data/web/corefork.telegram.org/api/colors.html new file mode 100644 index 0000000000..534b24527f --- /dev/null +++ b/data/web/corefork.telegram.org/api/colors.html @@ -0,0 +1,118 @@ + + + + + Page not found + + + + + + + + + + + + + + + + +
+ +
+
+
+ +

Page not found

+ +
The page has not been saved
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/web/corefork.telegram.org/api/config.html b/data/web/corefork.telegram.org/api/config.html index 6c27766492..07145fcb46 100644 --- a/data/web/corefork.telegram.org/api/config.html +++ b/data/web/corefork.telegram.org/api/config.html @@ -186,7 +186,8 @@ While help.getConfig returns MTProto-specif "AUTOARCHIVE_POPULAR", "VALIDATE_PASSWORD", "VALIDATE_PHONE_NUMBER", - "NEWCOMER_TICKS" + "NEWCOMER_TICKS", + "SETUP_PASSWORD" ], "autologin_domains": [ "instantview.telegram.org", @@ -219,7 +220,7 @@ While help.getConfig returns MTProto-specif "stickers_faved_limit_default": 5, "stickers_faved_limit_premium": 10, "dialog_filters_limit_default": 10, - "dialog_filters_limit_premium": 20, + "dialog_filters_limit_premium": 30, "dialog_filters_chats_limit_default": 100, "dialog_filters_chats_limit_premium": 200, "dialogs_pinned_limit_default": 5, @@ -242,13 +243,15 @@ While help.getConfig returns MTProto-specif "reactions_in_chat_max": 100, "default_emoji_statuses_stickerset_id": "773947703670341676", "premium_promo_order": [ + "peer_colors", + "wallpapers", "stories", + "more_upload", "double_limits", "voice_to_text", "faster_download", "translations", "animated_emoji", - "more_upload", "emoji_status", "profile_badge", "advanced_chat_management", @@ -292,7 +295,7 @@ While help.getConfig returns MTProto-specif "stories_posting": "enabled", "stories_stealth_past_period": 300, "stories_stealth_future_period": 1500, - "stories_stealth_cooldown_period": 3600, + "stories_stealth_cooldown_period": 10800, "stories_sent_weekly_limit_default": 7, "stories_sent_weekly_limit_premium": 700, "stories_sent_monthly_limit_default": 30, @@ -304,7 +307,20 @@ While help.getConfig returns MTProto-specif "stories_changelog_user_id": 777000, "authorization_autoconfirm_period": 604800, "stories_suggested_reactions_limit_default": 1, - "stories_suggested_reactions_limit_premium": 5 + "stories_suggested_reactions_limit_premium": 5, + "giveaway_gifts_purchase_available": true, + "giveaway_add_peers_max": 10, + "giveaway_countries_max": 10, + "giveaway_boosts_per_premium": 4, + "giveaway_period_max": 604800, + "boosts_channel_level_max": 100, + "boosts_per_sent_gift": 3, + "quote_length_max": 1024, + "channel_color_level_min": 5, + "transcribe_audio_trial_weekly_number": 2, + "transcribe_audio_trial_duration_max": 300, + "recommended_channels_limit_default": 10, + "recommended_channels_limit_premium": 100 }

Typical fields included in the resulting JSON object are:

emojies_animated_zoom

@@ -501,6 +517,19 @@ Note that the stickerset can be fetched using stories_entities

Whether styled text entities and links in story text captions can be used by all users (enabled), only [Premium](/api/premium users) (premium), or no one (disabled). (string)

This field is used both when posting stories, to indicate to the user whether they can use entities, and when viewing stories, to hide entities (client-side) on stories posted by users whose Premium subscription has expired (if stories_entities == "premium" and user.premium is not set, or if stories_entities == "disabled").

+

giveaway_gifts_purchase_available

+

giveaway_add_peers_max

+

giveaway_countries_max

+

giveaway_boosts_per_premium

+

giveaway_period_max

+

boosts_channel_level_max

+

boosts_per_sent_gift

+

quote_length_max

+

channel_color_level_min

+

transcribe_audio_trial_weekly_number

+

transcribe_audio_trial_duration_max

+

recommended_channels_limit_default

+

recommended_channels_limit_premium

Suggestions

The API can return a set of useful suggestions for users of graphical clients.

Basic suggestions

@@ -525,6 +554,10 @@ A full list of these parameters can be seen in the - Users should make sure they still remember their 2-step verification password.
  • "VALIDATE_PHONE_NUMBER" - Users should check whether their authorization phone number is correct and change the phone number if it is inaccessible.
  • "NEWCOMER_TICKS" - Show the user a hint about the meaning of one and two ticks on sent messages.
  • +
  • "SETUP_PASSWORD" - Show the user a hint, asking them to check whether they still remember their 2FA password
  • +
  • "PREMIUM_ANNUAL" - Suggests the user to subscribe to the Premium subscription (with annual payments)
  • +
  • "PREMIUM_UPGRADE" - Suggests the user to upgrade their existing Premium subscription from monthly payments to annual payments
  • +
  • "PREMIUM_RESTORE" - Suggests the user to restore a recently expired Premium subscription
  • diff --git a/data/web/corefork.telegram.org/api/premium.html b/data/web/corefork.telegram.org/api/premium.html index e8f5b3c7dd..f2333005e2 100644 --- a/data/web/corefork.telegram.org/api/premium.html +++ b/data/web/corefork.telegram.org/api/premium.html @@ -100,6 +100,12 @@ Clicking on this button in the settings, clicking on the badge<

    faster_download - Premium users have no download speed limits.

  • +

    wallpapers - Premium users can set custom chat wallpapers both for them and the other user in the chat.

    +
  • +
  • +

    peer_colors - Premium users can choose a custom color and background emoji for their profile background and messages.

    +
  • +
  • voice_to_text - Premium users can transcribe voice messages.

  • diff --git a/data/web/corefork.telegram.org/api/wallpapers.html b/data/web/corefork.telegram.org/api/wallpapers.html index 2d0fc69fdb..9f0044b4ce 100644 --- a/data/web/corefork.telegram.org/api/wallpapers.html +++ b/data/web/corefork.telegram.org/api/wallpapers.html @@ -123,9 +123,6 @@ If set, rotation indicates clockwise rotation angle of the gradient account.wallPapersNotModified#1c199183 = account.WallPapers; account.wallPapers#cdc3858c hash:long wallpapers:Vector<WallPaper> = account.WallPapers; -messageActionSetChatWallPaper#5060a3f4 flags:# same:flags.0?true for_both:flags.1?true wallpaper:WallPaper = MessageAction; -messageActionSetSameChatWallPaper#c0787d6d wallpaper:WallPaper = MessageAction; - ---functions--- account.getWallPaper#fc8ddbea wallpaper:InputWallPaper = WallPaper; @@ -134,9 +131,7 @@ If set, rotation indicates clockwise rotation angle of the gradient account.saveWallPaper#6c5a5b37 wallpaper:InputWallPaper unsave:Bool settings:WallPaperSettings = Bool; account.installWallPaper#feed5769 wallpaper:InputWallPaper settings:WallPaperSettings = Bool; account.getWallPapers#7967d36 hash:long = account.WallPapers; -account.resetWallPapers#bb3b9804 = Bool; - -messages.setChatWallPaper#8ffacae1 flags:# for_both:flags.3?true revert:flags.4?true peer:InputPeer wallpaper:flags.0?InputWallPaper settings:flags.2?WallPaperSettings id:flags.1?int = Updates; +account.resetWallPapers#bb3b9804 = Bool;

    Once you've uploaded your wallpaper or received a wallpaper deep link, it can be installed as follows.

    Note that fill wallpapers cannot be globally installed using account.installWallPaper or account.saveWallPaper, clients should install and keep track of them only locally, without synchronizing the wallpaper list or signaling installations.

    The API keeps a list of wallpapers that the user can set as chat background, including some preinstalled ones.
    @@ -150,10 +145,26 @@ Note that calling this method will also automatically save the wallpaper, if it'

    +

    Installing wallpapers in a specific chat

    +
    messageActionSetChatWallPaper#5060a3f4 flags:# same:flags.0?true for_both:flags.1?true wallpaper:WallPaper = MessageAction;
    +messageActionSetSameChatWallPaper#c0787d6d wallpaper:WallPaper = MessageAction;
    +
    +---functions---
    +
    +messages.setChatWallPaper#8ffacae1 flags:# for_both:flags.3?true revert:flags.4?true peer:InputPeer wallpaper:flags.0?InputWallPaper settings:flags.2?WallPaperSettings id:flags.1?int = Updates;
    +

    Wallpapers can also be installed in a specific private chat, by using messages.setChatWallPaper: this will emit a messageActionSetChatWallPaper service message, displaying the wallpaper in the UI along with an invitation for the other user to apply the same wallpaper.

    +

    To wallpaper, pass an:

    + -

    Wallpapers can also be installed in a specific chat, by using messages.setChatWallPaper: this will emit a messageActionSetChatWallPaper service message, displaying the wallpaper in the UI along with an invitation for the other user to apply the same wallpaper.

    If the other user decides to apply the same wallpaper to the chat, messages.setChatWallPaper should be invoked passing the wallpaper settings received in the messageActionSetChatWallPaper service message (or some different settings, if the user customized them before applying the wallpaper), along with the id of the messageActionSetChatWallPaper service message, without the wallpaper: this way, the action will emit a different messageActionSetSameChatWallPaper, which should be displayed in the UI as a simple acknowledgment service message, without the full wallpaper and without an invitation for the other user to apply it (since both participants already just did that).

    +

    However, if we have Premium subscription, we can change the other user's wallpaper without explicit confirmation from the other side: to do so, set the for_both flag when invoking messages.setChatWallPaper.
    +This will change the wallpaper for both sides of the chat, without requiring confirmation; the userFull.wallpaper_overridden flag will also be set for the other user.
    +If the other user does not like the new wallpaper we have chosen for them, they can re-set their previous wallpaper just on their side, by invoking messages.setChatWallPaper, providing only the revert flag (and obviously the peer parameter).

    Note that in order to pass image or pattern wallpapers to messages.setChatWallPaper, the for_chat flag must be set when uploading them with account.uploadWallPaper.

    Also note that unlike account.installWallPaper or account.saveWallPaper, messages.setChatWallPaper accepts fill wallpapers as well.

    diff --git a/data/web/corefork.telegram.org/constructor/userFull.html b/data/web/corefork.telegram.org/constructor/userFull.html index a1e71e1330..514545593e 100644 --- a/data/web/corefork.telegram.org/constructor/userFull.html +++ b/data/web/corefork.telegram.org/constructor/userFull.html @@ -124,7 +124,7 @@ wallpaper_overridden flags.28?true -  +Whether the other user has chosen a custom wallpaper for us using messages.setChatWallPaper and the for_both flag, see here » for more info. id diff --git a/data/web/corefork.telegram.org/method/messages.setChatWallPaper.html b/data/web/corefork.telegram.org/method/messages.setChatWallPaper.html index 7fece71aa9..0535518607 100644 --- a/data/web/corefork.telegram.org/method/messages.setChatWallPaper.html +++ b/data/web/corefork.telegram.org/method/messages.setChatWallPaper.html @@ -82,12 +82,12 @@ for_both flags.3?true -  +Only for Premium users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user. revert flags.4?true -  +If we don't like the new wallpaper the other user of the chat has chosen for us using the for_both flag, we can re-set our previous wallpaper just on our side using this flag. peer diff --git a/data/web/fragment.com/js/auction.js b/data/web/fragment.com/js/auction.js index a5cb43cd86..0fdf6e5dfc 100644 --- a/data/web/fragment.com/js/auction.js +++ b/data/web/fragment.com/js/auction.js @@ -1048,7 +1048,9 @@ var Assets = { username: username, auction: true }, function(result) { - if (result.confirm_message) { + if (result.error) { + return showAlert(result.error); + } else if (result.confirm_message) { showConfirm(result.confirm_message, function() { doPutToAuction(); }, result.confirm_button); @@ -1148,7 +1150,9 @@ var Assets = { username: username, auction: false }, function(result) { - if (result.confirm_message) { + if (result.error) { + return showAlert(result.error); + } else if (result.confirm_message) { showConfirm(result.confirm_message, function() { doSellUsername(); }, result.confirm_button);