1

I have created a bot in Motion.ai that use html formatting. When I use the bot in Telegram through Smooch the html formatting is not respected. The messages show directly the html tags like

Hello my name is <b>Shoppy</b>!

Is it normal or I'm doing something wrong?

I got the same problem if I use the Smooch web messaging integration.

Example of web integration:bot web integration

2 Answers 2

1

This is normal.

As far as messaging channels go, Telegram is somewhat unique here in terms of their HTML formatting support. Smooch.io's unified messaging API aims to support all features across all messaging channels, but unfortunately it doesn't cover the HTML formatting use case yet. For now Smooch.io will escape HTML tags coming from Motion.ai, as you observe in Telegram and in the web messenger.

Disclaimer: I work on Smooch

0

HTML style

To use this mode, pass HTML in the parse_mode field when using sendMessage.

For more info...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.