Skip to content

Commit 479f3e8

Browse files
committed
FIX: (hopefully) fix bug with message being None
1 parent a16756b commit 479f3e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def send_mp_message(chat_id, text, message_id=None, parse_mode=None, reply_marku
9595

9696

9797
def game_commands(bot, update):
98-
text = update.message.text
99-
chat_id = update.message.chat_id
98+
text = update.effective_message.text
99+
chat_id = update.effective_message.chat_id
100100
user = update.effective_user
101101
user_id = user.id
102102
first_name = user.first_name

0 commit comments

Comments
 (0)