summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-11-05 02:42:29 +0800
committerMistivia <i@mistivia.com>2025-11-05 02:42:29 +0800
commitf445ac53f6bb7ec4ceebecdb47dc89e88aaf926a (patch)
tree34ddb769881494111f19a381b2b4177c5e84f891
parenteda49be9b8fdd8d9e9a5e3b32fc35ca636cd34b3 (diff)
fix bug
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index 4341137..1b05245 100644
--- a/main.py
+++ b/main.py
@@ -79,7 +79,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