Skip to content

Commit bc6fb99

Browse files
committed
TASK: Rename cancel function
1 parent 0e6168d commit bc6fb99

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
@@ -186,7 +186,7 @@ def comment_cmd(bot, update):
186186
user.set_state(UserState.COMMENTING)
187187

188188

189-
def cancel(bot, update):
189+
def cancel_cmd(bot, update):
190190
user_id = update.effective_user.id
191191
message_id = update.effective_message.message_id
192192
callback_query_id = update.callback_query.id
@@ -258,7 +258,7 @@ def callback_eval(bot, update):
258258
language_cmd(bot, update)
259259

260260
elif query_data == "cancel_comment":
261-
cancel(bot, update)
261+
cancel_cmd(bot, update)
262262

263263

264264
def send_message(chat_id, text, message_id=None, parse_mode=None, reply_markup=None, game_id=None):

0 commit comments

Comments
 (0)