ferrisgram 0.2.1

An elegent rust client for the Telegram Bot API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// WARNING: THIS CODE IS AUTOGENERATED.
// DO NOT EDIT!!!

use crate::types::{ReactionTypeCustomEmoji, ReactionTypeEmoji};
use serde::{Deserialize, Serialize};

/// This object describes the type of a reaction. Currently, it can be one of
/// - ReactionTypeEmoji
/// - ReactionTypeCustomEmoji
/// <https://core.telegram.org/bots/api#reactiontype>
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(tag = "type")]
pub enum ReactionType {
    #[serde(rename = "emoji")]
    ReactionTypeEmoji(ReactionTypeEmoji),
    #[serde(rename = "custom_emoji")]
    ReactionTypeCustomEmoji(ReactionTypeCustomEmoji),
}