{"repo":"msoap/shell2telegram","free":true,"listed":false,"github":"https://github.com/msoap/shell2telegram","clone":"git clone https://github.com/msoap/shell2telegram.git","description":"Telegram bot constructor from command-line","language":"Go","stars":168,"topics":["telegram-bots","docker","server","golang","telegram","shell"],"license":"MIT","category":"cli-tools","readme_excerpt":"shell2telegram ----------------------------------------------------------------------------------------------------------------------------------------- Create Telegram bot from command-line Install ------- MacOS: brew tap msoap/tools brew install shell2telegram # update: brew upgrade shell2telegram Or download binaries from: releases (OS X/Linux/Windows/RaspberryPi) Or build from source: # set $GOPATH if needed go install github.com/msoap/shell2telegram@latest ln -s $GOPATH/bin/shell2telegram /bin/shell2telegram # or add $GOPATH/bin to $PATH Or build image and run with Docker. Example of test-bot.Dockerfile for bot who say current date: FROM msoap/shell2telegram # may be install some alpine packages: # RUN apk add --no-cache ... ENV TB TOKEN= CMD [\"/date\", \"date\"] And build and run: docker build -f test-bot.Dockerfile -t test-bot . docker run --rm test-bot # or run with set token from command line docker run -e TB TOKEN= --rm test-bot Using snap (Ubuntu or any Linux distribution with snap): # install stable version: sudo snap install shell2telegram # install the latest version: sudo snap install --edge shell2telegram # update sudo snap refresh shell2telegram Notice: the snap-package has its own sandbox with the /bin , /usr/bin directories which are not equal to system-wide PATH directories. Usage ----- Get token from BotFather bot, and set TB TOKEN var in shell export TB TOKEN= shell2telegram [options] /chat command 'shell command' /chat command2 'shell command2' options: -a","default_branch":null,"files":null,"tree":[],"storefront":"/r/msoap","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/msoap/shell2telegram/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}