Enum tg_flows::ChatMigration
source · pub enum ChatMigration {
To {
chat_id: ChatId,
},
From {
chat_id: ChatId,
},
}Expand description
Represents group migration to a supergroup or a supergroup migration from a group.
Note that bot receives both updates. For example: a group with id 0
migrates to a supergroup with id 1 bots in that group will receive 2
updates:
message.chat.id = 0,message.chat_migration() = ChatMigration::To { chat_id: 1 }message.chat.id = 1,message.chat_migration() = ChatMigration::From { chat_id: 0 }
Variants§
To
The group has been migrated to a supergroup with the specified
identifier chat_id.
From
The supergroup has been migrated from a group with the specified
identifier chat_id.
Trait Implementations§
source§impl Clone for ChatMigration
impl Clone for ChatMigration
source§fn clone(&self) -> ChatMigration
fn clone(&self) -> ChatMigration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ChatMigration
impl Debug for ChatMigration
source§impl<'de> Deserialize<'de> for ChatMigration
impl<'de> Deserialize<'de> for ChatMigration
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 PartialEq<ChatMigration> for ChatMigration
impl PartialEq<ChatMigration> for ChatMigration
source§fn eq(&self, other: &ChatMigration) -> bool
fn eq(&self, other: &ChatMigration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.