Serverless Telegram Bot on CloudFlare Workers

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/javascript

Our great sponsors
  • JetBrains - Developer Ecosystem Survey 2022
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Less time debugging, more time building
  • duckduckgo-locales

    Translation files for duckduckgo.com

    duckduckgo = async ( update: TelegramUpdate, args: string[] ): Promise => ((query) => ((duckduckgo_url) => (update.inline_query && query === "" && this.answerInlineQuery(update.inline_query.id, [ new TelegramInlineQueryResultArticle("https://duckduckgo.com"), ])) || (update.inline_query && fetch( addSearchParams(new URL("https://api.duckduckgo.com"), { q: query, format: "json", t: "telegram_bot", no_redirect: "1", }).href ).then((response) => response .json() .then( (results: { AbstractSource: string; AbstractURL: string; Redirect: string; Image: string; RelatedTopics: { Icon: { URL: string } }[]; }) => ((instant_answer_url, thumb_url, default_thumb_url) => this.answerInlineQuery( update.inline_query.id, (instant_answer_url !== "" && [ new TelegramInlineQueryResultArticle( `${instant_answer_url}\n\nResults From DuckDuckGo`, instant_answer_url, "HTML", thumb_url ), new TelegramInlineQueryResultArticle( duckduckgo_url, duckduckgo_url, "", default_thumb_url ), ]) || [ new TelegramInlineQueryResultArticle( duckduckgo_url, duckduckgo_url, "", default_thumb_url ), ], 3600 // 1 hour ))( (results.Redirect !== "" && results.Redirect) || results.AbstractURL, (results.Redirect === "" && `https://duckduckgo.com${ (results.Image !== "" && results.Image) || (results.RelatedTopics.length !== 0 && results.RelatedTopics[0].Icon.URL !== "" && results.RelatedTopics[0].Icon.URL) || "/i/f96d4798.png" }`) || "", "https://duckduckgo.com/assets/icons/meta/DDG-icon_256x256.png" ) ) )) || this.sendMessage(update.message.chat.id, duckduckgo_url))( (query === "" && "https://duckduckgo.com") || addSearchParams(new URL("https://duckduckgo.com"), { q: query, }).href ))(args.slice(1).join(" "));

  • cf-workers-telegram-bot

    Serverless Telegram Bot on CloudFlare Workers

  • JetBrains

    Developer Ecosystem Survey 2022. Take part in the Developer Ecosystem Survey 2022 by JetBrains and get a chance to win a Macbook, a Nvidia graphics card, or other prizes. We’ll create an infographic full of stats, and you’ll get personalized results so you can compare yourself with other developers.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts