Telegram MTProto
TL レイヤー 236899 件のメソッドOpenAPI 3.0.3

MTProto reference

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.

名前型必須説明
no_webpagetrueいいえDisable generation of the webpage preview
invert_mediatrueいいえIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
reply_toInputReplyToいいえIf set, indicates that the message should be sent in reply to the specified message or story.
peerInputPeerはいDestination of the message that should be sent
messagestringはいThe draft
entitiesVector<MessageEntity>いいえスタイル付きテキストのメッセージ [entities](https://core.telegram.org/api/entities.md)]
mediaInputMediaいいえ付属メディア
effectlongいいえSpecifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message.
suggested_postSuggestedPostいいえUsed 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_messageInputRichMessageいいえТип TL: InputRichMessage.

レスポンス

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.