[][src]Struct actix_telegram::types::Chat

pub struct Chat { /* fields omitted */ }

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.

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_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]

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]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]