payments.changeStarsSubscription #

Activate or deactivate a Telegram Star subscription ».

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
payments.changeStarsSubscription#c7770878 flags:# peer:InputPeer subscription_id:string canceled:flags.0?Bool = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
peerInputPeerAlways pass inputPeerSelf.
subscription_idstringID of the subscription.
canceledflags.0?BoolWhether to cancel or reactivate the subscription.

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

inputPeerSelf #

Defines the current user.

Chats and channels may have a public username or a private invite link: private invite links may be further enhanced with per-user join requests.