I’d like to push a formatted message to to clients from my bot in much the same way as the Durger King app does. In response to any input to the bot a message showing for formatted ‘Let’s get started’ is displayed along with a picture. Underneath there is order food
WebApp button which opens the PWA.
Is this simply and image or is it formatted HTML, which would possibly be easier to manage.
How can one send either a an image or formatted HTML using the telego Go bot.
2
Answers
Here's what is probably the wrong way of achieving this:
I haven't tried to see if it is possible to use the context instead of the bot itself, and returning
nil
probably isn't a great idea. But essentially you this is setting the ParseMode to HTML and somehow the emoji can be pasted in...This is what it looks like:
Here’s the version using the context: