Skip to content

Telegram - Server Bridge for up-down files, exec commands easily

Notifications You must be signed in to change notification settings

raifpy/tgServerBridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

tgServerBridge

Telegram - Server Bridge for up-down files, exec commands easily

Setup

  • Open @botfather on Telegram > Create bot, take note for bot token

  • Send message any json bot on Telegram for find user id (Example @JsonDumpBot) > take note for from-id

    export token="<yourBotToken>"
    export adminid="<yourUserID>"
    

Run

./bot

With screen: (ctrl + a + d on background )

screen -S myBot ./bot

Commands

/help > Show help message

/ls > list dir

/pwd > where am i

/cd > change dir

/exec ... > exec command | realtime |

<anyText> if text avaible and file; upload for user || if text avaible and dir; cd dir else show error

<anyDoc> upload for server

Compile

 git clone https://github.com/raifpy/tgServerBridge
 cd tgServerBridge
 go get -u gopkg.in/tucnak/telebot.v2
 go build -ldflags="-w -s" .

About

Telegram - Server Bridge for up-down files, exec commands easily

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages