[−][src]Struct actix_telegram::types::Chat
This object represents a chat.
Methods
impl Chat
[src]
pub fn id(&self) -> &Integer
[src]
Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
pub fn type_(&self) -> &String
[src]
Type of chat, can be either “private”, “group”, “supergroup” or “channel”
pub fn title(&self) -> &Option<String>
[src]
Title, for supergroups, channels and group chats
pub fn username(&self) -> &Option<String>
[src]
Username, for private chats, supergroups and channels if available
pub fn first_name(&self) -> &Option<String>
[src]
First name of the other party in a private chat
pub fn last_name(&self) -> &Option<String>
[src]
Last name of the other party in a private chat
pub fn all_members_are_administrators(&self) -> &Option<bool>
[src]
True if a group has ‘All Members Are Admins’ enabled.
pub fn photo(&self) -> &Option<ChatPhoto>
[src]
Chat photo. Returned only in getChat.
pub fn description(&self) -> &Option<String>
[src]
Description, for supergroups and channel chats. Returned only in getChat.
pub fn invite_link(&self) -> &Option<String>
[src]
Chat invite link, for supergroups and channel chats. Each administrator in a chat generates their own invite links, so the bot must first generate the link using exportChatInviteLink. Returned only in getChat.
pub fn pinned_message(&self) -> &Option<Box<Message>>
[src]
Pinned message, for groups, supergroups and channels. Returned only in getChat.
pub fn sticker_set_name(&self) -> &Option<String>
[src]
For supergroups, name of group sticker set. Returned only in getChat.
pub fn can_set_sticker_set(&self) -> &Option<bool>
[src]
True, if the bot can change the group sticker set. Returned only in getChat.
Trait Implementations
impl Clone for Chat
[src]
fn clone(&self) -> Chat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Chat
[src]
impl<'de> Deserialize<'de> for Chat
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Chat
impl Unpin for Chat
impl Sync for Chat
impl UnwindSafe for Chat
impl RefUnwindSafe for Chat
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,