Skip to content

truetesttea/Things-Forward-telegram

 
 

Repository files navigation

Message-Forwarding Bot

Automatically forward the target message

Note

This major version is not compatible with previous major versions.

Technical support for previous versions is no longer provided.

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

Operating Environment

Python 3.7 and above is required

The following libraries are required:

  • pyrogram
  • asyncpg
  • aioredis

Feature

  • Support any media except voice messges.
  • 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 and recover blacklists 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
  • Copy config.ini.default to config.ini
  • Edit forward target
  • Set up PostgreSQL database and tables
  • Run forward.py

License

Copyright (C) 2018-2021 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 https://www.gnu.org/licenses/.

About

Automatic forwarding message on Telegram.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%