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']) |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
|
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; |
Beta Was this translation helpful? Give feedback.
-
|
again and it doesn't work |
Beta Was this translation helpful? Give feedback.
-
|
although the end of the discussion I'm tired |
Beta Was this translation helpful? Give feedback.
-
|
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)) |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
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))