The bot forwards your messages to another group.
/ban
, /del
, /grant
, /kick
, etc.Python 3.9 and above is required
The following libraries are required:
api_id
and api_hash
, obtain them from telegramconfig.ini.default
to config.ini
.api_key
and api_hash
in config.ini
.api_token
in api_key
field.config.ini
.config.ini
.owner
field.replace_to_id
field with the user ID that the bot will be replaced with. custom_api_key
field of the configuration file. python3 repeater.py
or other command lines to run the program.owner
field./auth
./off
to the target group, vice versa.Command | Description | Reply to the message |
---|---|---|
/on or /off |
Switch on/off the bot | False |
/status |
check the user's authorization status | False |
/auth |
authorize to another user | True |
/ban |
put restrictions on the target user, a certain length of time can be specified (e.g. /ban 1m means to restrict the user for one minute) |
True |
/kick |
remove the user from the target group | True |
/fw |
forward a message to the target group using the bot account | True |
/get |
forward the original message to this group | True |
/del |
delete the selected message in the target group | True |
/sudo or /su |
gain admin access immediately for yourself in the target group | False |
/promote |
authorise other users to become admins | True |
/grant |
grant specify privileges to specify user in group | False |
/pin |
pin a message in group | True |
/warn |
send a warn to user with reason | True |
Special thanks to <unknown resource>
, who helped me with the translation.
Copyright (C) 2018-2021 github.com/googlehosts Group:Z
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/.