diff --git a/src/types/message_entity.rs b/src/types/message_entity.rs index fbd57216..872a1cb7 100644 --- a/src/types/message_entity.rs +++ b/src/types/message_entity.rs @@ -65,13 +65,6 @@ pub enum MessageEntityKind { Strikethrough, } -impl MessageEntity { - pub fn text_from(&self, message: &Message) -> Option { - let text = message.text(); - Some(String::from(&text?[self.offset..self.offset + self.length])) - } -} - #[cfg(test)] mod tests { use super::*;