mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 17:52:12 +01:00
Fix sticker_type
param serialization
This commit is contained in:
parent
967da8fd9e
commit
7550af9a25
2 changed files with 4 additions and 1 deletions
|
@ -222,7 +222,9 @@ fn params(params: impl Iterator<Item = impl Borrow<Param>>) -> String {
|
|||
let field = ¶m.name;
|
||||
let ty = ¶m.ty;
|
||||
let flatten = match ty {
|
||||
Type::RawTy(s) if s == "InputSticker" || s == "TargetMessage" => {
|
||||
Type::RawTy(s)
|
||||
if s == "InputSticker" || s == "TargetMessage" || s == "StickerType" =>
|
||||
{
|
||||
"\n #[serde(flatten)]"
|
||||
}
|
||||
_ => "",
|
||||
|
|
|
@ -26,6 +26,7 @@ impl_payload! {
|
|||
}
|
||||
optional {
|
||||
/// Type of stickers in the set, pass “regular” or “mask”. Custom emoji sticker sets can't be created via the Bot API at the moment. By default, a regular sticker set is created.
|
||||
#[serde(flatten)]
|
||||
pub sticker_type: StickerType,
|
||||
/// A JSON-serialized object for position where the mask should be placed on faces
|
||||
pub mask_position: MaskPosition,
|
||||
|
|
Loading…
Reference in a new issue