Class InlineQueryResultContact
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.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.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultContact()
InlineQueryResultContact(String phoneNumber, String firstName)
InlineQueryResultContact(String phoneNumber, String firstName, String lastName, String thumbUrl, Integer thumbWidth, Integer thumbHeight, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultContact
public InlineQueryResultContact()
-
InlineQueryResultContact
public InlineQueryResultContact(String phoneNumber, String firstName)
- Parameters:
phoneNumber
- Contact's phone numberfirstName
- 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 numberfirstName
- Contact's first namelastName
- Optional. Contact's last namethumbUrl
- Optional. URL of the thumbnail (jpeg only) for the filethumbWidth
- Optional. Thumbnail widththumbHeight
- Optional. Thumbnail heightreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-