peyk.platforms.telegram.types.business_bot_rights¶
Classes
|
Represents the rights of a business bot. |
- class peyk.platforms.telegram.types.business_bot_rights.BusinessBotRights(can_reply: bool | None = None, can_delete_outgoing_messages: bool | None = None, can_edit_messages: bool | None = None, can_delete_all_messages: bool | None = None, can_post_stories: bool | None = None, can_edit_stories: bool | None = None, can_delete_stories: bool | None = None, can_read_messages: bool | None = None, can_change_gift_settings: bool | None = None, can_transfer_and_upgrade_gifts: bool | None = None, can_convert_gift_to_stars: bool | None = None, can_transfer_stars: bool | None = None, can_manage_connected_bots: bool | None = None)[source]¶
Bases:
objectRepresents the rights of a business bot.
- Variables:
can_reply (bool | None) – 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 | None) – True, if the bot can mark incoming private messages as read
can_delete_sent_messages – True, if the bot can delete messages sent by the bot
can_delete_all_messages (bool | None) – True, if the bot can delete all private messages in managed chats
can_edit_name – True, if the bot can edit the first and last name of the business account
can_edit_bio – True, if the bot can edit the bio of the business account
can_edit_profile_photo – True, if the bot can edit the profile photo of the business account
can_edit_username – True, if the bot can edit the username of the business account
can_change_gift_settings (bool | None) – True, if the bot can change the privacy settings pertaining to gifts for the business account
can_view_gifts_and_stars – True, if the bot can view gifts and the amount of Telegram Stars owned by the business account
can_convert_gifts_to_stars – True, if the bot can convert regular gifts owned by the business account to Telegram Stars
can_transfer_and_upgrade_gifts (bool | None) – True, if the bot can transfer and upgrade gifts owned by the business account
can_transfer_stars (bool | None) – 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 – True, if the bot can post, edit and delete stories on behalf of the business account
can_delete_outgoing_messages (bool | None) – True, if the bot can delete messages sent by the bot
- can_reply: bool | None = None¶
- can_delete_outgoing_messages: bool | None = None¶
- can_edit_messages: bool | None = None¶
- can_delete_all_messages: bool | None = None¶
- can_post_stories: bool | None = None¶
- can_edit_stories: bool | None = None¶
- can_delete_stories: bool | None = None¶
- can_read_messages: bool | None = None¶
- can_change_gift_settings: bool | None = None¶
- can_transfer_and_upgrade_gifts: bool | None = None¶
- can_convert_gift_to_stars: bool | None = None¶
- can_transfer_stars: bool | None = None¶
- can_manage_connected_bots: bool | None = None¶
- classmethod from_dict(data: dict | None) BusinessBotRights | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.