Permalink
Find file
b59b7cb Nov 1, 2016
63 lines (40 sloc) 1.32 KB

telegram plugin

This plugin can control shadowsocks through a telegram bot.

Usage

  1. Create a telegram bot with BotFather. He will give you a token for the bot.

  2. Edit config file to use telegram plugin:

    plugins:
      telegram:
        token: '12345678:********************'
        use: true
      flowSaver:
        use: true
    
  3. Start ssmgr with type m, and you can talk to your bot to control it.
    ssmgr -t m -m yourHost:yourPort

Command

Auth

  • auth Set manager user, the first user send 'auth' to bot will be the manager.

Help

  • help Show help message

Port

  • list Show port and password in current server
  • del {port} Delete port
  • add {port} {password} Add port and set password
  • pwd {port} {password} Change password

Server

  • listserver
  • switchserver {name}
  • delserver {name}
  • addserver {name} {host} {port} {password}
  • editserver {name} {newName} {host} {port} {password}

Flow

  • flow
  • flow{number}min
  • flow{number}hour

Screenshot

List

Telegram01

Flow

Telegram02