teleterm

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2021 License: Apache-2.0

README

teleterm

Telegram Bot Exec Terminal Command codecov

you can exec command from your telegram

Demo


Video Demo & Tutorial : https://www.youtube.com/watch?v=AJOPngS-BsE


# Use Case - Controll Docker CLI - Control IoT Devices - Etc

Tested On

  • ubuntu 20.04
  • Mac OS 15

How To use

- install `go get github.com/alfiankan/teleterm/teleterm`
- see following example code
package main

import "github.com/alfiankan/teleterm/teleterm"

func main()  {
	teleterm.StartBot("your telegram bot token")
}

Available Bot Command

Command Desc
/lock <true/false> Lock/unlock acces to account
/cmd <terminal command> exec terminal command and directly get log
/cmdf <terminal command> exec terminal command then save log to file
/get <file path> Download File From server/host
send File When you send File directly saved to server or host

Version History

v1.0

  • read telegram token from .env file
  • exec command and directly get response log
  • exec command then save log to file
  • telegram user can receive log text
  • sending/uploading file [Document(not included > image, video, and audio)] to server/host device
  • Downloading File from server/host device

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL