I have been working on Telegram robots for about 4 years and I developed the robot you want with php code, and if necessary, please ask which group to extract the information (name, username, ID, group activity, image, etc.) if you need to Test for sure.
I can implement the same code in Python