mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Derive From
for ChatId
again
This commit is contained in:
parent
5f86362f17
commit
4177d20e54
2 changed files with 2 additions and 2 deletions
|
@ -73,4 +73,4 @@ pub mod payloads {
|
|||
|
||||
send_animation::SendAnimation,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/// Unique identifier for the target chat or username of the target channel (in
|
||||
/// the format `@channelusername`)
|
||||
#[derive(Debug, Display, PartialEq, Eq, Hash, Clone, Deserialize, Serialize)]
|
||||
#[derive(Debug, Display, PartialEq, Eq, Hash, Clone, Deserialize, Serialize, From)]
|
||||
#[serde(untagged)]
|
||||
pub enum ChatId {
|
||||
/// chat identifier
|
||||
|
|
Loading…
Add table
Reference in a new issue