pub struct CreateChatInviteLink {
pub chat_id: ChatUId,
pub name: Option<String>,
pub expire_date: Option<i64>,
pub member_limit: Option<i64>,
pub creates_join_request: Option<bool>,
}Expand description
https://core.telegram.org/bots/api#createchatinvitelink Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object.
Fields§
§chat_id: ChatUId§name: Option<String>§expire_date: Option<i64>§member_limit: Option<i64>§creates_join_request: Option<bool>Trait Implementations§
Source§impl Debug for CreateChatInviteLink
impl Debug for CreateChatInviteLink
Source§impl Default for CreateChatInviteLink
impl Default for CreateChatInviteLink
Source§fn default() -> CreateChatInviteLink
fn default() -> CreateChatInviteLink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateChatInviteLink
impl RefUnwindSafe for CreateChatInviteLink
impl Send for CreateChatInviteLink
impl Sync for CreateChatInviteLink
impl Unpin for CreateChatInviteLink
impl UnwindSafe for CreateChatInviteLink
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more