{ "name": "telepipe", "version": "1.1.0", "summary": "telepipe: sends piped text, files and videos to a Telegram chat through a bot (bash and curl)", "category": "network", "license": "MIT", "homepage": "https://github.com/Linuxmaster14/telepipe", "source": { "url": "https://github.com/Linuxmaster14/telepipe/archive/2dcab253d2e88a4ea1c68786b210629b1bdd29cf.tar.gz", "sha256": "b5408efa3d4b24c356f57ecd67cbf70bd57e38009096f2e957ba9de455a4beb8" }, "deps": [ "bash", "curl" ], "env_packages": [], "static": true, "nss": false, "check": "bin/telepipe --version | has -x 'Telepipe v1.1.0' && head -n 1 bin/telepipe | has -x \"#!$PWD/bin/bash\" && t=$(mktemp -d) && mkdir \"$t/fake\" && printf '%s\\n' '#!/bin/sh' 'for a in \"$@\"; do printf \"%s\\n\" \"$a\"; done > \"$BVS_ARGS\"' 'echo \"{\\\"ok\\\":true,\\\"result\\\":{\\\"message_id\\\":42}}\"' > \"$t/fake/curl\" && chmod 755 \"$t/fake/curl\" && printf 'BOT_TOKEN=\"123:bvs-token\"\\nCHAT_ID=\"-1001234567\"\\nMAX_LEN=4096\\nTIMEOUT=5\\nDISABLE_LINK_PREVIEW=true\\n' > \"$t/config\" && echo 'bvs pipe line' | BVS_ARGS=$t/args TELEPIPE_CONFIG=$t/config PATH=\"$t/fake:$PATH\" bin/bash share/telepipe/telepipe | has -x 'https://t.me/c/1234567/42' && has -x 'https://api.telegram.org/bot123:bvs-token/sendMessage' < \"$t/args\" && has -x 'chat_id=-1001234567' < \"$t/args\" && has -x 'text=bvs pipe line' < \"$t/args\" && seq 1 3 > \"$t/f.txt\" && BVS_ARGS=$t/args TELEPIPE_CONFIG=$t/config PATH=\"$t/fake:$PATH\" bin/bash share/telepipe/telepipe --file \"$t/f.txt\" < /dev/null | has -x 'https://t.me/c/1234567/42' && has -x 'https://api.telegram.org/bot123:bvs-token/sendDocument' < \"$t/args\" && has -x \"document=@$t/f.txt\" < \"$t/args\" && echo 'telepipe 1.1.0: a piped line and a file sent through a stand-in curl, the Bot API calls and the message link as Telegram would give them'" }