make method text_from public

This commit is contained in:
p0lunin 2020-01-13 13:07:19 +02:00 committed by GitHub
parent 5cb48d8a3f
commit 814a424caa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ pub enum MessageEntityKind {
}
impl MessageEntity {
fn text_from(&self, message: Message) -> Option<String> {
pub fn text_from(&self, message: Message) -> Option<String> {
let text= message.text();
match text {
Some(text) => {