Coder Social home page Coder Social logo

muse's Introduction

Muse

Muse is a telegram bot that forwards message from some Channels to the receivers.
This project is still under development. More features will be added in the future.
The table below shows the current status of the features:

Feature Text Photo / Video Audio File Media Group
Forward
Reply
Edit - -

All of these features will be implemented.

Overview

Bot API Wrapper Conf Manager Log Manager
telegram-bot-api v5 spf13/viper sirupsen/logrus

Getting Started

  1. Apply for a Telegram Bot from BotFather.
  2. Download the source code files and compile it.
  3. Create a config file under the same directory of the binary file, and set it correctly.
  4. Run. Enjoy.

Configuration

A configuration file named conf.yaml needs to be placed under the same directory of the binary file.
The configuration file needs to be in YAML format. Here is an example:

bot:
  token: TokenStingOfYourBot  # you need to get this from @BotFather
  debug: false                # decide whether the program is in debug mode
rule:                  # the ID and channel-username you want to forward from/to
  -1004998307033:      # sender
    - -1001699850137   # receiver
    - -10052614894123  # receiver
  5821739913:          # sender
    - -1001699850137   # receiver

The senders are always Telegram channels, and the receivers may vary: channels, groups, or maybe some users.
If you set sender as a user, or a group, then the program will simply ignore it.

Understanding the "rule" field in configuration file

The following YAML piece:

rule:
  1:
    - 2
    - 3
  2:
    - 3
  3: 
    - 1
    - 4
  5:
    - 6
  7:
    - 6

Means the following forward relation:

Explain relation using a graph

muse's People

Contributors

ralxyz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.