Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

messages.getForumTopics

Get topics of a forum

Get [topics of a forum](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.
qstringNoSearch query
icon_emoji_idlongNo64-битное целое в десятичной записи.
closedBoolNoValue of TL type `Bool`.
offset_dateintYes[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), date of the last message of the last found topic. Use 0 or any date in the future to get results from the last topic.
offset_idintYes[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), ID of the last message of the last found topic (or initially `0`).
offset_topicintYes[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), ID of the last found topic (or initially `0`).
limitintYesMaximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md). For optimal performance, the number of returned topics is chosen by the server and can be smaller than the specified limit.

Responses

messages.ForumTopics

MTProto RPC

  • 400 · CHANNEL_FORUM_MISSING — This supergroup is not a forum.
  • 400 · CHANNEL_INVALID — The provided channel 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.