bots.SetCustomVerification

class pyrogram.raw.functions.bots.SetCustomVerification

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

Details:
  • Layer: 223

  • ID: 8B89DFBD

Parameters:
  • peer (InputPeer) – The peer to verify

  • enabled (bool, optional) – If set, adds the verification; otherwise removes verification.

  • bot (InputUser, optional) – Must not be set if invoked by a bot, must be set to the ID of an owned bot if invoked by a user.

  • custom_description (str, optional) – 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:

bool

TL Schema

bots.setCustomVerification#8b89dfbd
flags:#
enabled:flags.1?true
bot:flags.0?InputUser
peer:InputPeer
custom_description:flags.2?string

= Bool

Parameter Tree

SetCustomVerification
├── enabledtrue (optional)
├── botInputUser (optional)
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── custom_descriptionstring (optional)

Example

await app.invoke(
    SetCustomVerification(
        enabled=None,
        bot=await app.resolve_user(chat_id),
        peer=await app.resolve_peer(chat_id),
        custom_description="text",
    )
)