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

/// <https://core.telegram.org/bots/api#updating-messages>
/// The following methods allow you to change an existing message in the message history instead of sending a new one with a result of an action. This is most useful for messages with inline keyboards using callback queries, but can also help reduce clutter in conversations with regular chat bots.
/// Please note, that it is currently only possible to edit messages without reply_markup or with inline keyboards.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[serde(untagged)]
pub enum MessageResult {
    Inline(bool),
    Message(Message),
}