verifyChat

Returns: bool

class aiogram.methods.verify_chat.VerifyChat(*, chat_id: int | str, 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 chat on behalf of the organization which is represented by the bot. Returns True on success.

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

chat_id: ChatIdUnion

Unique identifier for the target chat or username of the target bot, supergroup, or channel in the format @username. Channel direct messages chats can’t be verified

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_chat(...)

Method as object

Imports:

  • from aiogram.methods.verify_chat import VerifyChat

  • alias: from aiogram.methods import VerifyChat

With specific bot

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

As reply into Webhook in handler

return VerifyChat(...)