1
2
3
4
5
6
7
8
9
10
11
use super::Message;
use crate::{methods::CopyMessage, types::parameters::ImplicitChatId};

/// Provides methods for copyable messages.
pub trait Copyable: Message {
    /// Copies this message to another chat.
    fn copy_to(&self, chat_id: impl ImplicitChatId) -> CopyMessage<'_> {
        self.bot()
            .copy_message(chat_id, self.chat().id, self.message_id())
    }
}