telegram_bots_api 0.710.0

Telegram bots api simple rust wrapper, and no more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::api::structs::chat_boost_source_gift_code::ChatBoostSourceGiftCode;
use crate::api::structs::chat_boost_source_giveaway::ChatBoostSourceGiveaway;
use crate::api::structs::chat_boost_source_premium::ChatBoostSourcePremium;
use serde::{Deserialize, Serialize};

/// <https://core.telegram.org/bots/api#chatboostsource>
/// This object describes the source of a chat boost. It can be one of
/// ChatBoostSourcePremium
/// ChatBoostSourceGiftCode
/// ChatBoostSourceGiveaway
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub enum ChatBoostSource {
    Premium(ChatBoostSourcePremium),
    GiftCode(ChatBoostSourceGiftCode),
    Giveaway(ChatBoostSourceGiveaway),
}