FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
hootz
hootztelegramDalleBot
Public
Like
6
telegramDalleBot
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
2
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
7/10/2023
Viewing readonly version of main branch: v2
View latest version
README.md

Telegram DALLE Bot

A personal telegram bot you can message to create images with OpenAI's DALLE ✨

DALLE: A Macintosh II sitting on a desk, painted by Picasso in his blue period.

Set up yours

  1. fork this val

  2. speak to telegram’s https://t.me/botfather to create a bot and obtain a bot token

  3. set the bot token as a val town secret called telegramDalleBotToken

  4. add a random string as a val town secret called telegramDalleBotWebhookSecret

  5. set up your webhook with telegram like this:

Create val
// paste and run this in your workspace on here @vtdocs.telegramSetWebhook(@me.secrets.telegramDalleBotToken, { url: /* your fork's express endpoint (click the three dots on a val) */, allowed_updates: ["message"], secret_token: @me.secrets.telegramDalleBotWebhookSecret, });
  1. message your bot some prompts!

(if you get stuck, you can refer to the telegram echo bot guide from docs.val.town)

Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.