MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / BusinessBotRights

Class BusinessBotRights

src/telegram/_business.py:48–189  ·  view source on GitHub ↗

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. .. versionadded:: 22.1 Args: can_reply (:obj:`bool`, optional): True, if

Source from the content-addressed store, hash-verified

46
47
48class BusinessBotRights(TelegramObject):
49 """
50 This object represents the rights of a business bot.
51
52 Objects of this class are comparable in terms of equality.
53 Two objects of this class are considered equal, if all their attributes are equal.
54
55 .. versionadded:: 22.1
56
57 Args:
58 can_reply (:obj:`bool`, optional): True, if the bot can send and edit messages in the
59 private chats that had incoming messages in the last 24 hours.
60 can_read_messages (:obj:`bool`, optional): True, if the bot can mark incoming private
61 messages as read.
62 can_delete_sent_messages (:obj:`bool`, optional): True, if the bot can delete messages
63 sent by the bot.
64 can_delete_all_messages (:obj:`bool`, optional): True, if the bot can delete all private
65 messages in managed chats.
66 can_edit_name (:obj:`bool`, optional): True, if the bot can edit the first and last name
67 of the business account.
68 can_edit_bio (:obj:`bool`, optional): True, if the bot can edit the bio of the
69 business account.
70 can_edit_profile_photo (:obj:`bool`, optional): True, if the bot can edit the profile
71 photo of the business account.
72 can_edit_username (:obj:`bool`, optional): True, if the bot can edit the username of the
73 business account.
74 can_change_gift_settings (:obj:`bool`, optional): True, if the bot can change the privacy
75 settings pertaining to gifts for the business account.
76 can_view_gifts_and_stars (:obj:`bool`, optional): True, if the bot can view gifts and the
77 amount of Telegram Stars owned by the business account.
78 can_convert_gifts_to_stars (:obj:`bool`, optional): True, if the bot can convert regular
79 gifts owned by the business account to Telegram Stars.
80 can_transfer_and_upgrade_gifts (:obj:`bool`, optional): True, if the bot can transfer and
81 upgrade gifts owned by the business account.
82 can_transfer_stars (:obj:`bool`, optional): True, if the bot can transfer Telegram Stars
83 received by the business account to its own account, or use them to upgrade and
84 transfer gifts.
85 can_manage_stories (:obj:`bool`, optional): True, if the bot can post, edit and delete
86 stories on behalf of the business account.
87
88 Attributes:
89 can_reply (:obj:`bool`): Optional. True, if the bot can send and edit messages in the
90 private chats that had incoming messages in the last 24 hours.
91 can_read_messages (:obj:`bool`): Optional. True, if the bot can mark incoming private
92 messages as read.
93 can_delete_sent_messages (:obj:`bool`): Optional. True, if the bot can delete messages
94 sent by the bot.
95 can_delete_all_messages (:obj:`bool`): Optional. True, if the bot can delete all private
96 messages in managed chats.
97 can_edit_name (:obj:`bool`): Optional. True, if the bot can edit the first and last name
98 of the business account.
99 can_edit_bio (:obj:`bool`): Optional. True, if the bot can edit the bio of the
100 business account.
101 can_edit_profile_photo (:obj:`bool`): Optional. True, if the bot can edit the profile
102 photo of the business account.
103 can_edit_username (:obj:`bool`): Optional. True, if the bot can edit the username of the
104 business account.
105 can_change_gift_settings (:obj:`bool`): Optional. True, if the bot can change the privacy

Callers 7

test_update.pyFile · 0.90
business_bot_rightsFunction · 0.90
test_equalityMethod · 0.90
test_equalityMethod · 0.90
dummy_objects.pyFile · 0.90
business_connectionFunction · 0.90

Calls

no outgoing calls

Tested by 5

business_bot_rightsFunction · 0.72
test_equalityMethod · 0.72
test_equalityMethod · 0.72
business_connectionFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…