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.
alpher avatar
alpher
file
HTTP
Forked from loading/file
0
thure avatar
thure
github_emails
Email
Forked from wittjosiah/github_emails
0
ted avatar
ted
twitterRequest
Script
An interactive, runnable TypeScript val by ted
0
cephalization avatar
cephalization
smsjournalertextrelay
HTTP
* This val creates a webhook endpoint that receives text messages and sends SMS replies using the TextBelt API. * It uses blob storage to keep track of message history and conversation state. * The TextBelt API is used for sending SMS messages without requiring an API key. * The conversation history is stored as an array of message objects containing sender, content, date, and phone number. * OpenAI's GPT-4 is used to generate contextual responses based on the conversation history.
2
tempguy avatar
tempguy
amberPig
Script
An interactive, runnable TypeScript val by tempguy
0
metart43 avatar
metart43
sendRandomChihuahuaToSlack
Script
An interactive, runnable TypeScript val by metart43
2
charmaine avatar
charmaine
sendMessageWithTwilio
HTTP
Send Messages with Twilio Prerequisite Twilio account (for SMS notifications) You can create an account with $15 free credits at https://www.twilio.com/ without putting in your credit card
0
gigmx avatar
gigmx
diligentSapphireOrca
HTTP
Forked from gigmx/skilledCoffeePanther
0
tempdev avatar
tempdev
rabbitstream
HTTP
// Full .ts implimentation of rabbitstream.net
0
hgvc avatar
hgvc
notifier
Script
An interactive, runnable TypeScript val by hgvc
0
Custodia avatar
Custodia
enchantingScarletChickadee
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
chen avatar
chen
twitterAlert
Cron
Forked from geoffreylitt/twitterDailyDigest
0
mauforonda avatar
mauforonda
messageBroker
Script
An interactive, runnable TypeScript val by mauforonda
0
ejfox avatar
ejfox
addToLog
HTTP
* This chat application allows users to post messages and view a log of all messages. * It uses SQLite for persistence and React for the frontend. * The server handles message posting and retrieval, while the client renders the UI.
0
stevekrouse avatar
stevekrouse
tell2
Script
// Store messages via SQLite
1
andreterron avatar
andreterron
twitter
Script
Login with ~~Twitter~~ 𝕏 Use this val to login with 𝕏 and save your token into a twitter_token val Usage Fork this val Change the 🔒 privacy to "Unlisted" Navigate to https://developer.twitter.com/en/portal/dashboard to create an OAuth app and save your client id and secret to your secrets page Navigate to https://{your_username}-twitter.web.val.run to authenticate with 𝕏 And then you'll have your tokens saved to a twitter_token val! Other ~~Twitter~~ 𝕏 helper vals Refresh your tokens: https://www.val.town/v/andreterron/refreshTwitterToken Fetch user by id: https://www.val.town/v/andreterron/fetchTwitterUser Search posts: https://www.val.town/v/andreterron/searchTweets Write an X post: https://www.val.town/v/andreterron/postTweet
3