mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
make method text_from public
This commit is contained in:
parent
5cb48d8a3f
commit
814a424caa
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue