mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Fix the type of photo_size
,photo_width
and photo_height
in the send_invoice
method
This will fix https://github.com/teloxide/teloxide/issues/935 issue
This commit is contained in:
parent
9b7e5957cc
commit
038ac1f8f2
2 changed files with 6 additions and 6 deletions
|
@ -3735,17 +3735,17 @@ Schema(
|
|||
),
|
||||
Param(
|
||||
name: "photo_size",
|
||||
ty: Option(String),
|
||||
ty: Option(u32),
|
||||
descr: Doc(md: "Photo size in bytes")
|
||||
),
|
||||
Param(
|
||||
name: "photo_width",
|
||||
ty: Option(String),
|
||||
ty: Option(u32),
|
||||
descr: Doc(md: "Photo width")
|
||||
),
|
||||
Param(
|
||||
name: "photo_height",
|
||||
ty: Option(String),
|
||||
ty: Option(u32),
|
||||
descr: Doc(md: "Photo height")
|
||||
),
|
||||
Param(
|
||||
|
|
|
@ -45,11 +45,11 @@ impl_payload! {
|
|||
/// URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.
|
||||
pub photo_url: Url,
|
||||
/// Photo size in bytes
|
||||
pub photo_size: String [into],
|
||||
pub photo_size: u32,
|
||||
/// Photo width
|
||||
pub photo_width: String [into],
|
||||
pub photo_width: u32,
|
||||
/// Photo height
|
||||
pub photo_height: String [into],
|
||||
pub photo_height: u32,
|
||||
/// Pass _True_, if you require the user's full name to complete the order
|
||||
pub need_name: bool,
|
||||
/// Pass _True_, if you require the user's phone number to complete the order
|
||||
|
|
Loading…
Reference in a new issue