[][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. Returned only in getChat.

pub fn pinned_message(&self) -> &Option<Box<Message>>
[src]

Pinned message, for supergroups and channel chats. 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 Sync for Chat

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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]