Struct teloxide_core::payloads::EditChatInviteLink
source · pub struct EditChatInviteLink {
pub chat_id: Recipient,
pub invite_link: String,
pub name: Option<String>,
pub expire_date: Option<DateTime<Utc>>,
pub member_limit: Option<u32>,
pub creates_join_request: Option<bool>,
}
Expand description
Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the edited invite link as a ChatInviteLink
object.
Fields§
§chat_id: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
invite_link: String
The invite link to edit
name: Option<String>
Invite link name; 0-32 characters
expire_date: Option<DateTime<Utc>>
Point in time (Unix timestamp) when the link will expire
member_limit: Option<u32>
Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
creates_join_request: Option<bool>
True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can’t be specified
Implementations§
Trait Implementations§
source§impl Clone for EditChatInviteLink
impl Clone for EditChatInviteLink
source§impl Debug for EditChatInviteLink
impl Debug for EditChatInviteLink
source§impl Hash for EditChatInviteLink
impl Hash for EditChatInviteLink
source§impl PartialEq<EditChatInviteLink> for EditChatInviteLink
impl PartialEq<EditChatInviteLink> for EditChatInviteLink
source§fn eq(&self, other: &EditChatInviteLink) -> bool
fn eq(&self, other: &EditChatInviteLink) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for EditChatInviteLink
impl Payload for EditChatInviteLink
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for EditChatInviteLink
impl Serialize for EditChatInviteLink
impl Eq for EditChatInviteLink
impl StructuralEq for EditChatInviteLink
impl StructuralPartialEq for EditChatInviteLink
Auto Trait Implementations§
impl RefUnwindSafe for EditChatInviteLink
impl Send for EditChatInviteLink
impl Sync for EditChatInviteLink
impl Unpin for EditChatInviteLink
impl UnwindSafe for EditChatInviteLink
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.