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

MTProto reference

messages.setTyping

Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.

Sends a current user typing event (see [SendMessageAction](https://core.telegram.org/type/SendMessageAction.md) for all event types) to a conversation partner or group.

名前型必須説明
peerInputPeerはいTarget user or group
top_msg_idintいいえ[Topic ID](https://core.telegram.org/api/threads.md)
actionSendMessageActionはいType of action

レスポンス

Bool

MTProto RPC

  • 400 · BUSINESS_CONNECTION_INVALID — The connection_id passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.
  • 400 · BUSINESS_PEER_INVALID — Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business.md#connected-bots).
  • 400 · BUSINESS_PEER_USAGE_MISSING — You cannot send a message to a user through a [business connection](https://core.telegram.org/api/business.md#connected-bots) if the user hasn't recently contacted us.
  • 400 · CHANNEL_INVALID — The provided channel is invalid.
  • 400 · CHANNEL_MONOFORUM_UNSUPPORTED — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.
  • 406 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
  • 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
  • 400 · CHAT_ID_INVALID — The provided chat id is invalid.
  • 403 · CHAT_WRITE_FORBIDDEN — You can't write in this chat.
  • 403 · GROUPCALL_FORBIDDEN — The specified group call cannot be used in this context.
  • 400 · INPUT_USER_DEACTIVATED — The specified user was deleted.
  • 400 · MESSAGE_TOO_LONG — The provided message is too long.
  • 400 · MSG_ID_INVALID — Invalid message ID provided.
  • 406 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · TEXTDRAFT_PEER_INVALID — sendMessageTextDraftAction can only be used in private 1-on-1 chats.
  • 400 · USER_BANNED_IN_CHANNEL — You're banned from sending messages in supergroups/channels.
  • 403 · USER_IS_BLOCKED — You were blocked by this user.
  • 400 · USER_IS_BOT — Bots can't send messages to other bots.

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.