How can I build a Telegram bot that tracks voice chat activity and records audio?

I’m looking to develop a Telegram bot that monitors voice chat activities. The bot should be able to log which users join the voice channel and also capture the audio during the session. I searched online for tutorials and references but didn’t find any clear guidance. I’ve tried to create a simple voice channel tracker bot myself, yet the available details were insufficient. Can anyone suggest a method or share examples for building such a bot?

hey, not sure but ive seen ppl doin it with telethon api and ffmpg for audio streaming. gotta watch out cause hookin audio might invlove legal issues. you can combine api calls with externl record scripts. good luck with your bot!