bots.SetCustomVerification
- class pyrogram.raw.functions.bots.SetCustomVerification
Verify a user or chat on behalf of an organization ».
- Details:
Layer:
223ID:
8B89DFBD
- Parameters:
peer (
InputPeer) – The peer to verifyenabled (
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
├── enabled →
true (optional)├── bot →
InputUser (optional)│ ├──
InputUserEmpty│ ├──
InputUserSelf│ ├──
InputUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ └──
InputUserFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── user_id →
long├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── custom_description →
string (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",
)
)