verifyUser

Returns: bool

class aiogram.methods.verify_user.VerifyUser(*, user_id: int, custom_description: str | None = None, custom_description_parse_mode: str | ~aiogram.client.default.Default | None = <Default('parse_mode')>, custom_description_entities: list[~aiogram.types.message_entity.MessageEntity] | None = None, **extra_data: ~typing.Any)[source]

Verifies a user on behalf of the organization which is represented by the bot. Returns True on success.

Source: https://core.telegram.org/bots/api#verifyuser

user_id: int

Unique identifier of the target user

custom_description: str | None

Custom description for the verification; 0-70 characters. Must be empty if the organization isn’t allowed to provide a custom verification description

custom_description_parse_mode: str | Default | None

Mode for parsing entities in the custom description. See formatting options for more details. Only ‘text_link’ entities are supported

custom_description_entities: list[MessageEntity] | None

A JSON-serialized list of special entities that appear in the custom description, which can be specified instead of custom_description_parse_mode. Only ‘text_link’ entities are supported

Usage

As bot method

result: bool = await bot.verify_user(...)

Method as object

Imports:

  • from aiogram.methods.verify_user import VerifyUser

  • alias: from aiogram.methods import VerifyUser

With specific bot

result: bool = await bot(VerifyUser(...))

As reply into Webhook in handler

return VerifyUser(...)