Telegram MTProto
TL-Schicht 236899 MethodenOpenAPI 3.0.3

MTProto-Referenz

payments.botCancelStarsSubscription

Cancel a bot subscription

Cancel a [bot subscription](https://core.telegram.org/api/subscriptions.md#bot-subscriptions)

NameTypErforderlichBeschreibung
restoretrueNeinIf **not** set, disables autorenewal of the subscriptions, and prevents the user from reactivating the subscription once the current period expires: a subscription cancelled by the bot will have the [starsSubscription](https://core.telegram.org/constructor/starsSubscription.md).`bot_canceled` flag set. The bot can can partially undo this operation by setting this flag: this will allow the user to reactivate the subscription.
user_idInputUserJaThe ID of the user whose subscription should be (un)cancelled
charge_idstringJaThe `provider_charge_id` from the [messageActionPaymentSentMe](https://core.telegram.org/constructor/messageActionPaymentSentMe.md) service message sent to the bot for the first subscription payment.

Antworten

Bool

MTProto RPC

  • 400 · CHARGE_ID_INVALID – Die angegebene charge_id ist ungültig.
  • 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.