replyWithVideo method
Future<Message>
replyWithVideo(
- InputFile video, {
- int? messageThreadId,
- int? duration,
- int? width,
- int? height,
- InputFile? thumbnail,
- String? caption,
- ParseMode? parseMode,
- List<
MessageEntity> ? captionEntities, - bool? hasSpoiler,
- bool? supportsStreaming,
- bool? disableNotification,
- bool? protectContent,
- ReplyMarkup? replyMarkup,
- ReplyParameters? replyParameters,
- String? businessConnectionId,
- String? messageEffectId,
- bool? showCaptionAboveMedia,
- bool? allowPaidBroadcast,
- InputFile? cover,
- int? startTimestamp,
- int? directMessagesTopicId,
- SuggestedPostParameters? suggestedPostParameters,
Sends a video to the current chat.
Example:
final video = InputFile.fromFile(File('demo.mp4'));
await ctx.replyWithVideo(video, caption: 'Check this out!');
Implementation
Future<Message> replyWithVideo(
InputFile video, {
int? messageThreadId,
int? duration,
int? width,
int? height,
InputFile? thumbnail,
String? caption,
ParseMode? parseMode,
List<MessageEntity>? captionEntities,
bool? hasSpoiler,
bool? supportsStreaming,
bool? disableNotification,
bool? protectContent,
ReplyMarkup? replyMarkup,
ReplyParameters? replyParameters,
String? businessConnectionId,
String? messageEffectId,
bool? showCaptionAboveMedia,
bool? allowPaidBroadcast,
InputFile? cover,
int? startTimestamp,
int? directMessagesTopicId,
SuggestedPostParameters? suggestedPostParameters,
}) async {
final chatId = _getChatId();
_verifyInfo([chatId], APIMethod.sendVideo);
return api.sendVideo(
chatId!,
video,
messageThreadId: _threadId(messageThreadId),
duration: duration,
width: width,
height: height,
thumbnail: thumbnail,
caption: caption,
parseMode: parseMode,
captionEntities: captionEntities,
hasSpoiler: hasSpoiler,
supportsStreaming: supportsStreaming,
disableNotification: disableNotification,
protectContent: protectContent,
replyMarkup: replyMarkup,
replyParameters: replyParameters,
businessConnectionId: _businessConnectionId(businessConnectionId),
messageEffectId: messageEffectId,
showCaptionAboveMedia: showCaptionAboveMedia,
allowPaidBroadcast: allowPaidBroadcast,
cover: cover,
startTimestamp: startTimestamp,
directMessagesTopicId: directMessagesTopicId,
suggestedPostParameters: suggestedPostParameters,
);
}