Class Contact
Represents a phone contact
Inheritance
System.Object
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
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class Contact
Properties
| Improve this Doc View SourceFirstName
Contact's first name
Declaration
[JsonProperty(PropertyName = "first_name")]
public string FirstName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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")]
public string PhoneNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UserId
Optional. Contact's user id on Telegram
Declaration
[JsonProperty(PropertyName = "user_id")]
public int UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
VCard
Optional. Additional data about the contact in the form of a vCard
Declaration
[JsonProperty(PropertyName = "vcard")]
public string VCard { get; set; }
Property Value
Type | Description |
---|---|
System.String |