Struct telegram_bot_raw_ars::types::chat::Channel
source · pub struct Channel {
pub id: ChannelId,
pub title: String,
pub username: Option<String>,
pub invite_link: Option<String>,
}
Expand description
This object represents a channel.
Fields§
§id: ChannelId
Unique identifier for this chat.
title: String
Title, for supergroups, channels and group chats.
username: Option<String>
Username for channel.
invite_link: Option<String>
Invite link for this channel, specific to this bot. You can generate a new invite link by using the export_invite_link method.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Channel
impl Ord for Channel
source§impl PartialEq<Channel> for Channel
impl PartialEq<Channel> for Channel
source§impl PartialOrd<Channel> for Channel
impl PartialOrd<Channel> for Channel
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more