File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
teco_tools_bot/src/handlers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1088,8 +1088,8 @@ async fn pickaudio(tp: TaskParams<'_>) -> Ret {
1088
1088
let media = tp. message . get_media_info ( ) ;
1089
1089
let file = match media {
1090
1090
Some ( media) => {
1091
- if !media. is_sound {
1092
- goodbye_cancel ! ( "only audio files can be tagged." ) ;
1091
+ if !media. is_sound && !media . is_video {
1092
+ goodbye_cancel ! ( "only audio or video files can be tagged." ) ;
1093
1093
}
1094
1094
check_too_large ! ( media. file) ;
1095
1095
media. file
@@ -1100,7 +1100,7 @@ async fn pickaudio(tp: TaskParams<'_>) -> Ret {
1100
1100
. document ( )
1101
1101
. or_else ( || tp. message . reply_to_message ( ) . and_then ( |x| x. document ( ) ) )
1102
1102
else {
1103
- goodbye_cancel ! ( "only audio files can be tagged." ) ;
1103
+ goodbye_cancel ! ( "only audio or video files can be tagged." ) ;
1104
1104
} ;
1105
1105
check_too_large ! ( document. file) ;
1106
1106
& document. file
You can’t perform that action at this time.
0 commit comments