Add td_api::fileTypePhotoStory and td_api::fileTypeVideoStory.
This commit is contained in:
parent
7ac81f85fc
commit
2e78aea606
@ -5002,6 +5002,9 @@ fileTypeNotificationSound = FileType;
|
|||||||
//@description The file is a photo
|
//@description The file is a photo
|
||||||
fileTypePhoto = FileType;
|
fileTypePhoto = FileType;
|
||||||
|
|
||||||
|
//@description The file is a photo published as a story
|
||||||
|
fileTypePhotoStory = FileType;
|
||||||
|
|
||||||
//@description The file is a profile photo
|
//@description The file is a profile photo
|
||||||
fileTypeProfilePhoto = FileType;
|
fileTypeProfilePhoto = FileType;
|
||||||
|
|
||||||
@ -5029,6 +5032,9 @@ fileTypeVideo = FileType;
|
|||||||
//@description The file is a video note
|
//@description The file is a video note
|
||||||
fileTypeVideoNote = FileType;
|
fileTypeVideoNote = FileType;
|
||||||
|
|
||||||
|
//@description The file is a video published as a story
|
||||||
|
fileTypeVideoStory = FileType;
|
||||||
|
|
||||||
//@description The file is a voice note
|
//@description The file is a voice note
|
||||||
fileTypeVoiceNote = FileType;
|
fileTypeVoiceNote = FileType;
|
||||||
|
|
||||||
|
@ -16,10 +16,14 @@ FileType get_file_type(const td_api::FileType &file_type) {
|
|||||||
return FileType::ProfilePhoto;
|
return FileType::ProfilePhoto;
|
||||||
case td_api::fileTypePhoto::ID:
|
case td_api::fileTypePhoto::ID:
|
||||||
return FileType::Photo;
|
return FileType::Photo;
|
||||||
|
case td_api::fileTypePhotoStory::ID:
|
||||||
|
return FileType::PhotoStory;
|
||||||
case td_api::fileTypeVoiceNote::ID:
|
case td_api::fileTypeVoiceNote::ID:
|
||||||
return FileType::VoiceNote;
|
return FileType::VoiceNote;
|
||||||
case td_api::fileTypeVideo::ID:
|
case td_api::fileTypeVideo::ID:
|
||||||
return FileType::Video;
|
return FileType::Video;
|
||||||
|
case td_api::fileTypeVideoStory::ID:
|
||||||
|
return FileType::VideoStory;
|
||||||
case td_api::fileTypeDocument::ID:
|
case td_api::fileTypeDocument::ID:
|
||||||
return FileType::Document;
|
return FileType::Document;
|
||||||
case td_api::fileTypeSecret::ID:
|
case td_api::fileTypeSecret::ID:
|
||||||
@ -94,9 +98,9 @@ tl_object_ptr<td_api::FileType> get_file_type_object(FileType file_type) {
|
|||||||
case FileType::CallLog:
|
case FileType::CallLog:
|
||||||
return make_tl_object<td_api::fileTypeDocument>();
|
return make_tl_object<td_api::fileTypeDocument>();
|
||||||
case FileType::PhotoStory:
|
case FileType::PhotoStory:
|
||||||
return make_tl_object<td_api::fileTypePhoto>();
|
return make_tl_object<td_api::fileTypePhotoStory>();
|
||||||
case FileType::VideoStory:
|
case FileType::VideoStory:
|
||||||
return make_tl_object<td_api::fileTypeVideo>();
|
return make_tl_object<td_api::fileTypeVideoStory>();
|
||||||
case FileType::None:
|
case FileType::None:
|
||||||
return make_tl_object<td_api::fileTypeNone>();
|
return make_tl_object<td_api::fileTypeNone>();
|
||||||
default:
|
default:
|
||||||
@ -115,10 +119,6 @@ FileType get_main_file_type(FileType file_type) {
|
|||||||
return FileType::Document;
|
return FileType::Document;
|
||||||
case FileType::CallLog:
|
case FileType::CallLog:
|
||||||
return FileType::Document;
|
return FileType::Document;
|
||||||
case FileType::PhotoStory:
|
|
||||||
return FileType::Photo;
|
|
||||||
case FileType::VideoStory:
|
|
||||||
return FileType::Video;
|
|
||||||
default:
|
default:
|
||||||
return file_type;
|
return file_type;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user