remove mute/unmute, fix vouch callback

This commit is contained in:
2023-05-04 11:42:52 +03:00
parent 41882595b1
commit aa6975e49a
6 changed files with 46 additions and 43 deletions

View File

@@ -1,5 +1,6 @@
from tgbot.storage import scan, Profile
from tgbot.api import approve_chat_join_request, kick_member
from tgbot.handlers.callback_vouch import update_button
from tgbot.utils.mention import userdata_extract
# устанавливает соответствие данных
@@ -17,6 +18,7 @@ def handle_startup():
# принять заявку если её нажимали
r = approve_chat_join_request(chat_id, member_id)
print(r)
update_button(chat_id, member_id)
elif len(newcomer.get('parents', [])) == 0:
r = kick_member(chat_id, member_id)
print(r)