mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-31 20:54:51 +00:00
Print account name when logging in the first time
This commit is contained in:
parent
afb3f55d33
commit
70470360b1
1 changed files with 3 additions and 1 deletions
|
|
@ -437,6 +437,8 @@ class Client(Methods, BaseClient):
|
|||
else:
|
||||
self.user_id = r.user.id
|
||||
|
||||
print("Logged in successfully as @{}".format(r.user.username))
|
||||
|
||||
def authorize_user(self):
|
||||
phone_number_invalid_raises = self.phone_number is not None
|
||||
phone_code_invalid_raises = self.phone_code is not None
|
||||
|
|
@ -621,7 +623,7 @@ class Client(Methods, BaseClient):
|
|||
self.password = None
|
||||
self.user_id = r.user.id
|
||||
|
||||
print("Login successful")
|
||||
print("Logged in successfully as {}".format(r.user.first_name))
|
||||
|
||||
def fetch_peers(self, entities: list):
|
||||
for entity in entities:
|
||||
|
|
|
|||
Loading…
Reference in a new issue