mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Add the missing method caption_entities
to InputMediaPhoto
This commit is contained in:
parent
b01655044f
commit
0724964682
1 changed files with 8 additions and 0 deletions
|
@ -68,6 +68,14 @@ impl InputMediaPhoto {
|
|||
self.parse_mode = Some(val);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn caption_entities<C>(mut self, val: C) -> Self
|
||||
where
|
||||
C: IntoIterator<Item = MessageEntity>,
|
||||
{
|
||||
self.caption_entities = Some(val.into_iter().collect());
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
/// Represents a video to be sent.
|
||||
|
|
Loading…
Add table
Reference in a new issue