randydev commited on
Commit
17cc00b
·
verified ·
1 Parent(s): ad1070b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -45,7 +45,7 @@ def has_code_entity(message):
45
 
46
  @bot.on_callback_query(filters.regex(r"^unwarn_(\d+)$"))
47
  async def unwarn_button(client, callback_query):
48
- user_id = int(callback_query.match.group(1))
49
  chat_id = callback_query.message.chat.id
50
  from_user = callback_query.from_user
51
  try:
 
45
 
46
  @bot.on_callback_query(filters.regex(r"^unwarn_(\d+)$"))
47
  async def unwarn_button(client, callback_query):
48
+ user_id = int(callback_query.matches[0].group(1))
49
  chat_id = callback_query.message.chat.id
50
  from_user = callback_query.from_user
51
  try: