Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto guide

aicompose.updateTone

Edit a custom AI composer tone » previously created by the current user. Only the fields whose flag is set will be modified.

Edit a custom [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones) previously created by the current user. Only the fields whose flag is set will be modified.

NameTypeRequiredDescription
toneInputAiComposeToneYesThe tone to edit
display_authorBoolNoIf set, changes whether the current user is publicly credited as the author of the tone (ternary value, can be not set, set and true, set and false).
emoji_idlongNoIf set, the new [custom emoji ID](https://core.telegram.org/api/custom-emoji.md) of the tone's icon
titlestringNoIf set, the new human-readable tone name, up to [aicompose_tone_title_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-title-length-max) UTF-8 characters long
promptstringNoIf set, the new prompt that describes how the AI should rephrase messages using this tone, up to [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 characters long

Replies

AiComposeTone

MTProto RPC

  • 400 · AICOMPOSE_TONE_INVALID — The specified tone 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.