BusinessConnection¶
- class telegram.BusinessConnection(id, user, user_chat_id, date, is_enabled, rights=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectDescribes the connection of the bot with a business account.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their
id,user,user_chat_id,date,rights, andis_enabledare equal.Available In
Returned In
Added in version 21.1.
Changed in version 22.1: Equality comparison now considers
rightsinstead ofcan_reply.Removed in version 22.3: Removed argument and attribute
can_replydeprecated by API 9.0.- Parameters:
id (
str) – Unique identifier of the business connection.user (
telegram.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.date (
datetime.datetime) – Date the connection was established in Unix time.is_enabled (
bool) – True, if the connection is active.rights (
BusinessBotRights, optional) –Rights of the business bot.
Added in version 22.1.
- user_chat_id[source]¶
Identifier of a private chat with the user who created the business connection.
- Type:
int