A phone contact

Constructors

Properties

type: "contact" = ...

Accessors

  • get firstName(): string
  • Contact's first name

    Returns string

  • get inputMedia(): TypeInputMedia
  • Input media TL object generated from this object, to be used inside InputMediaLike and TelegramClient.sendMedia

    Returns TypeInputMedia

  • get lastName(): string
  • Contact's last name

    Returns string

  • get phoneNumber(): string
  • Contact's phone number

    Returns string

  • get userId(): number
  • Contact's user ID in Telegram or 0 if not available

    Returns number