diff --git a/data/core.telegram.org/method/stickers.createStickerSet b/data/core.telegram.org/method/stickers.createStickerSet deleted file mode 100644 index 49dedfb447..0000000000 --- a/data/core.telegram.org/method/stickers.createStickerSet +++ /dev/null @@ -1,282 +0,0 @@ - - - - - stickers.createStickerSet - - - - - - - - - - - - - -
- -
-
-
- -

stickers.createStickerSet

- -

Create a stickerset, bots only.

-

- -
-
messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
----functions---
-stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true videos:flags.4?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> software:flags.3?string = messages.StickerSet;

-

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
flags#Flags, see TL conditional fields
masksflags.0?trueWhether this is a mask stickerset
animatedflags.1?trueWhether this is an animated stickerset
user_idInputUserStickerset owner
titlestringStickerset name, 1-64 chars
short_namestringSticker set name. Can contain only English letters, digits and underscores. Must end with "by" ( is case insensitive); 1-64 characters
thumbflags.2?InputDocumentThumbnail
stickersVector<InputStickerSetItem>Stickers
softwareflags.3?stringUsed when importing stickers using the sticker import SDKs, specifies the name of the software that created the stickers
-

Result

-

messages.StickerSet

-

Possible errors

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CodeTypeDescription
400BOT_MISSINGThis method can only be run by a bot.
400PACK_SHORT_NAME_INVALIDShort pack name invalid.
400PACK_SHORT_NAME_OCCUPIEDA stickerpack with this name already exists.
400PACK_TITLE_INVALIDThe stickerpack title is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.
400SHORTNAME_OCCUPY_FAILEDAn internal error occurred.
400STICKERS_EMPTYNo sticker provided.
400STICKER_EMOJI_INVALIDSticker emoji invalid.
400STICKER_FILE_INVALIDSticker file invalid.
400STICKER_PNG_DIMENSIONSSticker png dimensions invalid.
400STICKER_PNG_NOPNGOne of the specified stickers is not a valid PNG file.
400STICKER_TGS_NODOCIncorrect document type for sticker.
400STICKER_TGS_NOTGSInvalid TGS sticker provided.
400STICKER_THUMB_PNG_NOPNGIncorrect stickerset thumb file provided, PNG / WEBP expected.
400STICKER_THUMB_TGS_NOTGSIncorrect stickerset TGS thumb file provided.
400USER_ID_INVALIDThe provided user ID is invalid.
-

Bots can use this method

- -
- -
-
- -
- - - - - - diff --git a/data/corefork.telegram.org/api/animated-emojis.html b/data/corefork.telegram.org/api/animated-emojis.html deleted file mode 100644 index f4c1402574..0000000000 --- a/data/corefork.telegram.org/api/animated-emojis.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - Animated Emojis - - - - - - - - - - - - - -
- -
-
-
- -

Animated Emojis

- -

Graphical telegram clients should transform emojis into their respective animated version.

-
inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;
-
-messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
-
----functions---
-
-messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet;
-

On startup, clients should fetch the animated emoji stickerset by calling the messages.getStickerSet method, providing inputStickerSetAnimatedEmoji to the stickerset field.
-The returned stickerset will contain a set of animated stickers, one for each of the supported emojis.

-

Clients should substitute messages containing only one instance of one of the allowed emojis with the respective animated sticker.

-

Animated emojis should loop only once when first sent or received, or when clicked.
-For supported emojis, clients on both sides of private chats with users are supposed to show a reaction animation when any of the two users clicks on the animated emoji: click here for more info ยป.

-

For special dice emojis like ๐ŸŽฒ, ๐ŸŽฏ, or ๐Ÿ€, clients are supposed to behave differently both when sending and receiving such emojis: click here for more info ยป.

-

Emojis with sounds

-

Certained animated emojis should play sound when clicked, as specified by server-side configuration.

-

The returned JSON object will contain the following map, with a list of file IDs to download:

-
    "emojies_sounds": {
-        "\ud83c\udf83": {
-            "id": "4956223179606458539",
-            "access_hash": "-2107001400913062971",
-            "file_reference_base64": "AF-4ApC7ukC0UWEPZN0TeSJURe7T"
-        },
-        "\u26b0": {
-            "id": "4956223179606458540",
-            "access_hash": "-1498869544183595185",
-            "file_reference_base64": "AF-4ApCLKMGt96WCvLm58kbqZHd3"
-        },
-        "\ud83e\udddf\u200d\u2642": {
-            "id": "4960929110848176331",
-            "access_hash": "3986395821757915468",
-            "file_reference_base64": "AF-4ApAedNln3IMEHH-SUQuH8L9g"
-        },
-    }
-

The file reference field should be base64-decoded before downloading the file.

-

Emoji reactions

-
inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;
-
-messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet;
-
-stickerPack#12b299d4 emoticon:string documents:Vector<long> = StickerPack;
-
-sendMessageEmojiInteraction#25972bcb emoticon:string msg_id:int interaction:DataJSON = SendMessageAction;
-sendMessageEmojiInteractionSeen#b665902e emoticon:string = SendMessageAction;
-
-updateUserTyping#c01e857f user_id:long action:SendMessageAction = Update;
-
----functions---
-
-messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet;
-
-messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool;
-

On startup, clients should fetch the animated reaction emoji stickerset by calling the messages.getStickerSet method, providing inputStickerSetAnimatedEmojiAnimations to the stickerset field.
-The returned stickerset will contain a set of animated emoji reactions, one or more for each of the supported emojis.
-If a set of reactions for the โค emoji is returned, the same reactions should also be assigned to the ๐Ÿงก, ๐Ÿ’›, ๐Ÿ’š, ๐Ÿ’™, ๐Ÿ’œ, ๐Ÿ–ค, ๐Ÿค and ๐ŸคŽ emojis.

-

Clients on both sides of private chats with users should overlay one of the appropriate reaction animations over the animated sticker when any of the two users clicks on a supported animated emoji.
-The reaction animation for each separate tap should be chosen randomly from all the available reactions for a given emoji, and multiple taps should be aggregated and sent to the other user as follows:

-

At each tap, clients should store all occurred taps in a local list.
-After 1 second has elapsed with no more taps, the local list should be cleared and stored taps should be sent using messages.setTyping, passing a sendMessageEmojiInteraction constructor with the following fields:

-
    -
  • emoticon - The emoji we're reacting to
  • -
  • msg_id - Message ID of the animated emoji that was clicked
  • -
  • interaction - A JSON object with interaction info, containing the following keys:
      -
    • v - An integer indicating the object version, currently 1
    • -
    • a - An array of JSON objects, each containing the following keys:
        -
      • t - float, number of seconds that passed since the previous tap in the array, the first tap uses a value of 0.0.
      • -
      • i - integer, 1-based index of the randomly chosen animation for the tap (equivalent to the index of a specific emoji-related animation in stickerPack + 1).
      • -
      -
    • -
    -
  • -
-

1 second after the receiving user has seen the last reaction animation for a specific emoji, an acknowledgement must be sent using messages.setTyping, passing a sendMessageEmojiInteractionSeen with that emoji.

- -
- -
-
- -
- - - - - -