pub struct SwitchInlineQueryChosenChatBuilder { /* private fields */ }Expand description
This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.
Implementations§
source§impl SwitchInlineQueryChosenChatBuilder
impl SwitchInlineQueryChosenChatBuilder
pub fn new() -> Self
sourcepub fn set_query(self, query: String) -> Self
pub fn set_query(self, query: String) -> Self
Optional. The default inline query to be inserted in the input field. If left empty, only the bot’s username will be inserted
sourcepub fn set_allow_user_chats(self, allow_user_chats: bool) -> Self
pub fn set_allow_user_chats(self, allow_user_chats: bool) -> Self
Optional. True, if private chats with users can be chosen
sourcepub fn set_allow_bot_chats(self, allow_bot_chats: bool) -> Self
pub fn set_allow_bot_chats(self, allow_bot_chats: bool) -> Self
Optional. True, if private chats with bots can be chosen
sourcepub fn set_allow_group_chats(self, allow_group_chats: bool) -> Self
pub fn set_allow_group_chats(self, allow_group_chats: bool) -> Self
Optional. True, if group and supergroup chats can be chosen
sourcepub fn set_allow_channel_chats(self, allow_channel_chats: bool) -> Self
pub fn set_allow_channel_chats(self, allow_channel_chats: bool) -> Self
Optional. True, if channel chats can be chosen
pub fn build(self) -> SwitchInlineQueryChosenChat
Trait Implementations§
source§impl Clone for SwitchInlineQueryChosenChatBuilder
impl Clone for SwitchInlineQueryChosenChatBuilder
source§fn clone(&self) -> SwitchInlineQueryChosenChatBuilder
fn clone(&self) -> SwitchInlineQueryChosenChatBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for SwitchInlineQueryChosenChatBuilder
impl Default for SwitchInlineQueryChosenChatBuilder
source§fn default() -> SwitchInlineQueryChosenChatBuilder
fn default() -> SwitchInlineQueryChosenChatBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SwitchInlineQueryChosenChatBuilder
impl<'de> Deserialize<'de> for SwitchInlineQueryChosenChatBuilder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SwitchInlineQueryChosenChatBuilder
impl Send for SwitchInlineQueryChosenChatBuilder
impl Sync for SwitchInlineQueryChosenChatBuilder
impl Unpin for SwitchInlineQueryChosenChatBuilder
impl UnwindSafe for SwitchInlineQueryChosenChatBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more