diff options
| author | mistivia <i@mistivia.com> | 2025-10-28 18:00:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-28 18:00:31 +0800 |
| commit | b8ed7e512d8d226e35aaa1419ddd44e73b23bf4e (patch) | |
| tree | 7ea07c692ca75af51c2a0de7650a15ea11045204 /main.py | |
| parent | 200f7dbd0c9eb98d6621634a4c597b732c2f1d55 (diff) | |
Update main.py
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -77,7 +77,7 @@ def get_sender(msg): user = msg.from_user if user.username is not None: return user.username - if user.last_name is None: + if user.last_name is not None: return user.first_name + ' ' + user.last_name return user.first_name @@ -108,4 +108,4 @@ if __name__ == "__main__": try: asyncio.run(main()) except KeyboardInterrupt: - print("Bot shutting down.")
\ No newline at end of file + print("Bot shutting down.") |
