MrMissx / Telegram_Forwarder

Simple telegram bot to forward message from channel/group
GNU General Public License v3.0
491 stars 460 forks source link

Telegram Forwarder v2 #77

Closed MrMissx closed 1 year ago

MrMissx commented 1 year ago

What's new

Breaking Changes

Configuration

There are two files mandatory for the bot to work .env and chat_list.json.

.env

Template env may be found in sample.env. Rename it to .env and fill in the values:

chat_list.json

Template chat_list may be found in chat_list.sample.json. Rename it to chat_list.json.

This file contains the list of chats to forward messages from and to. The bot expect it to be an Array of objects with the following structure:

[
    {
        "source": -10012345678,
        "destination": [-10011111111, -10022222222]
    }
]

You may add as many objects as you want. The bot will forward messages from all the chats in the source field to all the chats in the destination field. Duplicates are allowed as it already handled by the bot.