mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-02 07:15:23 +00:00
Add a FAQ about DC migration
This commit is contained in:
@@ -28,9 +28,9 @@ class GetUserDC(BaseClient):
|
||||
|
||||
.. note::
|
||||
|
||||
This information is approximate: it is based on where the user stores their profile pictures and does not by
|
||||
any means tell you the user location. More info at
|
||||
`FAQs <../faq#what-are-the-ip-addresses-of-telegram-data-centers>`_.
|
||||
This information is approximate: it is based on where Telegram stores a user profile pictures and does not
|
||||
by any means tell you the user location (i.e. a user might travel far away, but will still connect to its
|
||||
assigned DC). More info at `FAQs <../faq#what-are-the-ip-addresses-of-telegram-data-centers>`_.
|
||||
|
||||
Parameters:
|
||||
user_id (``int`` | ``str``):
|
||||
@@ -39,7 +39,8 @@ class GetUserDC(BaseClient):
|
||||
For a contact that exists in your Telegram address book you can use his phone number (str).
|
||||
|
||||
Returns:
|
||||
``int`` | ``None``: The DC identifier as integer, or None in case it wasn't possible to get it.
|
||||
``int`` | ``None``: The DC identifier as integer, or None in case it wasn't possible to get it (i.e. the
|
||||
user has no profile picture or has the privacy setting enabled).
|
||||
|
||||
Raises:
|
||||
RPCError: In case of a Telegram RPC error.
|
||||
|
Reference in New Issue
Block a user