Activate or deactivate a Telegram Star subscription ».
Method schema is available as of layer 186. Switch »
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| peer | InputPeer | Always pass inputPeerSelf. |
| subscription_id | string | ID of the subscription. |
| canceled | flags.0?Bool | Whether to cancel or reactivate the subscription. |
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
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.