Python Forum
How to take url in telegram bot user input and put it as an argument in a function?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to take url in telegram bot user input and put it as an argument in a function?
#1
Information 
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  difference between forms of input a list to function akbarza 6 1,043 Feb-21-2024, 08:02 PM
Last Post: bterwijn
  mutable argument in function definition akbarza 1 490 Dec-15-2023, 02:00 PM
Last Post: deanhystad
  WHILE LOOP NOT RETURNING USER INPUT AFTER ZerroDivisionError! HELP! ayodele_martins1 7 1,073 Oct-01-2023, 07:36 PM
Last Post: ayodele_martins1
  queue for async function python telegram.ext noctious 0 1,605 Jun-11-2023, 02:58 PM
Last Post: noctious
  restrict user input to numerical values MCL169 2 925 Apr-08-2023, 05:40 PM
Last Post: MCL169
  user input values into list of lists tauros73 3 1,075 Dec-29-2022, 05:54 PM
Last Post: deanhystad
Question Take user input and split files using 7z in python askfriends 2 1,107 Dec-11-2022, 07:39 PM
Last Post: snippsat
  i want to use type= as a function/method keyword argument Skaperen 9 1,884 Nov-06-2022, 04:28 AM
Last Post: Skaperen
Sad how to validate user input from database johnconar 3 1,934 Sep-11-2022, 12:36 PM
Last Post: ndc85430
  Telegram bot python help! wolfdevs 0 779 Sep-07-2022, 11:34 AM
Last Post: wolfdevs

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020