Skip to content

Commit

Permalink
Bot API 8.0 - Emoji Status
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Dec 1, 2024
1 parent 732aa04 commit e893d10
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,14 @@ pub struct GetUserProfilePhotosParams {
pub limit: Option<u32>,
}

#[apply(apistruct!)]
#[derive(Eq)]
pub struct SetUserEmojiStatusParams {
pub user_id: u64,
pub emoji_status_custom_emoji_id: Option<String>,
pub emoji_status_expiration_date: Option<u64>,
}

#[apply(apistruct!)]
#[derive(Eq)]
pub struct GetFileParams {
Expand Down
1 change: 1 addition & 0 deletions src/trait_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ where
request!(sendChatAction, bool);
request!(setMessageReaction, bool);
request!(getUserProfilePhotos, UserProfilePhotos);
request!(setUserEmojiStatus, bool);
request!(getFile, FileObject);
request!(banChatMember, bool);
request!(unbanChatMember, bool);
Expand Down
1 change: 1 addition & 0 deletions src/trait_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ pub trait TelegramApi {
request!(sendChatAction, bool);
request!(setMessageReaction, bool);
request!(getUserProfilePhotos, UserProfilePhotos);
request!(setUserEmojiStatus, bool);
request!(getFile, FileObject);
request!(banChatMember, bool);
request!(unbanChatMember, bool);
Expand Down

0 comments on commit e893d10

Please sign in to comment.