replyPhoto method

Future<Message> replyPhoto(
  1. dynamic photo, {
  2. bool withQuote = false,
  3. String? caption,
  4. String? parseMode,
  5. List<MessageEntity>? captionEntities,
  6. bool? hasSpoiler,
  7. bool? disableNotification,
  8. bool? allowSendingWithoutReply,
  9. ReplyMarkup? replyMarkup,
})

Reply to the recieved message with an image

A wrapper around TeleDart.replyPhoto. On success, returns the sent Message.

Apart from a photo to reply with, it can also take some options that control the message appearance and behavior.

Check Telegram API documentation for more information about those options.

Implementation

Future<Message> replyPhoto(
  dynamic photo, {
  bool withQuote = false,
  String? caption,
  String? parseMode,
  List<MessageEntity>? captionEntities,
  bool? hasSpoiler,
  bool? disableNotification,
  bool? allowSendingWithoutReply,
  ReplyMarkup? replyMarkup,
}) =>
    _teledart.sendPhoto(chat.id, photo,
        messageThreadId: messageThreadId,
        caption: caption,
        parseMode: parseMode,
        captionEntities: captionEntities,
        hasSpoiler: hasSpoiler,
        disableNotification: disableNotification,
        replyToMessageId: withQuote ? messageId : null,
        allowSendingWithoutReply: allowSendingWithoutReply,
        replyMarkup: replyMarkup);