teloxide-fork-core 0.15.0

Core part of the `teloxide` library - telegram bot API client
Documentation
//! Generated by `codegen_payloads`, do not edit by hand.

use serde::Serialize;

use crate::types::{BusinessConnectionId, OwnedGiftId, True};

impl_payload! {
    /// Deletes a regular gift owned by a managed business account without receiving Telegram Stars for it. Requires the *can_convert_gifts_to_stars* business bot right. The gift can be deleted only if it isn't limited (the field *total_count* of the [`Gift`] is omitted) and wasn't refunded. Returns *True* on success.
    ///
    /// [`Gift`]: crate::types::Gift
    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
    pub DeleteBusinessAccountGift (DeleteBusinessAccountGiftSetters) => True {
        required {
            /// Unique identifier of the business connection
            pub business_connection_id: BusinessConnectionId,
            /// Unique identifier of the regular gift that should be deleted
            pub owned_gift_id: OwnedGiftId,
        }
    }
}