Mark InputMediaPhoto ads #[non_exhaustive]

This commit is contained in:
Temirkhan Myrzamadi 2020-07-27 22:01:21 +06:00
parent 9e547766ad
commit dbfd51c0fc

View file

@ -22,6 +22,7 @@ pub enum InputMedia {
/// [The official docs](https://core.telegram.org/bots/api#inputmediaphoto). /// [The official docs](https://core.telegram.org/bots/api#inputmediaphoto).
#[serde_with_macros::skip_serializing_none] #[serde_with_macros::skip_serializing_none]
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] #[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct InputMediaPhoto { pub struct InputMediaPhoto {
/// File to send. /// File to send.
pub media: InputFile, pub media: InputFile,