I am trying to make a super simple telegram bot using PTB. The bot has a button, when I click the button bot should make an http request to the web (without opening browser). And show the response data. Here is the piece of code I am using: it works for hard coded values and under 50 characters text however
Tag: python-telegram-bot
Telegram bot sending error “Something went wrong, please try again” after message
Output Code: requirements.txt python-telegram-bot How can I fix this? Answer I guess someone scraped your bot token from a public repository and tried to steal your bot. Please, do not save your bot token in a public repository! Solution: Revoke your token and don’t save it in a public repository.
RuntimeError: ‘path’ must be None or a list, not on python-telegram-bot
I want to develop a bot in telegram using spyder: I get the above error. Answer I encountered this issue with Spyder 3.2.6, All you have to do is open Spyder with admin privileges, and the problem goes away. It’s a temporary fix, but 100 percent works.
Telegram Keyboard layout/commands
I already know how to setup the custom keybord layout but so far I haven’t found a way to show different “text” on the buttons than what is send if you push it. E.g.: It returns the text given and there doesnt seem to be an option to specify what should be returned/shown on screen upon clicking. Upon starting conversation