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:
commit
888c7a6b0d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user