Skip to content

Commit b356d58

Browse files
committed
FIX: When using the inline start button message is none
When using the effective message, this bug can be prevented.
1 parent 9bded54 commit b356d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def start_cmd(bot, update):
203203
if game.players[0].user_id == user_id:
204204
game.start_game()
205205
else:
206-
update.message.reply_text("Only the creator can start the game")
206+
message.reply_text("Only the creator ({}) can start the game".format(game.players[0].first_name))
207207

208208

209209
def stop_cmd(bot, update):

0 commit comments

Comments
 (0)