Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/KunoiSayami/Things-Forward-telegram

Automatic forwarding message on Telegram.
https://github.com/KunoiSayami/Things-Forward-telegram

telegram

Last synced: about 1 month ago
JSON representation

Automatic forwarding message on Telegram.

Awesome Lists containing this project

README

        

# Message-Forwarding Bot

## Note

This major version is not compatible with previous major versions.

Technical support for previous versions is no longer provided.

If you want to update to the latest version, please update the configuration file according to `config.ini.default`.

## Operating Environment

Python 3.9 and above is required

The following libraries are required:

- pyrogram
- asyncpg
- aioredis

## Feature

* Support any media except voice messages.
* Use PostgreSQL engine to check if the target media is duplicated.
* Collect all the videos and pictures from the target group or channel.
* Customized forwarding methods including Blacklist.
* The time interval for message forwarding is customized to avoid certain risks including banned accounts.
* Logging function is supported.
* Prevent possible loss of configuration files by writing configuration files by command at runtime.
* Set up forwarding in a more convenient way.
* Forward the warning messages in the log to a specified group.
* Document channel only handles forwarding video and image files.
* If you have the authorized password, you can send authorized code to the bot account to get the permission.
* By using command lines, users can delete all the messages from a certain user in the blacklist.
* Caption longer than 20 characters will be replaced with the sender's user_id and will be re-sent by the bot. (Optional)

## How to use

* If you don't have `api_id` and `api_hash`, obtain them from [telegram](https://my.telegram.org/apps)
* Copy `config.ini.default` to `config.ini`
* Edit forward target
* Set up PostgreSQL database and tables
* Run `forward.py`

## License

[![](https://www.gnu.org/graphics/agplv3-155x51.png)](https://www.gnu.org/licenses/agpl-3.0.txt)

Copyright (C) 2018-2023 KunoiSayami

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see .