question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to send formated text & picture as response to inline bot

See original GitHub issue

Hi @pengrad ,

I see that there are several type of content that we can send to the picker

example picker with text & photos: new InlineQueryResultArticle("id", "title", "response send to user if selecting").thumbUrl("url");

However, how do I format the message send to the user after the user made a selection in the picker? As example, suppose the user select the content above, how can I send back a message with a picture with text, where some part of the text is in bold and some words are links?

I have tried using markdown and html, but none are interpreted. I guess there must be an option to enable HTML usage.

Basically something similar as what the popcornbot (https://telegram.me/imdb) does.

Thanks in advance. PA

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pasondagcommented, Jul 26, 2016

Yeah that was it. Thanks @pengrad.

For anyone having the same issue in the future here is how to do html on inline response:

new InlineQueryResultArticle(
         "1", 
         title, 
         new InputTextMessageContent("<b>html content</b>").parseMode(HTML));
0reactions
patrickbardcommented, Feb 21, 2020

For anyone having the same issue in the future here is how to do html on inline response:

Greatings from the future 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Format your bot messages - Teams | Microsoft Learn
Learn how to format and style your bot messages such as strikethrough, ordered and unordered list, hyperlink, or image link.
Read more >
Dialogflow Tutorials: Sending Images, Video and Documents ...
Dialogflow Tutorials: Sending Images, Video and Documents ( Rich Media) in Whatsapp Chatbot. 27K views 2 years ago. AxleWeb ...
Read more >
How to send an Embedded Image along with text in a ...
I figured out how to create bold text and links with markdown, but I'm failing at inserting images. How can we do that?...
Read more >
Solved: Help formatting Bot Response text for Microsoft Te...
Solved: Hello SN Community, I'm having an issue with the way that the bot responses are rendering in Microsoft Teams, compared to the...
Read more >
Formatting text for app surfaces - Slack API
Basic formatting with mrkdwn ... Text objects contain a text field that can be formatted using a simple markup language called mrkdwn ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found