Struct botapi::gen_types::ChatJoinRequest
source · pub struct ChatJoinRequest { /* private fields */ }
Expand description
Represents a join request sent to a chat.
Implementations§
source§impl ChatJoinRequest
impl ChatJoinRequest
pub fn noskip(self) -> NoSkipChatJoinRequest
source§impl ChatJoinRequest
impl ChatJoinRequest
pub fn new(chat: Chat, from: User, user_chat_id: i64, date: i64) -> Self
sourcepub fn get_chat_ref<'a>(&'a self) -> &'a Chat
pub fn get_chat_ref<'a>(&'a self) -> &'a Chat
Chat to which the request was sent
sourcepub fn get_from_ref<'a>(&'a self) -> &'a User
pub fn get_from_ref<'a>(&'a self) -> &'a User
User that sent the join request
sourcepub fn get_user_chat_id<'a>(&'a self) -> i64
pub fn get_user_chat_id<'a>(&'a self) -> i64
Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 24 hours to send messages until the join request is processed, assuming no other administrator contacted the user.
sourcepub fn get_user_chat_id_ref<'a>(&'a self) -> i64
pub fn get_user_chat_id_ref<'a>(&'a self) -> i64
Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 24 hours to send messages until the join request is processed, assuming no other administrator contacted the user.
sourcepub fn get_date_ref<'a>(&'a self) -> i64
pub fn get_date_ref<'a>(&'a self) -> i64
Date the request was sent in Unix time
sourcepub fn get_bio_ref<'a>(&'a self) -> Option<&'a str>
pub fn get_bio_ref<'a>(&'a self) -> Option<&'a str>
Optional. Bio of the user.
sourcepub fn get_invite_link<'a>(&'a self) -> Option<Cow<'a, ChatInviteLink>>
pub fn get_invite_link<'a>(&'a self) -> Option<Cow<'a, ChatInviteLink>>
Optional. Chat invite link that was used by the user to send the join request
sourcepub fn get_invite_link_ref<'a>(&'a self) -> Option<&'a ChatInviteLink>
pub fn get_invite_link_ref<'a>(&'a self) -> Option<&'a ChatInviteLink>
Optional. Chat invite link that was used by the user to send the join request
Trait Implementations§
source§impl Clone for ChatJoinRequest
impl Clone for ChatJoinRequest
source§fn clone(&self) -> ChatJoinRequest
fn clone(&self) -> ChatJoinRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more