Avatar

dpetrouk

Joined July 14, 2023
Public vals
12
dpetrouk avatar
dpetrouk
notifyInTg
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
0
dpetrouk avatar
dpetrouk
setWebhookExample
Script
Forked from vtdocs/setWebhookExample
0
dpetrouk avatar
dpetrouk
telegramWebhookEchoMessage
Express (deprecated)
Forked from vtdocs/telegramWebhookEchoMessage
0
dpetrouk avatar
dpetrouk
fetchTimeline
Script
An interactive, runnable TypeScript val by dpetrouk
0
dpetrouk avatar
dpetrouk
fetchTweet
Script
An interactive, runnable TypeScript val by dpetrouk
1
dpetrouk avatar
dpetrouk
untitled_pinkDamselfly
Script
An interactive, runnable TypeScript val by dpetrouk
0
dpetrouk avatar
dpetrouk
expressHTMLExample
Script
Forked from stevekrouse/expressHTMLExample
0
dpetrouk avatar
dpetrouk
untitled_silverKrill
Script
An interactive, runnable TypeScript val by dpetrouk
0
dpetrouk avatar
dpetrouk
fetchJSON
Script
Forked from stevekrouse/fetchJSON
0
dpetrouk avatar
dpetrouk
proxyFetch
Script
Forked from alp/proxyFetch
0
dpetrouk avatar
dpetrouk
myApi2
Script
An interactive, runnable TypeScript val by dpetrouk
0
dpetrouk avatar
dpetrouk
myApi
Script
An interactive, runnable TypeScript val by dpetrouk
0
Next