How can I develop a Telegram bot that automatically accesses every hyperlink shared in a channel?

Hello everyone,

I’m currently exploring ways to create a Telegram bot that can automatically respond to every hyperlink that is shared in a channel. My goal is to have the bot detect the link as soon as it appears and perform a certain action, whether it means opening the link or processing its content in some manner. I would appreciate any advice, recommended methods, or examples on how to set up such a bot using Telegram’s available APIs. Additionally, if there are any best practices or libraries that can help streamline this process while ensuring compliance with Telegram’s guidelines, please share your insights. Thank you for your help and suggestions!

hey, you could try telethon in python, it listens realtime msgs and scrapes hyperlinks. might be some trial n eror so check docs and test carefully.