BusinessConnection

class aiogram.types.business_connection.BusinessConnection(*, id: str, user: User, user_chat_id: int, date: _datetime_serializer, return_type=int, when_used=unless - none)], can_reply: bool, is_enabled: bool, **extra_data: Any)[source]

Describes the connection of the bot with a business account.

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

id: str

Unique identifier of the business connection

user: User

Business account user that created the business connection

user_chat_id: int

Identifier of a private chat with the user who created the business connection. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.

date: DateTime

Date the connection was established in Unix time

can_reply: bool

True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours

is_enabled: bool

True, if the connection is active