mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
InputFile
This commit is contained in:
parent
57a4a60406
commit
a311458454
1 changed files with 8 additions and 0 deletions
8
src/core/types/input_file.rs
Normal file
8
src/core/types/input_file.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
use serde::Deserialize;
|
||||
|
||||
#[derive(Debug, Deserialize, Hash, PartialEq, Eq)]
|
||||
pub enum InputFile {
|
||||
File(std::fs::File),
|
||||
Url(String),
|
||||
FileId(String),
|
||||
}
|
Loading…
Reference in a new issue