• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
begoon

begoon

telegrambot

Public
Like
1
telegrambot
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
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
/
Code
/
Search
main.tsx
https://begoon--76b78e6426da11f0a5b3569c3dd06744.web.val.run
README.md

This val is a demo skeleton of a telegram chat bot.

It requires the BOT_TOKEN environment varialbe, which the telegram bot token.

Another required variable is ME. The variable is an HTTP header to call a few extra endpoints (see the code).

One of those endpoints is /webhook/set, which installs the webhook to activate the bot.

The code is mostly educational. The bot echos back incoming messages.

There is one command, /ai, which sends the incoming messages to Open AI and forwards the reply back to the chat.

HTTP
  • main.tsx
    begoon--76…44.web.val.run
Code
README.md
H
main.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.