Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto guide

messages.editForumTopic

Edit forum topic.

Edit [forum topic](https://core.telegram.org/api/forum.md).

NameTypeRequiredDescription
peerInputPeerYesThe supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located.
topic_idintYesTopic ID
titlestringNoIf present, will update the topic title (maximum UTF-8 length: 128).
icon_emoji_idlongNoIf present, updates the [custom emoji](https://core.telegram.org/api/custom-emoji.md) used as topic icon. [Telegram Premium](https://core.telegram.org/api/premium.md) users can use any custom emoji, other users can only use the custom emojis contained in the [inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md) emoji pack. Pass 0 to switch to the fallback topic icon.
closedBoolNoIf present, will update the open/closed status of the topic.
hiddenBoolNoIf present, will hide/unhide the topic (only valid for the "General" topic, `id=1`).

Replies

Updates

MTProto RPC

  • 400 · CHANNEL_INVALID — The provided channel is invalid.
  • 400 · TOPIC_CLOSE_SEPARATELY — The close flag cannot be provided together with any of the other flags.
  • 400 · TOPIC_NOT_MODIFIED — The updated topic info is equal to the current topic info, nothing was changed.

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.