telegramBotHandler
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
-
First you'll need to set yourself up to send and receive messages on Telegram. Follow all 5 steps here: https://www.val.town/v/stevekrouse.telegram
-
Fork this
@telegramBotHandler
val below. Make sure you clickRun
to save it to your account. -
On your forked val, click the ⋮ menu > Endpoints > Copy express endpoint
-
Message @ValTownBot
/webhook
-
Message @ValTownBot the express endpoint you copied
-
You'll also need an
openai
key in your secrets for this particular DallE bot to work
Migrated from folder: Archive/telegramBotHandler