InputPhoneContact
- class pyrogram.raw.types.InputPhoneContact
Phone contact.
Constructor of
InputContact.- Details:
Layer:
223ID:
6A1DC4BE
- Parameters:
client_id (
int64-bit) – An arbitrary 64-bit integer: it should be set, for example, to an incremental number when using contacts.importContacts, in order to retry importing only the contacts that weren’t imported successfully, according to the client_ids returned in contacts.importedContacts.retry_contacts.phone (
str) – Phone numberfirst_name (
str) – Contact’s first namelast_name (
str) – Contact’s last namenote (
TextWithEntities, optional)
TL Schema
inputPhoneContact#6a1dc4be
flags:#
client_id:long
phone:string
first_name:string
last_name:string
note:flags.0?TextWithEntities
= InputContact
Parameter Tree
InputPhoneContact
├── client_id →
long├── phone →
string├── first_name →
string├── last_name →
string└── note →
TextWithEntities (optional)└──
TextWithEntities├── text →
string└── entities →
Vector < MessageEntity >│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int├──
MessageEntityUrl│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int├──
MessageEntityPre│ ├── offset →
int│ ├── length →
int│ └── language →
string│ ├── offset →
int│ ├── length →
int│ └── url →
string│ ├── offset →
int│ ├── length →
int│ └── user_id →
long│ ├── offset →
int│ ├── length →
int│ └── user_id →
InputUser│ ├──
InputUserEmpty│ ├──
InputUserSelf│ ├──
InputUser│ └──
InputUserFromMessage│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ └── length →
int│ ├── offset →
int│ ├── length →
int│ └── document_id →
long│ ├── collapsed →
true (optional)│ ├── offset →
int│ └── length →
int├── relative →
true (optional)├── short_time →
true (optional)├── long_time →
true (optional)├── short_date →
true (optional)├── long_date →
true (optional)├── day_of_week →
true (optional)├── offset →
int├── length →
int└── date →
intExample
InputPhoneContact(
client_id=0,
phone="+1234567890",
first_name="text",
last_name="text",
)