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.
ynonp avatar
ynonp
telegramWebhookEchoMessage
HTTP
Forked from ynonp/SpeakEnglishToMe_bot
1
m4rrc0 avatar
m4rrc0
telegramSendMessage
Script
Forked from vtdocs/telegramSendMessage
0
flafi87 avatar
flafi87
periodical_weather_telegram
Cron
An interactive, runnable TypeScript val by flafi87
0
snowypowers avatar
snowypowers
telegramSetMessageReaction
Script
An interactive, runnable TypeScript val by snowypowers
1
artalar avatar
artalar
telegramGetMe
Script
Forked from vtdocs/telegramGetMe
0
vtdocs avatar
vtdocs
telegramSendMessage
Script
An interactive, runnable TypeScript val by vtdocs
3
vtdocs avatar
vtdocs
telegramSetWebhook
Script
An interactive, runnable TypeScript val by vtdocs
0
vtdocs avatar
vtdocs
telegramGetMe
Script
An interactive, runnable TypeScript val by vtdocs
1
pomdtr avatar
pomdtr
sendToTelegram
Script
An interactive, runnable TypeScript val by pomdtr
1
pomdtr avatar
pomdtr
telegramWelcome
Script
An interactive, runnable TypeScript val by pomdtr
1
ghsaboias avatar
ghsaboias
telegramWebhookEchoMessage
HTTP
Forked from maxm/telegramWebhookExample
1
begoon avatar
begoon
telegrambot
HTTP
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.
1
dpetrouk avatar
dpetrouk
telegramWebhookEchoMessage
Express (deprecated)
Forked from vtdocs/telegramWebhookEchoMessage
0
marksteve avatar
marksteve
telegram
Script
An interactive, runnable TypeScript val by marksteve
0
narthur avatar
narthur
telegramBot
Script
An interactive, runnable TypeScript val by narthur
0
stevekrouse avatar
stevekrouse
telegram
Script
Forked from pomdtr/telegram
3