Class InlineQueryResultCachedPhoto


  • public class InlineQueryResultCachedPhoto
    extends InlineQueryResult
    Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with optional caption. Alternatively, you can provide message_text to send it instead of photo.
    • Constructor Detail

      • InlineQueryResultCachedPhoto

        public InlineQueryResultCachedPhoto()
      • InlineQueryResultCachedPhoto

        public InlineQueryResultCachedPhoto​(String photoFileId)
        Parameters:
        photoFileId - A valid file identifier of the photo
      • InlineQueryResultCachedPhoto

        public InlineQueryResultCachedPhoto​(String photoFileId,
                                            String title,
                                            String description,
                                            String caption,
                                            InlineKeyboardMarkup replyMarkup,
                                            InputMessageContent inputMessageContent)
        Parameters:
        photoFileId - A valid file identifier of the photo
        title - Optional. Title for the result
        description - Optional. Short description of the result
        caption - Optional. Caption of the photo to be sent, 0-200 characters
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message