Method schema is available as of layer 220. Switch »
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| peer | InputPeer | |
| slug | string | |
| price | StarsAmount | |
| duration | int | |
| random_id | long | |
| allow_paid_stars | flags.0?long |
| Code | Type | Description |
|---|---|---|
| 400 | INPUT_STARS_AMOUNT_INVALID | |
| 400 | INPUT_STARS_NANOS_INVALID | |
| 400 | INVOICE_INVALID | The specified invoice is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | RESELL_STARS_TOO_FEW | |
| 400 | RESELL_STARS_TOO_MUCH | |
| 400 | STARGIFT_OFFER_INVALID | |
| 400 | STARGIFT_OFFER_NOT_ALLOWED | |
| 400 | STARGIFT_SLUG_INVALID | The specified gift slug is invalid. |