Skip to content

[Bug] Kick through "unbanChatMember" not working for standard/regular groups #201

Description

@mrambossek

heya, trying out the bot, after fiddling for some time to get it running in a docker container, everything seems to work at first glance;
however, when a test user joins and does not fill out the captcha, the console prints:

2024-08-23 11:26:02,447 - __main__ - INFO - [<MYGROUP>] Captcha reply timeout for user <USER>.
2024-08-23 11:26:02,449 - __main__ - INFO - [<MYGROUP>] <UID> join_retries: 1
2024-08-23 11:26:02,449 - __main__ - INFO - [<MYGROUP>] Captcha Fail - Kick - <USER> (<UID>)
2024-08-23 11:26:02,547 - tlgbotutils - ERROR - [<MYGROUP>] Method is available for supergroup and channel chats only
2024-08-23 11:26:02,548 - __main__ - INFO - [<MYGROUP>] Unable to kick
2024-08-23 11:26:02,591 - __main__ - INFO - [<MYGROUP>] Removing msgs from user <USER>...
2024-08-23 11:26:12,528 - tlgbotutils - ERROR - [<MYGROUP>] Message to delete not found

(i have replaced the actual values with for privacy reasons)

im not good with python, but as far as i can tell this comes from tlg_kick_user which in turn leads to unban_chat_member ... and now i'm lost. :)

my group is a "normal" group, not a supergroup.. is that the issue? is there no "normal" kick API, or why is unban_chat_member used in the first place? is there a way to make it work for my group?

thanks & kr

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions