Skip to content

Commit 9de5f15

Browse files
committed
TASK: Optimize cancel_cmd to fit new ptb version
1 parent 05ee0d0 commit 9de5f15

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,7 @@ def comment_cmd(update, context):
338338

339339
def cancel_cmd(update, context):
340340
user_id = update.effective_user.id
341-
message_id = update.effective_message.message_id
342-
callback_query_id = update.callback_query.id
343-
chat_id = update.effective_chat.id
341+
cbq = update.callback_query
344342

345343
state_handler = StateHandler.get_instance()
346344
user = state_handler.get_user(user_id)

0 commit comments

Comments
 (0)