Fix codegen to allow add_sticker_to_set fn to work correctly

This commit is contained in:
Сырцев Вадим Игоревич 2024-06-11 20:03:03 +03:00
parent 787b1de29d
commit 2ac01496f2
2 changed files with 1 additions and 5 deletions

View file

@ -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,
} }
} }

View file

@ -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)]"
} }