Struct tbot::methods::CreateChatInviteLink
source · pub struct CreateChatInviteLink<'a> { /* private fields */ }
Expand description
Creates a secondary invite link for a chat.
Reflects the createChatInviteLink
method.
Implementations§
source§impl<'a> CreateChatInviteLink<'a>
impl<'a> CreateChatInviteLink<'a>
sourcepub const fn expire_date(self, date: i64) -> Self
pub const fn expire_date(self, date: i64) -> Self
Configures the time when the link expires.
Reflects the expire_date
parameter.
sourcepub fn member_limit(self, limit: u32) -> Self
pub fn member_limit(self, limit: u32) -> Self
Configures how many users may be chat members at the same time if
they joined via this link. Must be in range 1..100_000
.
Reflects the member_limit
parameter.
source§impl CreateChatInviteLink<'_>
impl CreateChatInviteLink<'_>
sourcepub async fn call(self) -> Result<InviteLink, MethodCall>
pub async fn call(self) -> Result<InviteLink, MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for CreateChatInviteLink<'a>
impl<'a> Clone for CreateChatInviteLink<'a>
source§fn clone(&self) -> CreateChatInviteLink<'a>
fn clone(&self) -> CreateChatInviteLink<'a>
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 more