Readme

Send yourself a Telegram message

Inspired by console.email, this val lets you send yourself a Telegram message via the valtown_bot from any of your vals

Create val@me.telegram("hi to me on telegram!")

Installation

1. Start a conversation with valtown_bot

Click here: https://t.me/valtown_bot

2. Copy your Secret

3. Save in your secrets under telegramSecret

4. Fork this val & run it

Save your own private version of a telegram function to your account by forking this val: https://www.val.town/v/pomdtr.telegram

5. Send a test message!

Create valawait @me.telegram("hi to me on telegram!")

PS: the bot code is available here

1
2
3
4
5
6
7
async function telegram(message: string) {
return api(
@pomdtr.sendToTelegram,
@me.secrets.telegramSecret,
message,
);
}
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.