Skip to content

Commit 3fedae8

Browse files
committed
Update faq.rst
1 parent f8f2ad5 commit 3fedae8

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/source/faq.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ dismissed and their IP addresses are now kept as aliases to the nearest one.
192192

193193
Thanks to `@FrayxRulez <https://t.me/tgbetachat/104921>`_ for telling about alias DCs.
194194

195-
196195
I want to migrate my account from DCX to DCY.
197196
---------------------------------------------
198197

@@ -246,9 +245,13 @@ The error in question is ``[400 PEER_ID_INVALID]``, and could mean several thing
246245

247246
- The chat id you tried to use is simply wrong, double check it.
248247
- The chat id refers to a group or channel you are not a member of.
249-
- The chat id refers to a user you have't seen yet (from contacts, groups in common, forwarded messages or private
250-
chats).
251248
- The chat id argument you passed is in form of a string; you have to convert it into an integer with ``int(chat_id)``.
249+
- The chat id refers to a user your current session haven't met yet.
250+
251+
About the last point: in order for you to meet a user and thus communicate with them, you should ask yourself how to
252+
contact people using official apps. The answer is the same for Pyrogram too and involves normal usages such as searching
253+
for usernames, meet them in a common group, have their phone contacts saved, getting a message mentioning them (either a
254+
forward or a mention in the message text).
252255

253256
UnicodeEncodeError: '<encoding>' codec can't encode …
254257
-----------------------------------------------------
@@ -258,6 +261,14 @@ shows up when you try to print something and has very little to do with Pyrogram
258261
your own terminal. To fix it, either find a way to change the encoding settings of your terminal to UTF-8 or switch to a
259262
better terminal altogether.
260263

264+
Uploading with URLs gives error WEBPAGE_CURL_FAILED
265+
---------------------------------------------------
266+
267+
When uploading media files using an URL, the server automatically tries to download the media and uploads it to the
268+
Telegram cloud. This error usually happens in case the provided URL is not publicly accessible by Telegram itself or the
269+
media exceeds 20 MB in size. In such cases, your only option is to download the media yourself and upload from your
270+
local machine.
271+
261272
My verification code expires immediately!
262273
-----------------------------------------
263274

0 commit comments

Comments
 (0)