conogram 0.2.19

An async wrapper for Telegram Bot API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::Serialize;

use crate::entities::misc::input_file::{GetFiles, InputFile};

/// The paid media to send is a photo.
///
/// API Reference: [link](https://core.telegram.org/bots/api/#inputpaidmediaphoto)
#[derive(Debug, Clone, Default, PartialEq, Serialize)]
pub struct InputPaidMediaPhoto {
    /// File to send. Pass a file\_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://\<file\_attach\_name\>” to upload a new one using multipart/form-data under \<file\_attach\_name\> name. [More information on Sending Files »](https://core.telegram.org/bots/api/#sending-files)
    pub media: InputFile,
}

impl GetFiles for InputPaidMediaPhoto {
    fn get_files(&self) -> Vec<&InputFile> {
        vec![&self.media]
    }
} // Divider: all content below this line will be preserved after code regen