telegram api method · layer 229 · #e4fca4a3
payments.editConnectedStarRefBot
Leave a bot's affiliate program »
definition
payments.editConnectedStarRefBot#e4fca4a3 flags:# revoked:flags.0?true peer:InputPeer link:string = payments.ConnectedStarRefBots;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
revoked | true | If set, leaves the bot's affiliate program |
peer | InputPeer | The peer that was affiliated |
link | string | The affiliate link to revoke |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | STARREF_HASH_REVOKED | The specified affiliate link was already revoked. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 195–229
| id | layers |
|---|---|
| #e4fca4a3 | 195–229 |