mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Add #[serde(untagged)]
to ChatId
This commit is contained in:
parent
17a26aec7b
commit
e58d40a765
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ pub struct RequestContext<'a> {
|
|||
/// Unique identifier for the target chat or username of the target channel (in
|
||||
/// the format @channelusername)
|
||||
#[derive(Debug, Display, Serialize, From, PartialEq, Eq, Clone)]
|
||||
#[serde(untagged)]
|
||||
pub enum ChatId {
|
||||
/// chat identifier
|
||||
#[display(fmt = "{}", _0)]
|
||||
|
|
Loading…
Reference in a new issue