Telegram MTProto
TL layer 236899 methodsOpenAPI 3.0.3

MTProto guide

messages.setChatAvailableReactions

Change the set of message reactions » that can be used in a certain group, supergroup or channel

Change the set of [message reactions »](https://core.telegram.org/api/reactions.md) that can be used in a certain group, supergroup or channel

NameTypeRequiredDescription
peerInputPeerYesGroup where to apply changes
available_reactionsChatReactionsYesAllowed reaction emojis
reactions_limitintNoThis flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of [appConfig.reactions_uniq_max](https://core.telegram.org/api/config.md#reactions-uniq-max)); this field and the other info set by the method will then be available to users in [channelFull](https://core.telegram.org/constructor/channelFull.md) and [chatFull](https://core.telegram.org/constructor/chatFull.md). If this flag is not set, the previously configured `reactions_limit` will not be altered.
paid_enabledBoolNoIf this flag is set and a [Bool](https://core.telegram.org/type/Bool.md) is passed, the method will enable or disable [paid message reactions »](https://core.telegram.org/api/reactions.md#paid-reactions). If this flag is not set, the previously stored setting will not be changed.

Replies

Updates

MTProto RPC

  • 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
  • 400 · CHAT_NOT_MODIFIED — No changes were made to chat information because the new information you passed is identical to the current information.
  • 400 · DOCUMENT_INVALID — The specified document is invalid.
  • 400 · LIMIT_PER_POST_INVALID — The specified reactions_limit value is invalid.
  • 400 · PEER_ID_INVALID — The provided peer id is invalid.
  • 400 · REACTION_INVALID — The specified reaction 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.