[−][src]Struct telexide::model::raw::RawChat
The raw chat, for most usages the [Chat
] object is easier to use
Fields
id: i64
Unique identifier for this chat
chat_type: ChatType
title: Option<String>
Title, for supergroups, channels and group chats
username: Option<String>
Username, for private chats, supergroups and channels if available
first_name: Option<String>
First name of the other party in a private chat
last_name: Option<String>
Last name of the other party in a private chat
photo: Option<ChatPhoto>
Chat photo. Returned only in getChat.
bio: Option<String>
Bio of the other party in a private chat. Returned only in get_chat
.
description: Option<String>
Description, for groups, supergroups and channel chats. Returned only in
get_chat
.
invite_link: Option<String>
Chat invite link, for groups, supergroups and channel chats.
pinned_message: Option<Box<RawMessage>>
Pinned message, for groups, supergroups and channels. Returned only in
get_chat
.
permissions: Option<ChatPermissions>
Default chat member permissions, for groups and supergroups. Returned
only in get_chat
.
slow_mode_delay: Option<usize>
For supergroups, the minimum allowed delay between consecutive messages
sent by each unpriviledged user. Returned only in get_chat
.
sticker_set_name: Option<String>
For supergroups, name of group sticker set. Returned only in
get_chat
.
can_set_sticker_set: Option<bool>
True, if the bot can change the group sticker set. Returned only in
get_chat
.
linked_chat_id: Option<i64>
Unique identifier for the linked chat, i.e. the discussion group
identifier for a channel and vice versa; for supergroups and channel
chats. This identifier 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.
Returned only in get_chat
.
location: Option<ChatLocation>
For supergroups, the location to which the supergroup is connected.
Returned only in get_chat
.
Trait Implementations
impl Clone for RawChat
[src]
impl Debug for RawChat
[src]
impl<'de> Deserialize<'de> for RawChat
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<Chat> for RawChat
[src]
impl From<RawChat> for Chat
[src]
impl PartialEq<RawChat> for RawChat
[src]
impl Serialize for RawChat
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for RawChat
[src]
Auto Trait Implementations
impl RefUnwindSafe for RawChat
impl Send for RawChat
impl Sync for RawChat
impl Unpin for RawChat
impl UnwindSafe for RawChat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
[src]
T: Any + Debug,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,