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
  Python-based telegram spam bot-telegram-bot archer24 1 519 Feb-07-2025, 04:16 PM
Last Post: archer24
  How to revert back to a previous line from user input Sharkenn64u 2 765 Dec-28-2024, 08:02 AM
Last Post: Pedroski55
  Input function oldschool 1 666 Sep-14-2024, 01:02 PM
Last Post: deanhystad
  User input with while loops chizzy101010 2 4,414 Aug-25-2024, 06:00 PM
Last Post: chizzy101010
  difference between forms of input a list to function akbarza 6 2,281 Feb-21-2024, 08:02 PM
Last Post: bterwijn
  mutable argument in function definition akbarza 1 1,163 Dec-15-2023, 02:00 PM
Last Post: deanhystad
  WHILE LOOP NOT RETURNING USER INPUT AFTER ZerroDivisionError! HELP! ayodele_martins1 7 2,398 Oct-01-2023, 07:36 PM
Last Post: ayodele_martins1
  queue for async function python telegram.ext noctious 0 2,976 Jun-11-2023, 02:58 PM
Last Post: noctious
  restrict user input to numerical values MCL169 2 1,780 Apr-08-2023, 05:40 PM
Last Post: MCL169
  user input values into list of lists tauros73 3 1,914 Dec-29-2022, 05:54 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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