octopus

command module
v0.0.0-...-dcadda9 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 8 Imported by: 0

README

Octopus

A Telegram bot bridge other IM (qq, wechat, etc.) conversations together.

Dependencies

  • go
  • ffmpeg (optional for qq/wechat audio)

Docker

docker run -d -p 11111:11111 --name=octopus --restart=always -v octopus:/data lxduo/octopus:latest

Limbs

Documentation

Bot

Create a bot with @BotFather, get a token. Set /setjoingroups Enable and /setprivacy Disable

Configuration

  • configure.yaml
master:
  api_url: http://10.0.0.10:8081 # Optional, Telegram local bot api server
  local_mode: true # Optional, local server mode
  admin_id: # Required, Telegram user id (administrator)
  token:  1234567:xxxxxxxx # Required, Telegram bot token
  proxy: http://1.1.1.1:7890 # Optional, proxy for Telegram
  page_size: 10 # Optional, command list result pagination size
  archive: # Optional, archive client chat by topic
    - vendor: wechat # qq, wechat, etc
      uid: wxid_xxxxxxx # client id
      chat_id: 123456789 # topic enabled group id (grant related permissions to bot)
  telegraph: # Optional
    enable: true # Convert some message to telegra.ph article (e.g. QQ forward message)
  	proxy: http://1.1.1.1:7890 # Optional, proxy for telegra.ph
    tokens:
      - abcdefg # telegra.ph tokens

service:
  addr: 0.0.0.0:11111 # Required, listen address
  secret: hello # Required, user defined secret
  send_timeout: 3m # Optional

log:
  level: info

Command

All messages will be sent to the admin directly by default, you can archive chat by topic or /link specific remote chat to a Telegram group.

/help Show command list.
/link Manage remote chat link.
/chat Generate a remote chat head.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
db

Jump to

Keyboard shortcuts

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