Coder Social home page Coder Social logo

tree-new-bee-bot's Introduction

转发 TreeNewBee 消息的Telegram(或其他app) Bot

Feature

  • 转发 TreeNewBee 消息到 Telegram 群
  • 转发 Telegram 群消息到 TreeNewBee

TODO

  • 图片、表情等的转发

使用:

Telegram Bot 准备

  1. 在 Telegram 私聊 BotFather ,创建Bot,记下 token
  2. 将Bot拉入群,设为管理员(管理权限可以都去掉,只是为了能读取到所以消息)
  3. 群内发消息
  4. 访问 https://api.telegram.org/bot{你的token}/getUpdates 可以在响应里面看到刚发的消息,里面有chat的id,即群ID,记下备用。

启动Bot

  1. mvn clean package
  2. 编辑一个 config.json 配置文件:
{
  "telegram.chatId": 555555555555, /*请替换为 Telegram 群ID*/
  "telegram.botToken": "44444444444:xxxxxxxxxxxxxxx 请替换为bot的token",
  "treeNewBee.server": "请替换为 TreeNewBee 服务地址",
  "treeNewBee.port": 32167, /*请替换为 TreeNewBee 端口*/
  "treeNewBee.nickname": "昵称,非必填,默认 '3群转发Bot' "
}
  1. 启动 java -jar target/tree-new-bee-bot-***.jar -conf config.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.