teloxide_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, OwnedGiftId, True};
6
7impl_payload! {
8 /// Converts a given regular gift to Telegram Stars. Requires the _can_convert_gifts_to_stars_ business bot right. Returns _true_ on success.
9 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10 pub ConvertGiftToStars (ConvertGiftToStarsSetters) => True {
11 required {
12 /// Unique identifier of the business connection
13 pub business_connection_id: BusinessConnectionId,
14 /// Unique identifier of the regular gift that should be converted to Telegram Stars
15 pub owned_gift_id: OwnedGiftId,
16 }
17 }
18}