Telegram MTProto
طبقة TL 236عدد الطرق: 899OpenAPI 3.0.3

MTProto reference

messages.composeMessageWithAI

Invokes telegram's AI Editor that can translate, transform, fixup and/or emojify your message in a number of different ways, privately powered by Cocoon, see here » for more info!

Invokes telegram's AI Editor that can translate, transform, fixup and/or emojify your message in a number of different ways, privately powered by [Cocoon](https://cocoon.org), see [here »](https://core.telegram.org/api/ai.md#compose-messages) for more info!

الاسمالنوعمطلوبالوصف
proofreadtrueلأIf set, proofreads and fixes mistakes in the message
emojifytrueلأIf set, adds emojis to the message
textTextWithEntitiesأيوهالرسالة
translate_to_langstringلأIf set, translates the message to the specified language
toneInputAiComposeToneلأIf set, rephrases the message using the specified [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones)

الردود

messages.ComposedMessageWithAI

MTProto RPC

  • 400 · AICOMPOSE_FLOOD_PREMIUM — You've reached the daily limit of AI text transformations, upgrade to [Telegram Premium](https://core.telegram.org/api/premium.md) to get **50x** times more AI text transformations per day!
  • 500 · AICOMPOSE_TIMEOUT — A timeout occurred while composing the message.
  • 400 · AI_COMPOSE_TASK_MISSING — No AI task was specified. The caller must provide at least one of: proofread, translate (with a target language), tone, or emojify.
  • 400 · MESSAGE_EMPTY — The provided message is empty.

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.