mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Bugfix: use correct functions to parse caption entities in 'parse_caption_entities'
This commit is contained in:
parent
1f495cff36
commit
70f0438c7b
1 changed files with 2 additions and 2 deletions
|
@ -1250,8 +1250,8 @@ impl Message {
|
|||
///
|
||||
/// [`parse_entities`]: Message::parse_entities
|
||||
pub fn parse_caption_entities(&self) -> Option<Vec<MessageEntityRef<'_>>> {
|
||||
self.text()
|
||||
.zip(self.entities())
|
||||
self.caption()
|
||||
.zip(self.caption_entities())
|
||||
.map(|(t, e)| MessageEntityRef::parse(t, e))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue