Avatar

dpetrouk

12 public vals
Joined July 14, 2023
dpetrouk avatar
fetchTweet
@dpetrouk
Script
An interactive, runnable TypeScript val by dpetrouk
dpetrouk avatar
notifyInTg
@dpetrouk
Script
Usage in bash: # Can be in .bashrc or .zsrhc: to-tg() { local input="" if [[ -p /dev/stdin ]]; then input="$(cat -)" else input="${@}" fi if [[ -z "${input}" ]]; then return 1 fi local chat_id="-1001826545120" # Set chat_id where your bot is local message="$input" curl -G https://api.val.town/v1/run/dpetrouk.notifyInTg --data-urlencode 'args=["'"$chat_id"'", "'"$message"'"]' } # You will get notification where command is succesfully finished <command in bash> && to-tg Success # Can be like that? <command in bash> | to-tg Success
dpetrouk avatar
setWebhookExample
@dpetrouk
Script
// Forked from @vtdocs.setWebhookExample
dpetrouk avatar
telegramWebhookEchoMessage
@dpetrouk
Express
// Forked from @vtdocs.telegramWebhookEchoMessage
dpetrouk avatar
fetchTimeline
@dpetrouk
Script
An interactive, runnable TypeScript val by dpetrouk
dpetrouk avatar
untitled_pinkDamselfly
@dpetrouk
Script
An interactive, runnable TypeScript val by dpetrouk
dpetrouk avatar
expressHTMLExample
@dpetrouk
Script
// View at https://stevekrouse-expressHTMLExample.express.val.run?name=Steve
dpetrouk avatar
untitled_silverKrill
@dpetrouk
Script
An interactive, runnable TypeScript val by dpetrouk
dpetrouk avatar
fetchJSON
@dpetrouk
Script
// Forked from @stevekrouse.fetchJSON
dpetrouk avatar
proxyFetch
@dpetrouk
Script
// Forked from @alp.proxyFetch
dpetrouk avatar
myApi2
@dpetrouk
Script
An interactive, runnable TypeScript val by dpetrouk
dpetrouk avatar
myApi
@dpetrouk
Script
An interactive, runnable TypeScript val by dpetrouk
Next