Serverless Telegram Bot on CloudFlare Workers

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • duckduckgo-locales

    Translation files for <a href="https://duckduckgo.com"> </a>

  • 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 AI Telegram Bot on CloudFlare Workers

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
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