BusinessBotRights

class telegram.BusinessBotRights(can_reply=None, can_read_messages=None, can_delete_sent_messages=None, can_delete_all_messages=None, can_edit_name=None, can_edit_bio=None, can_edit_profile_photo=None, can_edit_username=None, can_change_gift_settings=None, can_view_gifts_and_stars=None, can_convert_gifts_to_stars=None, can_transfer_and_upgrade_gifts=None, can_transfer_stars=None, can_manage_stories=None, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object represents the rights of a business bot.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if all their attributes are equal.

Added in version 22.1.

Parameters:
  • can_reply (bool, optional) – True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.

  • can_read_messages (bool, optional) – True, if the bot can mark incoming private messages as read.

  • can_delete_sent_messages (bool, optional) – True, if the bot can delete messages sent by the bot.

  • can_delete_all_messages (bool, optional) – True, if the bot can delete all private messages in managed chats.

  • can_edit_name (bool, optional) – True, if the bot can edit the first and last name of the business account.

  • can_edit_bio (bool, optional) – True, if the bot can edit the bio of the business account.

  • can_edit_profile_photo (bool, optional) – True, if the bot can edit the profile photo of the business account.

  • can_edit_username (bool, optional) – True, if the bot can edit the username of the business account.

  • can_change_gift_settings (bool, optional) – True, if the bot can change the privacy settings pertaining to gifts for the business account.

  • can_view_gifts_and_stars (bool, optional) – True, if the bot can view gifts and the amount of Telegram Stars owned by the business account.

  • can_convert_gifts_to_stars (bool, optional) – True, if the bot can convert regular gifts owned by the business account to Telegram Stars.

  • can_transfer_and_upgrade_gifts (bool, optional) – True, if the bot can transfer and upgrade gifts owned by the business account.

  • can_transfer_stars (bool, optional) – True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts.

  • can_manage_stories (bool, optional) – True, if the bot can post, edit and delete stories on behalf of the business account.

can_reply[source]

Optional. True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.

Type:

bool

can_read_messages[source]

Optional. True, if the bot can mark incoming private messages as read.

Type:

bool

can_delete_sent_messages[source]

Optional. True, if the bot can delete messages sent by the bot.

Type:

bool

can_delete_all_messages[source]

Optional. True, if the bot can delete all private messages in managed chats.

Type:

bool

can_edit_name[source]

Optional. True, if the bot can edit the first and last name of the business account.

Type:

bool

can_edit_bio[source]

Optional. True, if the bot can edit the bio of the business account.

Type:

bool

can_edit_profile_photo[source]

Optional. True, if the bot can edit the profile photo of the business account.

Type:

bool

can_edit_username[source]

Optional. True, if the bot can edit the username of the business account.

Type:

bool

can_change_gift_settings[source]

Optional. True, if the bot can change the privacy settings pertaining to gifts for the business account.

Type:

bool

can_view_gifts_and_stars[source]

Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business account.

Type:

bool

can_convert_gifts_to_stars[source]

Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars.

Type:

bool

can_transfer_and_upgrade_gifts[source]

Optional. True, if the bot can transfer and upgrade gifts owned by the business account.

Type:

bool

can_transfer_stars[source]

Optional. True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts.

Type:

bool

can_manage_stories[source]

Optional. True, if the bot can post, edit and delete stories on behalf of the business account.

Type:

bool