Show / Hide Table of Contents

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 Source

FirstName

Contact's first name

Declaration
[JsonProperty(PropertyName = "first_name")]
public string FirstName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

LastName

Optional. Contact's last name

Declaration
[JsonProperty(PropertyName = "last_name")]
public string LastName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

PhoneNumber

Contact's phone number

Declaration
[JsonProperty(PropertyName = "phone_number")]
public string PhoneNumber { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

UserId

Optional. Contact's user id on Telegram

Declaration
[JsonProperty(PropertyName = "user_id")]
public int UserId { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX