Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto guide

messages.saveDraft

Save a message draft associated to a chat.

Save a message [draft](https://core.telegram.org/api/drafts.md) associated to a chat.

NameTypeRequiredDescription
no_webpagetrueNoDisable generation of the webpage preview
invert_mediatrueNoIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
reply_toInputReplyToNoIf set, indicates that the message should be sent in reply to the specified message or story.
peerInputPeerYesDestination of the message that should be sent
messagestringYesThe draft
entitiesVector<MessageEntity>NoMessage [entities](https://core.telegram.org/api/entities.md) for styled text
mediaInputMediaNoAttached media
effectlongNoSpecifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message.
suggested_postSuggestedPostNoUsed to [suggest a post to a channel, see here »](https://core.telegram.org/api/suggested-posts.md) for more info on the full flow.
rich_messageInputRichMessageNoТип TL: InputRichMessage.

Replies

Bool

MTProto RPC

  • 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
  • 403 · CHAT_WRITE_FORBIDDEN — You can't write in this chat.
  • 400 · ENTITY_BOUNDS_INVALID — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.
  • 400 · INPUT_USER_DEACTIVATED — The specified user was deleted.
  • 400 · MSG_ID_INVALID — Invalid message ID provided.
  • 400 · PEER_ID_INVALID — The provided peer 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.