How to fill the input with a command after pressing the Telegram bot button?
I use pyTelegramBotAPI.
I will be kind for an example in my project.
Related
I made a bot which sends a button on ready when users press the button an embed with a captcha image is shown with a button linking to a modal if the modal response doesnt match the captcha he /she should be muted for 2hours and cant press any buttons for 2hrs
I tried every thing but didnt find a relevant solution
do someone know if there is a way to open a URL when someone write /start or some command.
I already tried with requests, but it hasnt worked.
Thanks!
You can redirect users to other groups/chats by providing them with an invite link or the username of the group/channel in the #username format. If you want that to happen on the press of a button, you can use InlineKeyboardButton by passing the invite link directly to the button, i.e. InlineKeyboardButton(text='some_text', url='http://t.me/…'). The URL will open (i.e. redirect the user to the target chat), when the button is clicked.
Suppose I want to make automation software for GMAIL using selenium in Python
I have made email id textbox , password textbox, from ,to,subject,body text box and send button . if i am clicking on send button it should fetch data from text boxes and process auto login and send mail to the respective person..
Is it possible to do that using selenium and tkinter in Python? please tell me.
I am trying to add connections on Linkedin with Selenium.
I am running into a problem when I try to click each "Connect Now" button. There is a small window that pops up and the script isn't able to click the button. I have tried to click the link and then use driver.find_element_by_class_name('button-primary-large ml1').click()
Side question - How do I connect large and ml1?
When I run the code, it is clicking to connect but then it has a problem trying to click "Send Now" which is what the code above is trying to do. What is a good way for me to click the send now button? I am posting pictures to show what I mean.
You can click the button by using
driver.find_elements_by_css_selector('.send-invite__actions button.button-primary-large').click()
i'm trying to do buttons,inline buttons,
json.dumps({"keyboard":[[{'text':'yayaya','request_contact':True},{'text':'google','url':'https://tts.ua'}]],})
First button wokrs, but other send only text, please help me
You want to use keyboard, which only supported requests.
But url is parameter of inline_keyboard, you can't use both at the same time.