Skip to content

Commit

Permalink
editUserStarSubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Dec 1, 2024
1 parent aa32fbf commit 732aa04
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 @@ -1333,6 +1333,14 @@ pub struct RefundStarPaymentParams {
pub telegram_payment_charge_id: String,
}

#[apply(apistruct!)]
#[derive(Eq)]
pub struct EditUserStarSubscriptionParams {
pub user_id: u64,
pub telegram_payment_charge_id: String,
pub is_canceled: bool,
}

#[apply(apistruct!)]
#[derive(Eq)]
pub struct SetPassportDataErrorsParams {
Expand Down
1 change: 1 addition & 0 deletions src/trait_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ where
request!(answerPreCheckoutQuery, bool);
request!(getStarTransactions, StarTransactions);
request!(refundStarPayment, bool);
request!(editUserStarSubscription, bool);
request!(sendGame, Message);
request!(setGameScore, MessageOrBool);
request!(getGameHighScores, Vec<GameHighScore>);
Expand Down
1 change: 1 addition & 0 deletions src/trait_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ pub trait TelegramApi {
request!(answerPreCheckoutQuery, bool);
request!(getStarTransactions, StarTransactions);
request!(refundStarPayment, bool);
request!(editUserStarSubscription, bool);
request!(sendGame, Message);
request!(setGameScore, MessageOrBool);
request!(getGameHighScores, Vec<GameHighScore>);
Expand Down

0 comments on commit 732aa04

Please sign in to comment.