Class InlineQueryResultContact
Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types.Inline
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class InlineQueryResultContact : InlineQueryResult
Properties
| Improve this Doc View SourceFirstName
Contact's first name
Declaration
[JsonProperty(PropertyName = "first_name", Required = Required.Always)]
public string FirstName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
Unique identifier for this result, 1-64 Bytes
Declaration
[JsonProperty(PropertyName = "id", Required = Required.Always)]
public override string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceInputMessageContent
Content of the message to be sent instead of the contact
Declaration
[JsonProperty(PropertyName = "input_message_content", Required = Required.Always)]
public InputMessageContent InputMessageContent { get; set; }
Property Value
Type | Description |
---|---|
InputMessageContent |
LastName
Optional. Contact's last name
Declaration
[JsonProperty(PropertyName = "last_name")]
public string LastName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PhoneNumber
Contact's phone number
Declaration
[JsonProperty(PropertyName = "phone_number", Required = Required.Always)]
public string PhoneNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ReplyMarkup
Optional. Inline keyboard attached to the message
Declaration
[JsonProperty(PropertyName = "reply_markup")]
public InlineKeyboardMarkup ReplyMarkup { get; set; }
Property Value
Type | Description |
---|---|
InlineKeyboardMarkup |
ThumbHeight
Optional. Thumbnail height
Declaration
[JsonProperty(PropertyName = "thumb_height")]
public int ThumbHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ThumbUrl
Optional. Url of the thumbnail for the result
Declaration
[JsonProperty(PropertyName = "thumb_url", Required = Required.Always)]
public string ThumbUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ThumbWidth
Optional. Thumbnail width
Declaration
[JsonProperty(PropertyName = "thumb_width")]
public int ThumbWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Type
Type of the result, must be contact
Declaration
[JsonProperty(PropertyName = "type", Required = Required.Always)]
public override string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceVCard
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
Declaration
[JsonProperty(PropertyName = "vcard")]
public string VCard { get; set; }
Property Value
Type | Description |
---|---|
System.String |