telegram api method · layer 229 · #8b89dfbd
bots.setCustomVerification
Verify a user or chat on behalf of an organization ».
definition
bots.setCustomVerification#8b89dfbd flags:# enabled:flags.1?true bot:flags.0?InputUser peer:InputPeer custom_description:flags.2?string = Bool;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
enabled | true | If set, adds the verification; otherwise removes verification. |
bot | InputUser | Must not be set if invoked by a bot, must be set to the ID of an owned bot if invoked by a user. |
peer | InputPeer | The peer to verify |
custom_description | string | Custom description for the verification, the UTF-8 length limit for this field is contained in bot_verification_description_length_limit ». If not set, Was verified by organization "organization_name" will be used as description. |
returns
errors (5)
| code | error | description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
| 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 | PEER_ID_INVALID | The provided peer id is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 403 | BOT_VERIFIER_FORBIDDEN | This bot cannot assign verification icons. |
history
present in layers 196–229
| id | layers |
|---|---|
| #8b89dfbd | 196–229 |