1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #1126 from David256/feature-new-property-fullname

Change fstrings to string formatting
This commit is contained in:
Badiboy 2021-04-02 01:41:48 +03:00 committed by GitHub
commit 888c7a6b0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ class User(JsonDeserializable, Dictionaryable, JsonSerializable):
def full_name(self):
full_name = self.first_name
if self.last_name:
full_name += f' {self.last_name}'
full_name += ' {0}'.format(self.last_name)
return full_name
def to_json(self):