Back to APIs list

Telegram API examples & templates

Use these vals as a playground to view and fork Telegram API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
telegramWebhookEchoMessage
ynonp
telegramWebhookEchoMessage
Remix of: ynonp/SpeakEnglishToMe_bot
HTTP
telegramSendMessage
m4rrc0
telegramSendMessage
Remix of: vtdocs/telegramSendMessage
Script
periodical_weather_telegram
flafi87
periodical_weather_telegram
An interactive, runnable TypeScript val by flafi87
Cron
telegramSetMessageReaction
snowypowers
telegramSetMessageReaction
An interactive, runnable TypeScript val by snowypowers
Script
telegramGetMe
artalar
telegramGetMe
Remix of: vtdocs/telegramGetMe
Script
telegramSendMessage
vtdocs
telegramSendMessage
An interactive, runnable TypeScript val by vtdocs
Script
telegramSetWebhook
vtdocs
telegramSetWebhook
An interactive, runnable TypeScript val by vtdocs
Script
telegramGetMe
vtdocs
telegramGetMe
An interactive, runnable TypeScript val by vtdocs
Script
sendToTelegram
pomdtr
sendToTelegram
An interactive, runnable TypeScript val by pomdtr
Script
telegramWelcome
pomdtr
telegramWelcome
An interactive, runnable TypeScript val by pomdtr
Script
telegramWebhookEchoMessage
ghsaboias
telegramWebhookEchoMessage
Remix of: maxm/telegramWebhookExample
HTTP
telegrambot
begoon
telegrambot
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
telegramWebhookEchoMessage
dpetrouk
telegramWebhookEchoMessage
Remix of: vtdocs/telegramWebhookEchoMessage
Express (deprecated)
telegram
marksteve
telegram
An interactive, runnable TypeScript val by marksteve
Script
telegramBot
narthur
telegramBot
An interactive, runnable TypeScript val by narthur
Script
telegram
stevekrouse
telegram
Remix of: pomdtr/telegram
Script