Skip to content

Commit

Permalink
async set_message_reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Dec 30, 2023
1 parent 89196ce commit 4e4ce59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api_traits/async_telegram_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ use crate::api_params::SetChatStickerSetParams;
use crate::api_params::SetChatTitleParams;
use crate::api_params::SetCustomEmojiStickerSetThumbnailParams;
use crate::api_params::SetGameScoreParams;
use crate::api_params::SetMessageReactionParams;
use crate::api_params::SetMyCommandsParams;
use crate::api_params::SetMyDefaultAdministratorRightsParams;
use crate::api_params::SetMyDescriptionParams;
Expand Down Expand Up @@ -488,6 +489,13 @@ pub trait AsyncTelegramApi {
self.request("sendChatAction", Some(params)).await
}

async fn set_message_reaction(
&self,
params: &SetMessageReactionParams,
) -> Result<MethodResponse<bool>, Self::Error> {
self.request("setMessageReaction", Some(params)).await
}

async fn get_user_profile_photos(
&self,
params: &GetUserProfilePhotosParams,
Expand Down

0 comments on commit 4e4ce59

Please sign in to comment.