diff --git a/data/web/corefork.telegram.org/api/config.html b/data/web/corefork.telegram.org/api/config.html index 0b5d917165..13c91ad1f2 100644 --- a/data/web/corefork.telegram.org/api/config.html +++ b/data/web/corefork.telegram.org/api/config.html @@ -310,57 +310,57 @@ While help.getConfig returns MTProto-specif

message_animated_emoji_max

Maximum number of custom animated emojis that may be present in a message. (integer)

stickers_premium_by_emoji_num

-

Defines how many premium stickers to show in the sticker suggestion popup when entering an emoji into the text field, see the sticker docs for more info (integer, defaults to 0)

+

Defines how many Premium stickers to show in the sticker suggestion popup when entering an emoji into the text field, see the sticker docs for more info (integer, defaults to 0)

stickers_normal_by_emoji_per_premium_num

-

For Premium users, used to define the suggested sticker list, see the sticker docs for more info (integer, defaults to 2)

+

For Premium users, used to define the suggested sticker list, see the sticker docs for more info (integer, defaults to 2)

premium_purchase_blocked

-

The user can't purchase premium. The app must also hide all Premium features, including stars for other users, et cetera. (boolean)

+

The user can't purchase Telegram Premium. The app must also hide all Premium features, including stars for other users, et cetera. (boolean)

channels_limit_default

-

The maximum number of channels and supergroups a non-Premium user may join (integer)

+

The maximum number of channels and supergroups a non-Premium user may join (integer)

channels_limit_premium

-

The maximum number of channels and supergroups a Premium user may join (integer)

+

The maximum number of channels and supergroups a Premium user may join (integer)

saved_gifs_limit_default

-

The maximum number of GIFs a non-Premium user may save (integer)

+

The maximum number of GIFs a non-Premium user may save (integer)

saved_gifs_limit_premium

-

The maximum number of GIFs a Premium user may save (integer)

+

The maximum number of GIFs a Premium user may save (integer)

stickers_faved_limit_default

-

The maximum number of stickers a non-Premium user may add to Favorites » (integer)

+

The maximum number of stickers a non-Premium user may add to Favorites » (integer)

stickers_faved_limit_premium

-

The maximum number of stickers a Premium user may add to Favorites » (integer)

+

The maximum number of stickers a Premium user may add to Favorites » (integer)

dialog_filters_limit_default

-

The maximum number of folders a non-Premium user may create (integer)

+

The maximum number of folders a non-Premium user may create (integer)

dialog_filters_limit_premium

-

The maximum number of folders a Premium user may create (integer)

+

The maximum number of folders a Premium user may create (integer)

dialog_filters_chats_limit_default

-

The maximum number of chats a non-Premium user may add to a folder (integer)

+

The maximum number of chats a non-Premium user may add to a folder (integer)

dialog_filters_chats_limit_premium

-

The maximum number of chats a Premium user may add to a folder (integer)

+

The maximum number of chats a Premium user may add to a folder (integer)

dialogs_pinned_limit_default

-

The maximum number of chats a non-Premium user may pin (integer)

+

The maximum number of chats a non-Premium user may pin (integer)

dialogs_pinned_limit_premium

-

The maximum number of chats a Premium user may pin (integer)

+

The maximum number of chats a Premium user may pin (integer)

dialogs_folder_pinned_limit_default

-

The maximum number of chats a non-Premium user may pin in a folder (integer)

+

The maximum number of chats a non-Premium user may pin in a folder (integer)

dialogs_folder_pinned_limit_premium

-

The maximum number of chats a Premium user may pin in a folder (integer)

+

The maximum number of chats a Premium user may pin in a folder (integer)

channels_public_limit_default

-

The maximum number of public channels or supergroups a non-Premium user may create (integer)

+

The maximum number of public channels or supergroups a non-Premium user may create (integer)

channels_public_limit_premium

-

The maximum number of public channels or supergroups a Premium user may create (integer)

+

The maximum number of public channels or supergroups a Premium user may create (integer)

caption_length_limit_default

-

The maximum UTF-8 length of media captions sendable by non-Premium users (integer)

+

The maximum UTF-8 length of media captions sendable by non-Premium users (integer)

caption_length_limit_premium

-

The maximum UTF-8 length of media captions sendable by non-Premium users (integer)

+

The maximum UTF-8 length of media captions sendable by non-Premium users (integer)

upload_max_fileparts_default

-

The maximum size of files uploadable by non-Premium users (integer, indicates the number of 512kb file parts, so the size in bytes is determined by multiplying by 524288)

+

The maximum size of files uploadable by non-Premium users (integer, indicates the number of 512kb file parts, so the size in bytes is determined by multiplying by 524288)

upload_max_fileparts_premium

-

The maximum size of files uploadable by Premium users (integer, indicates the number of 512kb file parts, so the size in bytes is determined by multiplying by 524288)

+

The maximum size of files uploadable by Premium users (integer, indicates the number of 512kb file parts, so the size in bytes is determined by multiplying by 524288)

about_length_limit_default

-

The maximum UTF-8 length of bios of non-Premium users (integer)

+

The maximum UTF-8 length of bios of non-Premium users (integer)

about_length_limit_premium

-

The maximum UTF-8 length of bios of Premium users (integer)

+

The maximum UTF-8 length of bios of Premium users (integer)

premium_promo_order

-

Array of string identifiers, indicating the order of Telegram Premium features in the Telegram Premimum promotion popup, possible values:

+

Array of string identifiers, indicating the order of Telegram Premium features in the Telegram Premimum promotion popup, possible values:

premium_bot_username

-

Contains the username of the official Telegram Premium bot that may be used to buy a Telegram Premium subscription (string)

+

Contains the username of the official Telegram Premium bot that may be used to buy a Telegram Premium subscription, see here for detailed instructions » (string)

premium_invoice_slug

-

Contains an invoice slug that may be used to buy a Telegram Premium subscription (string)

+

Contains an invoice slug that may be used to buy a Telegram Premium subscription, see here for detailed instructions » (string)

Suggestions

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

Basic suggestions

diff --git a/data/web/corefork.telegram.org/api/dice.html b/data/web/corefork.telegram.org/api/dice.html index 08e011ea9d..1946f01bff 100644 --- a/data/web/corefork.telegram.org/api/dice.html +++ b/data/web/corefork.telegram.org/api/dice.html @@ -59,7 +59,7 @@ This is implemented by using the dice constructors:

help.getAppConfig#98914110 = JSONValue;

On startup, clients should fetch app configuration using help.getAppConfig.
-Then, for each dice emoji contained in the emojies_send_dice field, clients should fetch the dice emoji stickerset by calling the messages.getStickerSet method, providing the properly populated inputStickerSetDice to the stickerset field.
+Then, for each dice emoji contained in the emojies_send_dice field, clients should fetch the dice emoji stickerset by calling the messages.getStickerSet method, providing the properly populated inputStickerSetDice to the stickerset field.
The returned stickerset will contain a set of animated stickers, one for each of the dice outcomes, plus a first looping sticker that should be shown as preview to the user before actually sending the dice.

If a user attempts to send a single emoji from the ones specified in emojies_send_dice, the dice should be sent using messages.sendMedia, providing the dice emoji to the emoticon field.

Incoming dice stickers will be received as a messageMediaDice constructor, along with a randomly generated server-side value, ranging from 1 to the maximum allowed value for this type of dice.
diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html index fb4afc5b2f..26ac43f071 100644 --- a/data/web/corefork.telegram.org/api/layers.html +++ b/data/web/corefork.telegram.org/api/layers.html @@ -170,7 +170,7 @@ Also, discussion group admins can now attachMenuPeerTypeBroadcast - The bot attachment menu entry is available in channels

  • Added chatInvitePublicJoinRequests - Used in updates and in the channel log to indicate when a user is requesting to join or has joined a discussion group
  • Added inputInvoiceMessage - An invoice contained in a messageMediaInvoice message.
  • -
  • Added inputInvoiceSlug - An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter »
  • +
  • Added inputInvoiceSlug - An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter »
  • Added payments.exportedInvoice - Exported invoice deep link
  • Added updateTranscribedAudio - A pending voice message transcription » initiated with messages.transcribeAudio was updated.
  • Added messages.transcribedAudio - Transcribed text from a voice message »
  • @@ -504,7 +504,7 @@ Also, discussion group admins can now messages.getMessageReactionsList - Get message reaction list, along with the sender of each reaction.
  • Added messages.setChatAvailableReactions - Change the set of message reactions » that can be used in a certain group, supergroup or channel
  • Added messages.getAvailableReactions - Obtain available message reactions »
  • -
  • Added messages.setDefaultReaction - Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using help.getAppConfig, reactions_default field.
  • +
  • Added messages.setDefaultReaction - Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using help.getAppConfig, reactions_default field.
  • New Constructors
    diff --git a/data/web/corefork.telegram.org/api/reactions.html b/data/web/corefork.telegram.org/api/reactions.html index d62d421ee0..8f30b024ff 100644 --- a/data/web/corefork.telegram.org/api/reactions.html +++ b/data/web/corefork.telegram.org/api/reactions.html @@ -95,7 +95,7 @@ The returned vector of availableReactio help.getAppConfig#98914110 = JSONValue;

    messages.setDefaultReaction can be used to change the default emoji reaction to use in the quick reaction menu.
    -This value is synced across devices and can be fetched using help.getAppConfig, reactions_default field.

    +This value is synced across devices and can be fetched using help.getAppConfig, reactions_default field.

    Change available reactions in group or channel

    channelAdminLogEventActionChangeAvailableReactions#9cf7f76a prev_value:Vector<string> new_value:Vector<string> = ChannelAdminLogEventAction;
     
    diff --git a/data/web/corefork.telegram.org/api/stickers.html b/data/web/corefork.telegram.org/api/stickers.html
    index b410b26e2d..4398740dd8 100644
    --- a/data/web/corefork.telegram.org/api/stickers.html
    +++ b/data/web/corefork.telegram.org/api/stickers.html
    @@ -277,8 +277,8 @@ This method will also emit an 
     

    Favorited stickers can be fetched using messages.getFavedStickers: note that this method returns a set of stickerset previews ».

    Users can fave only a certain number of stickersets, as specified by the following configuration parameters:

    An updateFavedStickers update will be emitted to the other logged-in sessions when faving or unfaving stickersets.
    This update should trigger a call to messages.getFavedStickers.

    diff --git a/data/web/corefork.telegram.org/api/url-authorization.html b/data/web/corefork.telegram.org/api/url-authorization.html index eb9fa52698..faa243dcbc 100644 --- a/data/web/corefork.telegram.org/api/url-authorization.html +++ b/data/web/corefork.telegram.org/api/url-authorization.html @@ -64,13 +64,13 @@ The same must be done if the user opens the link while refusing the authorizatio

    Link URL authorization

    Telegram supports automatic authorization on certain websites upon opening an HTTP URL in-app, upon clicking a link in a message or clicking on a keyboardButtonUrl.

    Automatic authorization

    -

    Clients should automatically authenticate users when opening official Telegram websites, listed in the autologin_domains key of the client configuration object ».

    -

    Upon clicking a link, the URL must be modified by appending the autologin_token from the client configuration object » to the query string, like so:

    +

    Clients should automatically authenticate users when opening official Telegram websites, listed in the autologin_domains key of the client configuration object ».

    +

    Upon clicking a link, the URL must be modified by appending the autologin_token » from the client configuration object » to the query string, like so:

    Original URL: https://somedomain.telegram.org/path?query=string#fragment=value
    Modified URL: https://somedomain.telegram.org/path?query=string&autologin_token=$autologin_token#fragment=value

    -

    Make sure that the used autologin_token is no more than 10000 seconds old, if it is older it must be refetched before use as described in the client configuration section ».

    +

    Make sure that the used autologin_token is no more than 10000 seconds old, if it is older it must be refetched before use as described in the client configuration section ».

    Manual authorization

    -

    Clients should show a confirmation prompt similar to the one used for bots, to authenticate users when opening certain Telegram websites, listed in the url_auth_domains key of the client configuration object ».

    +

    Clients should show a confirmation prompt similar to the one used for bots, to authenticate users when opening certain Telegram websites, listed in the url_auth_domains key of the client configuration object ».

    messages.requestUrlAuth should be called, providing only the original url. The returned urlAuthResultRequest object will contain more details about the authorization request: