verifyChat¶
Returns: bool
- class litegram.methods.verify_chat.VerifyChat(*, chat_id: ChatIdUnion, custom_description: str | None = None, **extra_data: Any)[source]¶
Verifies a chat on behalf of the organization which is represented by the bot. Returns
Trueon success.Source: https://core.telegram.org/bots/api#verifychat
- chat_id: ChatIdUnion¶
Unique identifier for the target chat or username of the target channel (in the format
@channelusername). Channel direct messages chats can’t be verified.
Usage¶
As bot method¶
result: bool = await bot.verify_chat(...)
Method as object¶
Imports:
from litegram.methods.verify_chat import VerifyChatalias:
from litegram.methods import VerifyChat
With specific bot¶
result: bool = await bot(VerifyChat(...))
As reply into Webhook in handler¶
return VerifyChat(...)