Spaces:
Running
Running
Update main.py
Browse files
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.
|
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:
|