Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

channels.updatePaidMessagesPrice

Enable or disable paid messages » in this supergroup or monoforum.

Enable or disable [paid messages »](https://core.telegram.org/api/paid-messages.md) in this [supergroup](https://core.telegram.org/api/channel.md) or [monoforum](https://core.telegram.org/api/monoforum.md).

NameTypErforderlichBeschreibung
broadcast_messages_allowedtrueNeinOnly usable for channels, enables or disables the associated [monoforum aka direct messages](https://core.telegram.org/api/monoforum.md).
channelInputChannelJaPass the supergroup ID for supergroups and the ID of the [channel](https://core.telegram.org/api/channel.md) to modify the setting in the associated monoforum.
send_paid_messages_starslongJaSpecifies the required amount of [Telegram Stars](https://core.telegram.org/api/stars.md) users must pay to send messages to the supergroup or monoforum.

Antworten

Updates

MTProto RPC

  • 400 · CHANNEL_INVALID – Der angegebene Kanal ist ungültig.
  • 400 · CHANNEL_MONOFORUM_UNSUPPORTED – [Monoforen](https://core.telegram.org/api/channel.md#monoforums) unterstützen diese Funktion nicht.
  • 400 · CHAT_NOT_MODIFIED — An den Chat-Informationen wurden keine Änderungen vorgenommen, da die neuen Informationen, die Sie übergeben haben, mit den aktuellen Informationen identisch sind.
  • 400 · STARS_AMOUNT_INVALID — Der angegebene Betrag in Sternen 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.