All Projects → KunoiSayami → Things-Forward-telegram

KunoiSayami / Things-Forward-telegram

Licence: AGPL-3.0 License
Automatic forwarding message on Telegram.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

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
  • Copy config.ini.default to config.ini
  • Edit forward target
  • Set up PostgreSQL database and tables
  • Run forward.py

License

Copyright (C) 2018-2022 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/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].