I'm just working on my bot with Telepot. The bot works well but I have a question for you. Is there any way to send a message to the bot and have an answer? Let me show
this is the behaviour I want, but i know it's not correct
if command == "/gen":
bot.sendMessage(chat_id, "Please send me your link")
link = command #message sent after the request ("please send me link")
sale = generate(link) #generate is my function which creates amazon sales
Okay,the problem is here, so in this case I've just asked for a link but if I do
link = command
I have the old command "/gen".
So, at least, this is what i want to develop in my bot:
user : "/start"
bot: "Hi send me your link"
user: "www.amazon.com" #general product in this case)
bot: "this is your sale -> (message with links and photos) :)