Class InlineQueryResultContact


  • public class InlineQueryResultContact
    extends InlineQueryResult
    Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.
    • Constructor Detail

      • InlineQueryResultContact

        public InlineQueryResultContact()
      • InlineQueryResultContact

        public InlineQueryResultContact​(String phoneNumber,
                                        String firstName)
        Parameters:
        phoneNumber - Contact's phone number
        firstName - Contact's first name
      • InlineQueryResultContact

        public InlineQueryResultContact​(String phoneNumber,
                                        String firstName,
                                        String lastName,
                                        String thumbUrl,
                                        Integer thumbWidth,
                                        Integer thumbHeight,
                                        InlineKeyboardMarkup replyMarkup,
                                        InputMessageContent inputMessageContent)
        Parameters:
        phoneNumber - Contact's phone number
        firstName - Contact's first name
        lastName - Optional. Contact's last name
        thumbUrl - Optional. URL of the thumbnail (jpeg only) for the file
        thumbWidth - Optional. Thumbnail width
        thumbHeight - Optional. Thumbnail height
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message