contacts.GetContactIDs

class pyrogram.raw.functions.contacts.GetContactIDs

Get the telegram IDs of all contacts. Returns an array of Telegram user IDs for all contacts (0 if a contact does not have an associated Telegram account or have hidden their account using privacy settings).

Details:
  • Layer: 223

  • ID: 7ADC669D

Parameters:
hash (int 64-bit):

Hash used for caching, for more info click here

Returns:

List of int 32-bit

TL Schema

contacts.getContactIDs#7adc669d
hash:long

= Vector<int>

Parameter Tree

GetContactIDs
└── hashlong

Example

await app.invoke(
    GetContactIDs(
        hash=0,
    )
)