Python Forum
How to take url in telegram bot user input and put it as an argument in a function? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to take url in telegram bot user input and put it as an argument in a function? (/thread-39051.html)



How to take url in telegram bot user input and put it as an argument in a function? - askfriends - Dec-25-2022

hi;
Im new to python and telegram bot thing.
So i have created a python script using some library to bypass ad links, which takes url by using /bypass <url> command as an argument in a function and then gives bypassed url.
So my aim is to take user input like /bypass <url> and then use that url inside a function, and that function gives an output url which is basically a bypassed url, and then i will send that url back to user in telegram.
so anyone plz help me to achieve this.
i can upload the script if needed to better understand its function.