Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

stickers.createStickerSet

Create a stickerset.

NameTypeRequiredDescription
maskstrueNoWhether this is a mask stickerset
emojistrueNoWhether this is a [custom emoji](https://core.telegram.org/api/custom-emoji.md) stickerset.
text_colortrueNoWhether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only.
user_idInputUserYesStickerset owner
titlestringYesStickerset name, `1-64` chars
short_namestringYesShort name of sticker set, to be used in [sticker deep links »](https://core.telegram.org/api/links.md#stickerset-links). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and, **if called by a bot**, must end in `"_by_<bot_username>"`. `<bot_username>` is case insensitive. 1-64 characters.
thumbInputDocumentNoThumbnail
stickersVector<InputStickerSetItem>YesStickers
softwarestringNoUsed when [importing stickers using the sticker import SDKs](https://core.telegram.org/import-stickers.md), specifies the name of the software that created the stickers

Responses

messages.StickerSet

MTProto RPC

  • 400 · PACK_SHORT_NAME_INVALID — Short pack name invalid.
  • 400 · PACK_SHORT_NAME_OCCUPIED — A stickerpack with this name already exists.
  • 400 · PACK_TITLE_INVALID — The stickerpack title is invalid.
  • 400 · PACK_TYPE_INVALID — The masks and emojis flags are mutually exclusive.
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · STICKERS_EMPTY — No sticker provided.
  • 400 · STICKER_EMOJI_INVALID — Sticker emoji invalid.
  • 400 · STICKER_FILE_INVALID — Sticker file invalid.
  • 400 · STICKER_GIF_DIMENSIONS — The specified video sticker has invalid dimensions.
  • 400 · STICKER_PNG_DIMENSIONS — Sticker png dimensions invalid.
  • 400 · STICKER_PNG_NOPNG — One of the specified stickers is not a valid PNG file.
  • 400 · STICKER_TGS_NODOC — You must send the animated sticker as a document.
  • 400 · STICKER_TGS_NOTGS — Invalid TGS sticker provided.
  • 400 · STICKER_THUMB_PNG_NOPNG — Incorrect stickerset thumb file provided, PNG / WEBP expected.
  • 400 · STICKER_THUMB_TGS_NOTGS — Incorrect stickerset TGS thumb file provided.
  • 400 · STICKER_VIDEO_BIG — The specified video sticker is too big.
  • 400 · STICKER_VIDEO_NODOC — You must send the video sticker as a document.
  • 400 · STICKER_VIDEO_NOWEBM — The specified video sticker is not in webm format.
  • 400 · USER_ID_INVALID — The provided user ID is invalid.

Telegram documentation ↗

Пользователи users.getFullUser
POST users.getFullUser

Получить подробный профиль пользователя

Возвращает расширенные сведения о пользователе. В ответе могут быть описание профиля и связанные пользователи или чаты.

ПользователиTL: users.getFullUserДоступен пользователям и ботам

Параметры запроса

Параметр
id
Тип
InputUser
Обязательный
Да
Описание
Пользователь, сведения о котором нужно получить.
Тип InputUser

Указывает пользователя для дальнейшего взаимодействия.

КонструкторПоляОписание
inputUseruser_id: longID пользователяaccess_hash: longЗначение access_hash из конструктора userУказывает пользователя для дальнейшего взаимодействия.
inputUserSelf—Текущий пользователь
inputUserFromMessagepeer: InputPeerЧат, в котором встретился пользовательmsg_id: intID сообщенияuser_id: longID пользователяПользователь с признаком min из конкретного сообщения чата
inputUserEmpty—Пустой конструктор, который не указывает пользователя

Авторизация Telegram

Сессия хранится в этой вкладке. Запрос выполняется напрямую к Telegram.