replyPhoto method

Future<Message> replyPhoto({
  1. required Luggage photo,
  2. bool quoteMessage = true,
  3. String? caption,
  4. ParseMode? parseMode,
  5. bool? disableNotification,
  6. ReplyMarkup? replyMarkup,
})

Helps replying with a photo directly.

Implementation

Future<Message> replyPhoto({
  required Luggage photo,
  bool quoteMessage = true,
  String? caption,
  ParseMode? parseMode,
  bool? disableNotification,
  ReplyMarkup? replyMarkup,
}) {
  return _api.sendPhoto(
    chatID: ChatID.fromID(chat?.id ?? 0),
    photo: photo,
    caption: caption,
    parseMode: parseMode,
    disableNotification: disableNotification,
    replyToMessageID: quoteMessage ? messageID : null,
    replyMarkup: replyMarkup,
  );
}