//! Generated by `codegen_payloads`, do not edit by hand.
use serde::Serialize;
use crate::types::{CallbackQueryMode, True};
impl_payload! {
/// Use this method to change the settings of the bot. Settings that aren't specified remain unchanged. Returns *True* on success.
#[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
pub SetMySettings (SetMySettingsSetters) => True {
optional {
/// Pass *True* to enable [inline mode] for the bot or *False* to disable it
///
/// [inline mode]: https://core.telegram.org/bots/api#inline-mode
pub supports_inline_queries: bool,
/// New placeholder for inline queries, which is shown in the input field after the bot's username. Pass an empty string to use the default placeholder.
pub inline_query_placeholder: String [into],
/// Pass *True* to request the location of the user with every inline query to the bot or *False* to stop requesting it
pub needs_inline_query_location: bool,
/// Denominator of the share of [chosen inline results] received by the bot; the bot receives 1 out of *inline_feedback_share_denominator* chosen results. Must be one of 1, 10, 100, or 1000. Pass 0 to stop receiving chosen inline results.
///
/// [chosen inline results]: https://core.telegram.org/bots/api#choseninlineresult
pub inline_feedback_share_denominator: u32,
/// Pass *True* to allow adding the bot to groups or *False* to disallow it
pub can_join_groups: bool,
/// Pass *True* to disable [privacy mode] for the bot or *False* to enable it
///
/// [privacy mode]: https://core.telegram.org/bots/features#privacy-mode
pub can_read_all_group_messages: bool,
/// Pass *True* to allow connecting the bot to user accounts to manage them or *False* to disallow it
pub can_connect_to_business: bool,
/// Pass *True* to allow creating other bots that will be controlled by the bot or *False* to disallow it
pub can_manage_bots: bool,
/// Pass *True* to allow guest queries to the bot from chats it isn't a member of or *False* to disallow them
pub supports_guest_queries: bool,
/// Pass *True* to allow assigning the bot to process join request queries or *False* to disallow it
pub supports_join_request_queries: bool,
/// Pass *True* to enable forum topic mode in private chats with the bot or *False* to disable it
pub has_topics_enabled: bool,
/// Pass *True* to allow users to create and delete topics in private chats with the bot or *False* to disallow it
pub allows_users_to_create_topics: bool,
/// Pass *True* to show topics in private chats with the bot in a sidebar or *False* to stop showing them in a sidebar
pub has_topic_sidebar: bool,
/// Pass *True* to allow the bot to communicate with other bots in groups, private chats, and through business accounts or *False* to disallow it
pub can_communicate_with_bots: bool,
/// Mode in which the bot receives [callback queries] from buttons in messages sent by the bot. Must be one of “default” (the field *message* is always used and contains an [`InaccessibleMessage`] if the message is inaccessible to the bot), “auto” (the field *inline_message_id* is used instead of the field *message* if the message is inaccessible to the bot; the field *message* can still contain an inaccessible message if the message has just been deleted), or “inline” (the field *inline_message_id* is always used instead of the field *message*).
///
/// [callback queries]: https://core.telegram.org/bots/api#callbackquery
/// [`InaccessibleMessage`]: crate::types::InaccessibleMessage
pub callback_query_mode: CallbackQueryMode,
}
}
}