@@ -24,17 +24,29 @@ public class InlineQueryResultVideo extends InlineQueryResult<InlineQueryResultV
24
24
private Integer video_duration ;
25
25
private String description ;
26
26
27
+ /**
28
+ * @deprecated use a constructor without messageText and inputMessageContent(new InputTextMessageContent(messageText)) instead
29
+ */
30
+ @ Deprecated
27
31
public InlineQueryResultVideo (String id , String videoUrl , String mimeType , String messageText , String thumbUrl , String title ) {
28
32
this (id , videoUrl , mimeType , new InputTextMessageContent (messageText ), thumbUrl , title );
29
33
}
30
34
35
+ /**
36
+ * @deprecated use a constructor without inputMessageContent and inputMessageContent(inputMessageContent) instead
37
+ */
38
+ @ Deprecated
31
39
public InlineQueryResultVideo (String id , String videoUrl , String mimeType , InputMessageContent inputMessageContent , String thumbnailUrl , String title ) {
40
+ this (id , videoUrl , mimeType , thumbnailUrl , title );
41
+ inputMessageContent (inputMessageContent );
42
+ }
43
+
44
+ public InlineQueryResultVideo (String id , String videoUrl , String mimeType , String thumbnailUrl , String title ) {
32
45
super ("video" , id );
33
46
this .video_url = videoUrl ;
34
47
this .mime_type = mimeType ;
35
48
this .thumbnail_url = thumbnailUrl ;
36
49
this .title = title ;
37
- inputMessageContent (inputMessageContent );
38
50
}
39
51
40
52
public InlineQueryResultVideo caption (String caption ) {
0 commit comments