Returning a bold text.
i read this discussion http://help.imified.com/discussions/suggestions/2-more-html-tags-supported-in-messages
"Any HTML tag can be used. We simply replace BR tags with line breaks. We don't further alter your message."
whether is only
tag that allowed in the text as a return? because I try to add
tag does not work, i use yahoo network for mybot.
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Adam Kalsey on 01 Jul, 2009 03:48 AM
Not all networks and IM clients support HTML. We deliver the text you
send, but must depend on the network and client from there.
3 Posted by Mbah Ableh on 01 Jul, 2009 04:22 AM
hmmmm, it mean yahoo parse it? and how about tag? in yahoo messenger this tag is for call buzz!
4 Posted by Mbah Ableh on 01 Jul, 2009 04:37 AM
hmm.. this web parse my post :D
< "ding" > <-- in yahoo is for call buzz!
Support Staff 5 Posted by Adam Kalsey on 01 Jul, 2009 04:45 AM
Your message needs to be valid XHTML for the HTML to be delivered. A
single opening tag wouldn't work, but if you include a closing tag, it
would get transmitted.
How that would appear on other networks, I'm not sure.
6 Posted by mpahic on 16 Jul, 2009 05:26 PM
I wrote a chat for my bot so the different networks can communicate in one place. That is why I've been reading some protocol files to format text differently. I found out if you output text like this:
echo " <asterisk>bold<asterisk> <br>";
echo " <underline>italic<underline> <br>";
(note the spaces before the <asterisk> and <underline> or it doesn't work)
the text is bold/italic but only if I use my bot through gtalk. When I use it through other account/server (like swissjabber.org) it doesn't work. The * and _ is shown normally.
This Markdown is really annoying especially when I have to write the code. I couldn't white the asterisk and underline. Can you please replace this with something else like btags?
Is it possible to get the network from which the user is sending the message to format the text properly for each network?
Also does someone know how to format the text in XMPP or MSN protocol. I think it is not possible for MSN, but I don't know for XMPP. I wasn't able to find any tex regarding this.
And why does the the "user" and "screenname" response return the same thing. Shouldn't one display the alias/display name, because I'm getting the username on every network.
Support Staff 7 Posted by Adam Kalsey on 17 Jul, 2009 05:27 PM
For code in markdown, you can enclose it in backticks. Or for longer blocks of code, indent each line with four spaces and Markdown will treat it as code instead of text.
The POST we send your bot includes both the username and the network of the remote user. You can use this to return network-specific things if you would like.
With most networks and clients, if you use
<strong></strong>you should get bold text. If you find a network and client that doesn't support that, let us know and we'll see what we can do to solve it. We have a release coming shortly (within the week, most likely) that will improve support for formatting.The
*and_formatting for google talk is an implementation detail that their web client uses. There may be other clients that recognize that syntax, but it's not going to be widespread.Adam Kalsey closed this discussion on 17 Jul, 2009 05:27 PM.