How work new_chat_members and left_chat_member #1875
|
I'm trying to exit and enter the chat, there is no response from the function. @bot.message_handler(content_types=['left_chat_member']) |
Replies: 6 comments 20 replies
|
It's fine, should work. Check that bot is admin, not in privacy mode etc. Btw, left_chat_member appears not in all groups/channels (I do not remeber details). May be you will see events you are waiting for there. |
|
You should pass a list of updates to infinity_polling including chat_member update type to use chat_member_handler. Add any other update types from here if needed; |
|
again and it doesn't work |
|
although the end of the discussion I'm tired |
|
BTW, we have CUSTOM_REQUEST_SENDER in apihelper file to send request with given params manually, but as u r switching to aio, this answer is probably useless)) |
|
Your problem is easy to solve, I added group chat filter in 'message_handler' and it works. Here is the code I worked on By the way, how do you know which invitation link a user used to enter a group chat, or who sent the link? I'm sorry for my poor English |
BTW, we have CUSTOM_REQUEST_SENDER in apihelper file to send request with given params manually, but as u r switching to aio, this answer is probably useless))