Is it possible to format a message sent by a telegram bot as a list?
I want to build a bot that presents the menu of a restaurant with about 20 options and sub-options (e.g., kind of meat) as a list:
- Spaghetti
* Carbonara
* Bolognese
- Ice Cream
* additional chocolate sprinkles
I noticed that neither <ul> or <ol> work in parse_mode="HTML" and I also couldn't find any syntax in parse_mode="MarkdownV2". From what I see in the documentation it is currently not possible. In a similar question on tables, ASCII text and pictures were recommended. The only other option I see is inline keyboards. None of these would work well with what I had in mind.
Does someone have a workaround for this? Or can confirm that it is indeed not possible?
Or can confirm that it is indeed not possible?
The documentation you linked already confirmes that there are no special formatting options for (nested) lists supported by the Bot API.
Related
I am working on a chatbot that uses both Watson conversation and NLU. My chatbot is designed to provide information about other people - friends, colleagues (ex: their current position, contact number etc.,). Chat bot isnt able to recognize few names as persons. How do I handle this situation ? Any thoughts ?
NLU does recognize person pretty good, if you are using Watson Conversation along with NLU, I am not sure how you are combining both of them. Can you explain it a bit more?
I faced a similar situation using NLU, here are the few ways I overcame it
1.NLU relies on context, instead of sending smaller texts, send bigger texts.
2. It also relies on Grammatical features, usually having correct punctuation, First letter capital names for Person, City Names helped me get better results
Content moderation api for text fails recognizing simple drugs term as "cocaine" and other simple profanities. It seems to work only on a very limited set of profanities.
I'm using the Web GUI with my resouce key at the address: https://westus.dev.cognitive.microsoft.com/docs/services/57cf753a3f9b070c105bd2c1/operations/57cf753a3f9b070868a1f66f/console
Cristian, Content Moderator's Text API is for filtering out profanity specifically and does not check for mention of drugs.
You can use the custom lists API to create your stop-words that the API will use to scan against in addition to the built-in list of terms.
See https://westus.dev.cognitive.microsoft.com/docs/services/57cf755e3f9b070c105bd2c2/operations/57cf755e3f9b070868a1f67f.
I would also appreciate knowing more about the sample terms that you felt should have been detected. Let's figure out a way to share those if that's all right with you.
Thanks!
I am trying to display a photo each time a user takes an action, and I'd like it to be relevant to a certain keyword, such as a city, artist, or music venue.
I see that flickr has an api:
https://www.flickr.com/services/api/flickr.photos.search.html
One thing missing from that is the ability to filter for only creative commons licenses.
The Whisper mobile app does a pretty good job of grabbing a relevant photo, so one question I have is how they might be doing it?
Another is whether there are any services that specialize in this?
(first post, searched as best as I could, apologizing in advance if this is a n00b question in some way, and thanks for any help you can offer)
Try the license parameter of the search API. From the docs:
The license id for photos (for possible values see the flickr.photos.licenses.getInfo method). Multiple licenses may be comma-separated.
Creative Commons 2.0 licenses are coded with values 1 through 6.
I'm developing a software, which is going to provide in-deep information about url's.
While the get-params are simple, I'm having trouble with the hash.
At first it was used to mark places in the document to navigate to, but we're past that now. I've seen JS engines using it to store params similar to the get strings.
So, here's my question: is everything that comes after a hash free game, or are there any conventions about what it should look like?
Try these sites it could help. Fragment Identifier, Wikipedia or Pound Sign, Google
It's got a list of examples you could use.
It all depends on what you need. Hashes are used in modern web applications that make use of asynchronous calls to the server using ajax. This e.g. allows the user to copy the link and receive the same content after pasting (actions taken are put into hash which changes the url which otherwise would remain static).
You want to read http://www.jenitennison.com/blog/node/154
I want to merge multiple rss feeds into a single feed, removing any duplicates. Specifically, I'm interested in merging the feeds for the tags I'm interested in.
[A quick search turned up some promising links, which I don't have time to visit at the moment]
Broadly speaking, the ideal would be a reader that would list all the available tags on the site and toggle them on and off, allowing me to explore what's available, keep track of questions I've visited, new answers on interesting feeds, etc, etc . . . though I don't suppose such a things exists right now.
As I randomly explore the site and see questions I think are interesting, I inevitably find "oh yes, that one looked interesting a couple days ago when I read it the first time, and hasn't been updated since". It would be much nicer if my machine would keep track of such deails for me :)
Update: You can now use "and", "or", and "not" to combine multiple tags into a single feed: Tags AND Tags OR Tags
Update: You can now use Filters to watch tags across one or multiple sites: Improved Tag Stes
Have you heard of Yahoo's Pipes.
Its an interactive feed aggregator and
manipulator. List of 'hot pipes' to
subscribe to, and ability to create
your own (yahoo account required).
I played with it during beta back in the day, however I had a blast. Its really fun and easy to aggregate different feeds and you can add logic or filters to the "pipes". You can even do more then just RSS like import images from flickr.
I create a the stackoverflow tag feeds pipe. You can list your tags of choice into the text box and it will combine them into a single feed with all the unique posts. It escapes '#' and '+' characters for you.
Alternatively, you can use the pipe's rss feed by appending your html-encoded tags separated by '+'s:
http://pipes.yahoo.com/pipes/pipe.run?_id=uP22vN923RG_c71O1ZzWFw&_render=rss&tags=.net+c%23+powershell
Unfortunatley, though, this seems to strip out the content of the posts. The content is visible in the debug view, but the output only contains the post title.
[Thanks to everyone for suggesting Yahoo Pipes! Had heard of it before, but never tried it until now :-]
SimplePie is a PHP library that supports merging RSS feeds into one combined feed. I don't believe it does dupe checking out-of-the-box, but I found it trivial to write a little function to eliminate duplicate content via their GUIDs.
Here is an article on Merge Multiple RSS Feeds Into One with Yahoo! Pipes + FeedBurner.
Another option is Feed Rinse, but they have a paid version as well as the free version.
Additionally:
I have heard good things about AideRss
Yahoo Pipes?
23 minutes later:
Aww, I got answer-sniped by #Bernie Perez. Oh well :)
In the latest Podcast, Jeff and Joel talked about the RSS feeds for tags, and Joel noted that there is only the current ability to do AND on tags, not OR.
Jeff suggested that this would be included at some stage in the future.
I think that you should request this on uservoice, or vote for it if it is already there.