Skip to main content

ronami_core/payloads/
convert_gift_to_stars.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::BusinessConnectionId;
6use crate::types::OwnedGiftId;
7use crate::types::True;
8
9impl_payload! {
10    /// Converts a given regular gift to Telegram Stars. Requires the _can_convert_gifts_to_stars_ business bot right. Returns _true_ on success.
11    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12    pub ConvertGiftToStars (ConvertGiftToStarsSetters) => True {
13        required {
14            /// Unique identifier of the business connection
15            pub business_connection_id: BusinessConnectionId,
16            /// Unique identifier of the regular gift that should be converted to Telegram Stars
17            pub owned_gift_id: OwnedGiftId,
18        }
19    }
20}