bots.setCustomVerification #

Verify a user or chat on behalf of an organization ».

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.setCustomVerification#8b89dfbd flags:# enabled:flags.1?true bot:flags.0?InputUser peer:InputPeer custom_description:flags.2?string = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
enabledflags.1?trueIf set, adds the verification; otherwise removes verification.
botflags.0?InputUserMust not be set if invoked by a bot, must be set to the ID of an owned bot if invoked by a user.
peerInputPeerThe peer to verify
custom_descriptionflags.2?stringCustom 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.

Result #

Bool

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.
403BOT_VERIFIER_FORBIDDENThis bot cannot assign verification icons.
400PEER_ID_INVALIDThe provided peer id is invalid.

Client configuration #

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

Third-party verification #

To further improve transparency on Telegram, official third-party services are able to assign extra verification icons to user accounts and chats — in order to prevent scams and reduce misinformation.