pub struct InternalLinkTypeBotStartInGroup { /* private fields */ }
Expand description
The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group
Implementations§
Trait Implementations§
Source§impl AsRef<InternalLinkTypeBotStartInGroup> for InternalLinkTypeBotStartInGroup
impl AsRef<InternalLinkTypeBotStartInGroup> for InternalLinkTypeBotStartInGroup
Source§fn as_ref(&self) -> &InternalLinkTypeBotStartInGroup
fn as_ref(&self) -> &InternalLinkTypeBotStartInGroup
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for InternalLinkTypeBotStartInGroup
impl Clone for InternalLinkTypeBotStartInGroup
Source§fn clone(&self) -> InternalLinkTypeBotStartInGroup
fn clone(&self) -> InternalLinkTypeBotStartInGroup
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 InternalLinkTypeBotStartInGroup
impl Default for InternalLinkTypeBotStartInGroup
Source§fn default() -> InternalLinkTypeBotStartInGroup
fn default() -> InternalLinkTypeBotStartInGroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InternalLinkTypeBotStartInGroup
impl<'de> Deserialize<'de> for InternalLinkTypeBotStartInGroup
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
impl TDInternalLinkType for InternalLinkTypeBotStartInGroup
Auto Trait Implementations§
impl Freeze for InternalLinkTypeBotStartInGroup
impl RefUnwindSafe for InternalLinkTypeBotStartInGroup
impl Send for InternalLinkTypeBotStartInGroup
impl Sync for InternalLinkTypeBotStartInGroup
impl Unpin for InternalLinkTypeBotStartInGroup
impl UnwindSafe for InternalLinkTypeBotStartInGroup
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