Skip to content

Commit

Permalink
fix upload sticker file result
Browse files Browse the repository at this point in the history
  • Loading branch information
akahan committed Jul 26, 2024
1 parent 225e80c commit 0d64bb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api_traits/async_telegram_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ pub trait AsyncTelegramApi {
async fn upload_sticker_file(
&self,
params: &UploadStickerFileParams,
) -> Result<MethodResponse<FileUpload>, Self::Error> {
) -> Result<MethodResponse<FileObject>, Self::Error> {
let sticker = FileUpload::from(&params.sticker);

self.request_with_form_data(
Expand Down
2 changes: 1 addition & 1 deletion src/api_traits/telegram_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ pub trait TelegramApi {
fn upload_sticker_file(
&self,
params: &UploadStickerFileParams,
) -> Result<MethodResponse<FileUpload>, Self::Error> {
) -> Result<MethodResponse<FileObject>, Self::Error> {
let sticker = FileUpload::from(&params.sticker);
self.request_with_form_data(
"uploadStickerFile",
Expand Down

0 comments on commit 0d64bb2

Please sign in to comment.