mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +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
|
||||
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.
|
||||
#[serde(flatten)]
|
||||
pub sticker: InputSticker,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -219,10 +219,7 @@ fn params(params: impl Iterator<Item = impl Borrow<Param>>) -> String {
|
|||
\"crate::types::serialize_reply_to_message_id\")]"
|
||||
}
|
||||
Type::RawTy(s)
|
||||
if s == "MessageId"
|
||||
|| s == "InputSticker"
|
||||
|| s == "TargetMessage"
|
||||
|| s == "StickerType" =>
|
||||
if s == "MessageId" || s == "TargetMessage" || s == "StickerType" =>
|
||||
{
|
||||
"\n #[serde(flatten)]"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue