mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 11:10:18 +03:00
Update users.rst
This commit is contained in:
parent
e00496aa63
commit
8a3326b5d6
|
@ -69,6 +69,5 @@ through :tl:`UploadProfilePhoto`:
|
||||||
|
|
||||||
from telethon.tl.functions.photos import UploadProfilePhotoRequest
|
from telethon.tl.functions.photos import UploadProfilePhotoRequest
|
||||||
|
|
||||||
await client(UploadProfilePhotoRequest(
|
await client(UploadProfilePhotoRequest(await client.upload_file("/path/to/some/file")))
|
||||||
await client.upload_file('/path/to/some/file')
|
|
||||||
)))
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user