diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html index 5905c8cce3..f76c6e89fe 100644 --- a/data/web/corefork.telegram.org/api/layers.html +++ b/data/web/corefork.telegram.org/api/layers.html @@ -51,9 +51,9 @@ Layer…">
premium_invoice_slug
app config parameter »In some situations user and channel constructors have reduced set of fields present (although id
is always there) and min
flag set. This is done for performance and privacy reasons.
When receiving said constructors, the client must first check if user or chat object without min
flag is already present in local cache. If it is present, then the client should just ignore constructors with min
flag and use local one instead.
The rest of article assumes the client receives min-constructor without full object in local cache.
+The rest of the article assumes the client receives a min-constructor and doesn't have the full object in its local cache.
The client must store the context (similar to file references) in which the user/channel was seen. Later, when the client needs to pass the user/channel as input argument (e.g. fetch profile, mute, ban etc), the context is used to generate the input*FromMessage
constructor, instead of normal inputUser
, inputChannel
or inputPeer
.
Info about a custom emoji
+Represents a custom emoji
+How to create styled text with message entities
+Fetch info about custom emojis.
+Returns a list of documents with the animated custom emoji in TGS format, and a documentAttributeCustomEmoji attribute with the original emoji and info about the emoji stickerset this custom emoji belongs to.
Indicates the default notification sound should be used
+Indicates a specific local notification sound should be used
+No notification sound should be used
+A specific previously uploaded notification sound should be used
+Represents a payment method
+Exported invoice
+Telegram Premium gift option
+US$ 1.45
pass amount = 145
. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).Code | +Type | +Description | +
---|---|---|
400 | +RIGHTS_NOT_MODIFIED | ++ |
Code | +Type | +Description | +
---|---|---|
400 | +RIGHTS_NOT_MODIFIED | ++ |
This constructor does not require any parameters.
Fetch info about custom emojis.
+Returns a list of documents with the animated custom emoji in TGS format, and a documentAttributeCustomEmoji attribute with the original emoji and info about the emoji stickerset this custom emoji belongs to.
+Represents a custom emoji
+Document
+Info about a custom emoji
Gets the list of currently installed custom emoji stickersets.
+Gets featured custom emoji stickersets.
+How to fetch results from large lists of objects.
Telegram allows users to react on any message using specific emojis, triggering cute lottie animations.
Code | +Type | +Description | +
---|---|---|
400 | +QUERY_ID_INVALID | +The query ID is invalid. | +
Code | +Type | +Description | +
---|---|---|
400 | +MEDIA_INVALID | +Media invalid. | +
Name | -Description | -
---|---|
messages.getCustomEmojiDocuments | -- |
messages.getEmojiStickers | -- |
messages.getFeaturedEmojiStickers | -- |
Name | +Description | +
---|---|
messages.getCustomEmojiDocuments | +Fetch info about custom emojis. Returns a list of documents with the animated custom emoji in TGS format, and a documentAttributeCustomEmoji attribute with the original emoji and info about the emoji stickerset this custom emoji belongs to. |
+
messages.getEmojiStickers | +Gets the list of currently installed custom emoji stickersets. | +
messages.getFeaturedEmojiStickers | +Gets featured custom emoji stickersets. | +
documentAttributeCustomEmoji | -+ | Info about a custom emoji |