Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto guide

channels.getAdminedPublicChannels

Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups.

Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md) we're admin in. Usually called when the user exceeds the [limit](https://core.telegram.org/constructor/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md), and the user is given the choice to remove one of his channels/supergroups/geogroups.

NameTypeRequiredDescription
by_locationtrueNoGet geogroups
check_limittrueNoIf set and the user has reached the limit of owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md), instead of returning the channel list one of the specified [errors](#possible-errors) will be returned. Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in [channels.checkUsername](https://core.telegram.org/method/channels.checkUsername.md)/[channels.updateUsername](https://core.telegram.org/method/channels.updateUsername.md).
for_personaltrueNoSet this flag to only fetch the full list of channels that may be passed to [account.updatePersonalChannel](https://core.telegram.org/method/account.updatePersonalChannel.md) to [display them on our profile page](https://core.telegram.org/api/profile.md#personal-channel).
for_community_peertrueNoValue of TL type `true`.

Replies

messages.Chats

MTProto RPC

  • 400 · CHANNELS_ADMIN_LOCATED_TOO_MUCH — The user has reached the limit of public geogroups.
  • 400 · CHANNELS_ADMIN_PUBLIC_TOO_MUCH — You're admin of too many public channels, make some channels private to change the username of this channel.

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.