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 click Run
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