Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto reference

bots.editAccessSettings

Edit the access restriction settings » of a managed bot; can only be called by the manager bot.

Edit the [access restriction settings »](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot) of a managed bot; can only be called by the manager bot.

NameTypeRequiredDescription
restrictedtrueNoIf set, restricts access to the managed bot to only the owner and the users in `add_users`
botInputUserYesThe managed bot whose access settings to edit
add_usersVector<InputUser>NoAdditional users (max 10, excluding the owner) allowed to access the managed bot when `restricted` is set

Responses

Bool

MTProto RPC

  • 400 · BOT_INVALID — This is not a valid bot.
  • 400 · USER_BOT_REQUIRED — This method can only be called by a bot.

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.