@@ -24,17 +24,29 @@ public class InlineQueryResultVideo extends InlineQueryResult<InlineQueryResultV
2424 private Integer video_duration ;
2525 private String description ;
2626
27+ /**
28+ * @deprecated use a constructor without messageText and inputMessageContent(new InputTextMessageContent(messageText)) instead
29+ */
30+ @ Deprecated
2731 public InlineQueryResultVideo (String id , String videoUrl , String mimeType , String messageText , String thumbUrl , String title ) {
2832 this (id , videoUrl , mimeType , new InputTextMessageContent (messageText ), thumbUrl , title );
2933 }
3034
35+ /**
36+ * @deprecated use a constructor without inputMessageContent and inputMessageContent(inputMessageContent) instead
37+ */
38+ @ Deprecated
3139 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 ) {
3245 super ("video" , id );
3346 this .video_url = videoUrl ;
3447 this .mime_type = mimeType ;
3548 this .thumbnail_url = thumbnailUrl ;
3649 this .title = title ;
37- inputMessageContent (inputMessageContent );
3850 }
3951
4052 public InlineQueryResultVideo caption (String caption ) {
0 commit comments