From cb5bcb9be82d2204d8f2570fd581a38644d98f23 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 16 Nov 2024 10:31:16 +0000 Subject: [PATCH] Update content of files --- .../web/corefork.telegram.org/api/config.html | 3 +- .../corefork.telegram.org/api/invites.html | 2 +- .../web/corefork.telegram.org/api/layers.html | 2 +- .../constructor/payments.starsStatus.html | 4 +- .../constructor/starsSubscription.html | 4 +- .../payments.getStarsSubscriptions.html | 8 +- data/web/corefork.telegram.org/methods.html | 2 +- .../mtproto/samples-auth_key.html | 406 +++++++++--------- .../type/payments.StarsStatus.html | 2 +- 9 files changed, 216 insertions(+), 217 deletions(-) diff --git a/data/web/corefork.telegram.org/api/config.html b/data/web/corefork.telegram.org/api/config.html index 95718eca3f..adb5f9740e 100644 --- a/data/web/corefork.telegram.org/api/config.html +++ b/data/web/corefork.telegram.org/api/config.html @@ -722,8 +722,7 @@ A full list of these parameters can be seen in the - Suggests the user to gift Telegram Premium subscriptions to friends for Christmas.
  • "PREMIUM_GRACE" - Suggests the user to extend their expiring Telegram Premium subscription
  • "BIRTHDAY_SETUP" - Suggests the user to set a birthday ».
  • -
  • "STARS_SUBSCRIPTION_LOW_BALANCE" - Suggests the user to extend their expiring Telegram Star subscriptions. -Invoke payments.getStarsSubscriptions with the missing_balance flag set to get the number of expiring subscriptions and the number of required to buy Telegram Stars
  • +
  • "STARS_SUBSCRIPTION_LOW_BALANCE" - When we get close to the end of the subscription period of one or more active subscriptions, and the current Telegram Star balance is not high enough to autorenew at least one of them, this suggestion will be activated: when the user clicks on the suggestion, the client should fetch and display the list of expiring subscriptions by invoking payments.getStarsSubscriptions, passing inputPeerSelf to peer and setting the missing_balance flag: the returned subscriptions may be renewed by filling up the current Telegram Star balance with at least payments.starsStatus.subscriptions_missing_balance stars.
  • diff --git a/data/web/corefork.telegram.org/api/invites.html b/data/web/corefork.telegram.org/api/invites.html index 52737e36fa..7984847c02 100644 --- a/data/web/corefork.telegram.org/api/invites.html +++ b/data/web/corefork.telegram.org/api/invites.html @@ -140,7 +140,7 @@ Currently the only allowed subscription period is 30*24*60*60, i.e.

    If the user decides to leave the channel without cancelling the subscription (or before the end of the current cancelled subscription period), subsequent calls to messages.checkChatInvite will return a chatInvite with the can_refulfill_subscription flag set, indicating that they may re-join the channel using payments.fulfillStarsSubscription (passing inputPeerSelf to peer and the starsSubscription.id to subscription_id) without repeating the payment; the subscription_pricing will also be returned, but no subscription_form_id will be returned.

    To obtain a list of all active and cancelled subscriptions invoke payments.getStarsSubscriptions, passing inputPeerSelf to peer: this will return a vector of starsSubscription constructors, containing info about each subscription.

    To cancel an active subscription, invoke payments.changeStarsSubscription passing inputPeerSelf to peer, the starsSubscription.id to subscription_id and boolTrue to canceled; to resubscribe, invoke the same method passing boolFalse to canceled.

    -

    When we get close to the end of the subscription period of an active subscription, the "STARS_SUBSCRIPTION_LOW_BALANCE" suggestion » will be activated: when the user clicks on the suggestion, the client should fetch and display the list of expiring subscriptions by invoking payments.getStarsSubscriptions, passing inputPeerSelf to peer and setting the missing_balance flag: the returned subscriptions may be renewed by following the payment flow described above, using the chat_invite_hashes from the returned starsSubscriptions.

    +

    When we get close to the end of the subscription period of one or more active subscriptions, and the current Telegram Star balance is not high enough to autorenew at least one of them, the "STARS_SUBSCRIPTION_LOW_BALANCE" suggestion » will be activated: when the user clicks on the suggestion, the client should fetch and display the list of expiring subscriptions by invoking payments.getStarsSubscriptions, passing inputPeerSelf to peer and setting the missing_balance flag: the returned subscriptions may be renewed by filling up the current Telegram Star balance with at least payments.starsStatus.subscriptions_missing_balance stars.

    Join requests

    channel#fe4478bd flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true join_to_send:flags.28?true join_request:flags.29?true forum:flags.30?true flags2:# stories_hidden:flags2.1?true stories_hidden_min:flags2.2?true stories_unavailable:flags2.3?true signature_profiles:flags2.12?true id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int restriction_reason:flags.9?Vector<RestrictionReason> admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int usernames:flags2.0?Vector<Username> stories_max_id:flags2.4?int color:flags2.7?PeerColor profile_color:flags2.8?PeerColor emoji_status:flags2.9?EmojiStatus level:flags2.10?int subscription_until_date:flags2.11?int = Chat;
     
    diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html
    index 5ac53484ed..9728b373ac 100644
    --- a/data/web/corefork.telegram.org/api/layers.html
    +++ b/data/web/corefork.telegram.org/api/layers.html
    @@ -244,7 +244,7 @@
     

    Schema changes

    New Methods
      -
    • Added payments.getStarsSubscriptions - Obtain a list of active, expiring or cancelled Telegram Star subscriptions ».
    • +
    • Added payments.getStarsSubscriptions - Obtain a list of active, expired or cancelled Telegram Star subscriptions ».
    • Added payments.changeStarsSubscription - Activate or deactivate a Telegram Star subscription ».
    • Added payments.fulfillStarsSubscription - Re-join a private channel associated to an active Telegram Star subscription ».
    • Added messages.sendPaidReaction -
    • diff --git a/data/web/corefork.telegram.org/constructor/payments.starsStatus.html b/data/web/corefork.telegram.org/constructor/payments.starsStatus.html index dfb41a4a5a..0c2c4bba95 100644 --- a/data/web/corefork.telegram.org/constructor/payments.starsStatus.html +++ b/data/web/corefork.telegram.org/constructor/payments.starsStatus.html @@ -89,7 +89,7 @@ subscriptions_missing_balance flags.4?long -The number of Telegram Stars the user should buy to be able to extend subscriptions expiring soon (i.e. the current balance is not enough to extend all expiring subscriptions). +The number of Telegram Stars the user should buy to be able to extend expired subscriptions soon (i.e. the current balance is not enough to extend all expired subscriptions). history @@ -120,7 +120,7 @@

      Fetch Telegram Stars transactions.

      The inbound and outbound flags are mutually exclusive: if none of the two are set, both incoming and outgoing transactions are fetched.

      payments.getStarsSubscriptions

      -

      Obtain a list of active, expiring or cancelled Telegram Star subscriptions ».

      +

      Obtain a list of active, expired or cancelled Telegram Star subscriptions ».

      Telegram Stars

      Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.

      diff --git a/data/web/corefork.telegram.org/constructor/starsSubscription.html b/data/web/corefork.telegram.org/constructor/starsSubscription.html index 0a51c16c86..6d44e1be65 100644 --- a/data/web/corefork.telegram.org/constructor/starsSubscription.html +++ b/data/web/corefork.telegram.org/constructor/starsSubscription.html @@ -84,7 +84,7 @@ missing_balance flags.2?true -  +Whether this subscription has expired because there are not enough stars on the user's balance to extend it. id @@ -109,7 +109,7 @@ chat_invite_hash flags.3?string -Invitation link, used to renew the subscription. +Invitation link, used to renew the subscription after cancellation or expiration. diff --git a/data/web/corefork.telegram.org/method/payments.getStarsSubscriptions.html b/data/web/corefork.telegram.org/method/payments.getStarsSubscriptions.html index 27b08e071d..e9b64c1263 100644 --- a/data/web/corefork.telegram.org/method/payments.getStarsSubscriptions.html +++ b/data/web/corefork.telegram.org/method/payments.getStarsSubscriptions.html @@ -4,10 +4,10 @@ payments.getStarsSubscriptions - + - + @@ -42,7 +42,7 @@

      payments.getStarsSubscriptions

      -

      Obtain a list of active, expiring or cancelled Telegram Star subscriptions ».

      +

      Obtain a list of active, expired or cancelled Telegram Star subscriptions ».