pub struct UserTypeBot {
pub can_join_groups: bool,
pub can_read_all_group_messages: bool,
pub is_inline: bool,
pub inline_query_placeholder: String,
pub need_location: bool,
}
Expand description
A bot (see https://core.telegram.org/bots)
Fields§
§can_join_groups: bool
True, if the bot can be invited to basic group and supergroup chats
can_read_all_group_messages: bool
True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages
is_inline: bool
True, if the bot supports inline queries
inline_query_placeholder: String
Placeholder for inline queries (displayed on the client input field)
need_location: bool
True, if the location of the user should be sent with every inline query to this bot
Trait Implementations§
Source§impl Clone for UserTypeBot
impl Clone for UserTypeBot
Source§fn clone(&self) -> UserTypeBot
fn clone(&self) -> UserTypeBot
Returns a duplicate 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 Debug for UserTypeBot
impl Debug for UserTypeBot
Source§impl<'de> Deserialize<'de> for UserTypeBot
impl<'de> Deserialize<'de> for UserTypeBot
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 Freeze for UserTypeBot
impl RefUnwindSafe for UserTypeBot
impl Send for UserTypeBot
impl Sync for UserTypeBot
impl Unpin for UserTypeBot
impl UnwindSafe for UserTypeBot
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