pub struct SendBotStartMessage {
pub bot_user_id: i32,
pub chat_id: i64,
pub parameter: String,
}
Expand description
Invites a bot to a chat (if it is not yet a member) and sends it the /start command. Bots can’t be invited to a private chat other than the chat with the bot. Bots can’t be invited to channels (although they can be added as admins) and secret chats. Returns the sent message
Fields§
§bot_user_id: i32
Identifier of the bot
chat_id: i64
Identifier of the target chat
parameter: String
A hidden parameter sent to the bot for deep linking purposes (https://api.telegram.org/bots#deep-linking)
Trait Implementations§
Source§impl Clone for SendBotStartMessage
impl Clone for SendBotStartMessage
Source§fn clone(&self) -> SendBotStartMessage
fn clone(&self) -> SendBotStartMessage
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 SendBotStartMessage
impl Debug for SendBotStartMessage
Source§impl<'de> Deserialize<'de> for SendBotStartMessage
impl<'de> Deserialize<'de> for SendBotStartMessage
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
Source§impl Method for SendBotStartMessage
impl Method for SendBotStartMessage
Auto Trait Implementations§
impl Freeze for SendBotStartMessage
impl RefUnwindSafe for SendBotStartMessage
impl Send for SendBotStartMessage
impl Sync for SendBotStartMessage
impl Unpin for SendBotStartMessage
impl UnwindSafe for SendBotStartMessage
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