mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +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
@ -20,8 +20,8 @@ from pyrogram.api import functions
|
||||
from ...ext import BaseClient
|
||||
|
||||
|
||||
class SetUserProfilePhoto(BaseClient):
|
||||
def set_user_profile_photo(
|
||||
class SetPhoto(BaseClient):
|
||||
def set_photo(
|
||||
self,
|
||||
photo: str
|
||||
) -> bool:
|
Loading…
x
Reference in New Issue
Block a user