Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

account.toggleNoPaidMessagesException

Erlauben Sie einem Benutzer, uns Nachrichten ohne Bezahlung zu senden, wenn kostenpflichtige Nachrichten » aktiviert sind.

Erlauben Sie einem Benutzer, uns Nachrichten ohne Bezahlung zu senden, wenn [kostenpflichtige Nachrichten »](https://core.telegram.org/api/paid-messages.md) aktiviert sind.

NameTypErforderlichBeschreibung
refund_chargedtrueNeinIf set and `require_payment` is not set, refunds the amounts the user has already paid us to send us messages (directly or via a monoforum).
require_paymenttrueNeinIf set, requires the user to pay in order to send us messages. Can only be **set** by monoforums, not users, i.e. `parent_peer` must be set if this flag is set; users must instead use the [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages.md) privacy setting to remove a previously added exemption. If not set, allows the user to send us messages without paying (can be **unset** by both monoforums and users).
parent_peerInputPeerNeinIf set, applies the setting within the [monoforum aka direct messages »](https://core.telegram.org/api/monoforum.md) (pass the ID of the monoforum, **not** the ID of the associated channel).
user_idInputUserJaThe user to exempt or unexempt.

Antworten

Bool

MTProto RPC

  • 400 · PARENT_PEER_INVALID – Die angegebene parent_peer ist ungültig.
  • 400 · UNSUPPORTED – require_payment kann nicht von Benutzern *festgelegt* werden, sondern nur von Monoforen: Benutzer müssen stattdessen die Datenschutzeinstellung [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages.md)] verwenden, um eine zuvor hinzugefügte Ausnahme zu entfernen.
  • 400 · USER_ID_INVALID – Die angegebene Benutzer-ID ist ungültig.

Telegrammdokumentation ↗

Пользователи 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.