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:
TheAwiteb 2023-09-20 13:17:45 +03:00
parent 9b7e5957cc
commit 038ac1f8f2
No known key found for this signature in database
GPG key ID: ABF818BD15DC2D34
2 changed files with 6 additions and 6 deletions

View file

@ -3735,17 +3735,17 @@ Schema(
), ),
Param( Param(
name: "photo_size", name: "photo_size",
ty: Option(String), ty: Option(u32),
descr: Doc(md: "Photo size in bytes") descr: Doc(md: "Photo size in bytes")
), ),
Param( Param(
name: "photo_width", name: "photo_width",
ty: Option(String), ty: Option(u32),
descr: Doc(md: "Photo width") descr: Doc(md: "Photo width")
), ),
Param( Param(
name: "photo_height", name: "photo_height",
ty: Option(String), ty: Option(u32),
descr: Doc(md: "Photo height") descr: Doc(md: "Photo height")
), ),
Param( Param(

View file

@ -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. /// 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, pub photo_url: Url,
/// Photo size in bytes /// Photo size in bytes
pub photo_size: String [into], pub photo_size: u32,
/// Photo width /// Photo width
pub photo_width: String [into], pub photo_width: u32,
/// Photo height /// 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 /// Pass _True_, if you require the user's full name to complete the order
pub need_name: bool, pub need_name: bool,
/// Pass _True_, if you require the user's phone number to complete the order /// Pass _True_, if you require the user's phone number to complete the order