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
use crate::api::structs::inaccessible_message::InaccessibleMessage;
use crate::api::structs::message::Message;
use serde::{Deserialize, Serialize};

/// <https://core.telegram.org/bots/api#maybeinaccessiblemessage>
/// This object describes a message that can be inaccessible to the bot. It can be one of
/// Message
/// InaccessibleMessage
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub enum MaybeInaccessibleMessage {
    Message(Box<Message>),
    InaccessibleMessage(InaccessibleMessage),
}