Add the missing method caption_entities to InputMediaPhoto

This commit is contained in:
Sprite 2021-11-28 02:21:46 +08:00
parent b01655044f
commit 0724964682

View file

@ -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.