tbot 0.2.0

Make cool Telegram bots with Rust easily.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::types::{message::Text, Document};

edited_message! {
    struct EditedDocument {
        /// The document.
        document: Document,
        /// The caption of the document.
        caption: Text,
    } -> EventLoop::edited_document

    fn new(caption: Text,) -> Self {
        Self {
            caption: caption,
        }
    }
}