tbot 0.2.2

Make cool Telegram bots with Rust easily.
Documentation
1
2
3
4
5
6
7
8
9
10
use super::*;

/// Provides methods for pinnable messages.
pub trait Pinnable<'a, C: 'static>: ChatMethods<'a, C> {
    /// Pins this message.
    fn pin_this_message(&'a self) -> PinChatMessage<'a, C> {
        self.bot()
            .pin_chat_message(self.chat_id(), self.message_id())
    }
}