mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
Fix codegen to allow add_sticker_to_set fn to work correctly
This commit is contained in:
parent
787b1de29d
commit
2ac01496f2
2 changed files with 1 additions and 5 deletions
|
@ -15,7 +15,6 @@ impl_payload! {
|
||||||
/// Sticker set name
|
/// Sticker set name
|
||||||
pub name: String [into],
|
pub name: String [into],
|
||||||
/// A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed.
|
/// A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed.
|
||||||
#[serde(flatten)]
|
|
||||||
pub sticker: InputSticker,
|
pub sticker: InputSticker,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -219,10 +219,7 @@ fn params(params: impl Iterator<Item = impl Borrow<Param>>) -> String {
|
||||||
\"crate::types::serialize_reply_to_message_id\")]"
|
\"crate::types::serialize_reply_to_message_id\")]"
|
||||||
}
|
}
|
||||||
Type::RawTy(s)
|
Type::RawTy(s)
|
||||||
if s == "MessageId"
|
if s == "MessageId" || s == "TargetMessage" || s == "StickerType" =>
|
||||||
|| s == "InputSticker"
|
|
||||||
|| s == "TargetMessage"
|
|
||||||
|| s == "StickerType" =>
|
|
||||||
{
|
{
|
||||||
"\n #[serde(flatten)]"
|
"\n #[serde(flatten)]"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue