pub struct BusinessBotRights {Show 14 fields
pub can_change_gift_settings: Option<bool>,
pub can_convert_gifts_to_stars: Option<bool>,
pub can_delete_all_messages: Option<bool>,
pub can_delete_outgoing_messages: Option<bool>,
pub can_edit_bio: Option<bool>,
pub can_edit_name: Option<bool>,
pub can_edit_profile_photo: Option<bool>,
pub can_edit_username: Option<bool>,
pub can_manage_stories: Option<bool>,
pub can_read_messages: Option<bool>,
pub can_reply: Option<bool>,
pub can_transfer_and_upgrade_gifts: Option<bool>,
pub can_transfer_stars: Option<bool>,
pub can_view_gifts_and_stars: Option<bool>,
}Expand description
Represents the rights of a business bot
Fields§
§can_change_gift_settings: Option<bool>Whether the bot can change the privacy settings pertaining to gifts for the business account.
can_convert_gifts_to_stars: Option<bool>Whether the bot can convert regular gifts owned by the business account to Telegram Stars.
can_delete_all_messages: Option<bool>Whether the bot can delete all private messages in managed chats.
can_delete_outgoing_messages: Option<bool>Whether the bot can delete messages sent by the bot.
can_edit_bio: Option<bool>Whether the bot can edit the bio of the business account.
can_edit_name: Option<bool>Whether the bot can edit the first and last name of the business account.
can_edit_profile_photo: Option<bool>Whether the bot can edit the profile photo of the business account.
can_edit_username: Option<bool>Whether the bot can edit the username of the business account.
can_manage_stories: Option<bool>Whether the bot can post, edit and delete stories on behalf of the business account.
can_read_messages: Option<bool>Whether the bot can mark incoming private messages as read.
can_reply: Option<bool>Whether the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.
can_transfer_and_upgrade_gifts: Option<bool>Whether the bot can transfer and upgrade gifts owned by the business account.
can_transfer_stars: Option<bool>Whether the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts.
can_view_gifts_and_stars: Option<bool>Whether the bot can view gifts and the amount of Telegram Stars owned by the business account.
Implementations§
Source§impl BusinessBotRights
impl BusinessBotRights
Sourcepub fn with_can_change_gift_settings(self, value: bool) -> Self
pub fn with_can_change_gift_settings(self, value: bool) -> Self
Sets a new value for the can_change_gift_settings flag.
§Arguments
value- Whether the bot can change the privacy settings pertaining to gifts for the business account.
Sourcepub fn with_can_convert_gifts_to_stars(self, value: bool) -> Self
pub fn with_can_convert_gifts_to_stars(self, value: bool) -> Self
Sets a new value for the can_convert_gifts_to_stars flag.
§Arguments
value- Whether the bot can convert regular gifts owned by the business account to Telegram Stars.
Sourcepub fn with_can_delete_all_messages(self, value: bool) -> Self
pub fn with_can_delete_all_messages(self, value: bool) -> Self
Sets a new value for the can_delete_all_messages flag.
§Arguments
value- Whether the bot can delete all private messages in managed chats.
Sourcepub fn with_can_delete_outgoing_messages(self, value: bool) -> Self
pub fn with_can_delete_outgoing_messages(self, value: bool) -> Self
Sets a new value for the can_delete_outgoing_messages flag.
§Arguments
value- Whether the bot can delete messages sent by the bot.
Sourcepub fn with_can_edit_bio(self, value: bool) -> Self
pub fn with_can_edit_bio(self, value: bool) -> Self
Sets a new value for the can_edit_bio flag.
§Arguments
value- Whether the bot can edit the bio of the business account.
Sourcepub fn with_can_edit_name(self, value: bool) -> Self
pub fn with_can_edit_name(self, value: bool) -> Self
Sets a new value for the can_edit_name flag.
§Arguments
value- Whether the bot can edit the first and last name of the business account.
Sourcepub fn with_can_edit_profile_photo(self, value: bool) -> Self
pub fn with_can_edit_profile_photo(self, value: bool) -> Self
Sets a new value for the can_edit_profile_photo flag.
§Arguments
value- Whether the bot can edit the profile photo of the business account.
Sourcepub fn with_can_edit_username(self, value: bool) -> Self
pub fn with_can_edit_username(self, value: bool) -> Self
Sets a new value for the can_edit_username flag.
§Arguments
value- Whether the bot can edit the username of the business account.
Sourcepub fn with_can_manage_stories(self, value: bool) -> Self
pub fn with_can_manage_stories(self, value: bool) -> Self
Sets a new value for the can_manage_stories flag.
§Arguments
value- Whether the bot can post, edit and delete stories on behalf of the business account.
Sourcepub fn with_can_read_messages(self, value: bool) -> Self
pub fn with_can_read_messages(self, value: bool) -> Self
Sets a new value for the can_read_messages flag.
§Arguments
value- Whether the bot can mark incoming private messages as read.
Sourcepub fn with_can_reply(self, value: bool) -> Self
pub fn with_can_reply(self, value: bool) -> Self
Sets a new value for the can_reply flag.
§Arguments
value- Whether the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.
Sourcepub fn with_can_transfer_and_upgrade_gifts(self, value: bool) -> Self
pub fn with_can_transfer_and_upgrade_gifts(self, value: bool) -> Self
Sets a new value for the can_transfer_and_upgrade_gifts flag.
§Arguments
value- Whether the bot can transfer and upgrade gifts owned by the business account.
Sourcepub fn with_can_transfer_stars(self, value: bool) -> Self
pub fn with_can_transfer_stars(self, value: bool) -> Self
Sets a new value for the can_transfer_stars flag.
§Arguments
value- Whether the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts.
Sourcepub fn with_can_view_gifts_and_stars(self, value: bool) -> Self
pub fn with_can_view_gifts_and_stars(self, value: bool) -> Self
Sets a new value for the can_view_gifts_and_stars flag.
§Arguments
value- Whether the bot can view gifts and the amount of Telegram Stars owned by the business account.
Trait Implementations§
Source§impl Clone for BusinessBotRights
impl Clone for BusinessBotRights
Source§fn clone(&self) -> BusinessBotRights
fn clone(&self) -> BusinessBotRights
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more