All workflows
Telegram logoTheCocktailDB logo

Look up a drink from Telegram

Text a drink name or an ingredient to your Telegram chat and get the recipe back, with the drink's photo.

On new message in Telegram2 apps6 steps

Apps it connects

Authenticate each one once and the workflow is ready to run.

What it does

Each integration step this workflow runs, in order, what it is for, and the conditions and loops that decide when it runs.

  1. 1TelegramNew message triggerStarts a run whenever a message arrives in the Telegram chat your bot is watching.
  2. 2TheCocktailDBSearch cocktailsLooks the message up as a drink name and takes the first match as the drink to describe.
  3. If drink is empty

    1. 3TheCocktailDBFilter by ingredientTries the same word as an ingredient when no drink carries that name, so gin still finds a drink.
    2. If ingredientCount is more than 0 and firstId is not empty

      1. 4TheCocktailDBGet cocktailFetches the full recipe for the first drink an ingredient search returned, since that search gives names only.
  4. If photoUrl is not empty

    1. 5TelegramSend photoSends the drink's photo to the chat with a caption crediting TheCocktailDB, just before the recipe text.
  5. 6TelegramSend messageSends the recipe back to the chat, or a short note when nothing matched or the message was unusable.

How it works

What happens on each run, in plain English.

Text a drink name or an ingredient to your Telegram chat and the recipe comes straight back. Whenever a new message arrives, the word is looked up on TheCocktailDB as a drink name, and if nothing is called that it is tried as an ingredient, so a word like gin still gets you a drink made with gin.

You get the category, the glass, whether it is alcoholic, the ingredients with their measures, how to make it and the drink's photo, followed by the other drinks that matched and a link to the source page. Every line comes from the record itself: nothing is written by AI, so no ingredient, measure or method is ever invented, and a detail the record lacks is left out. A message too short or too long to be a name gets a prompt asking for a drink or an ingredient, and the bot ignores its own replies.

You need a Telegram bot added to the chat you want answered and a TheCocktailDB connection. Instructions come back in English.

telegramcocktailsthecocktaildbrecipesbotchat

Start from a workflow that already works.

Add "Look up a drink from Telegram" to your workspace, connect its apps, and make it yours.

Free plan, no credit card