File tree Expand file tree Collapse file tree
pyrogram/client/methods/users Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818
1919from pyrogram .api import functions , types
20- from ...ext import BaseClient
20+ from ...ext import BaseClient , utils
2121
2222
2323class GetMe (BaseClient ):
2424 def get_me (self ):
25- """A simple method for testing the user authorization. Requires no parameters.
25+ """A simple method for testing your authorization. Requires no parameters.
2626
2727 Returns:
28- Full information about the user in form of a :obj:`UserFull <pyrogram.api.types.UserFull> ` object.
28+ Basic information about the user or bot in form of a :obj:`User ` object
2929
3030 Raises:
3131 :class:`Error <pyrogram.Error>`
3232 """
33- return self .send (
34- functions .users .GetFullUser (
35- types .InputPeerSelf ()
36- )
33+ return utils .parse_user (
34+ self .send (
35+ functions .users .GetFullUser (
36+ types .InputPeerSelf ()
37+ )
38+ ).user
3739 )
You can’t perform that action at this time.
0 commit comments