mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24:51 +00:00
Rename set_user_profile_photo to set_photo
Users can only set a photo for themselves.
This commit is contained in:
parent
83cd828386
commit
86a4f63d37
1 changed files with 2 additions and 2 deletions
|
|
@ -20,8 +20,8 @@ from pyrogram.api import functions
|
||||||
from ...ext import BaseClient
|
from ...ext import BaseClient
|
||||||
|
|
||||||
|
|
||||||
class SetUserProfilePhoto(BaseClient):
|
class SetPhoto(BaseClient):
|
||||||
def set_user_profile_photo(
|
def set_photo(
|
||||||
self,
|
self,
|
||||||
photo: str
|
photo: str
|
||||||
) -> bool:
|
) -> bool:
|
||||||
Loading…
Reference in a new issue