mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Rename set_profile_photo to set_user_profile_photo
This commit is contained in:
parent
93018a7f6c
commit
8fc5b8a545
@ -20,12 +20,12 @@ from .delete_profile_photos import DeleteProfilePhotos
|
||||
from .get_me import GetMe
|
||||
from .get_user_profile_photos import GetUserProfilePhotos
|
||||
from .get_users import GetUsers
|
||||
from .set_profile_photo import SetProfilePhoto
|
||||
from .set_user_profile_photo import SetUserProfilePhoto
|
||||
|
||||
|
||||
class Users(
|
||||
GetUserProfilePhotos,
|
||||
SetProfilePhoto,
|
||||
SetUserProfilePhoto,
|
||||
DeleteProfilePhotos,
|
||||
GetUsers,
|
||||
GetMe
|
||||
|
@ -20,11 +20,12 @@ from pyrogram.api import functions
|
||||
from ...ext import BaseClient
|
||||
|
||||
|
||||
class SetProfilePhoto(BaseClient):
|
||||
def set_profile_photo(self, photo: str):
|
||||
"""Use this method to set a new profile photo.
|
||||
class SetUserProfilePhoto(BaseClient):
|
||||
def set_user_profile_photo(self, photo: str):
|
||||
"""Use this method to set a new user profile photo.
|
||||
|
||||
This method only works for Users. Bots profile photos must be set using BotFather.
|
||||
This method only works for Users.
|
||||
Bots profile photos must be set using BotFather.
|
||||
|
||||
Args:
|
||||
photo (``str``):
|
Loading…
Reference in New Issue
Block a user