Skip to content

XmJwit/forwardscoverbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ForwardsCoverBot

This telegram bot just echoes any message you send it or modify for him. If you don't like telegram forwards, before sending a message, send the message to the bot, then forward the message that the bot returns to the user you were chatting with. In case he will forward the message, it will have the name of the bot in the forward label. It supports anything and respect the formatting style of the text.

How to run this bot by you:

To be sure that when you send messages to this bot to anonymize them it doesn't forward your message in other chats (it doesn't), you may want to run a your own instance.

Deploy Bot in Docker

Install Docker:

bash <(curl -fsSL https://get.docker.com) --mirror Aliyun

Creat Folder and Config File

mkdir /home/forwardscoverbot/  /home/forwardscoverbot/config /home/forwardscoverbot/database
vim /home/forwardscoverbot/config/config.yaml

/home can be replaced by your path.

So you should write down some info of your bot:

bot_token: "token"
db_path: "database/database.db"
admins: 
- 1234

It will be like this picture: Config File

The token of the bot, you get from @BotFather (type: str) admins is a list containing the telegram ids of the admins of the bot, you get from @IDBot

Pull and Run Bot

docker run -dit \
   -v /home/forwardscoverbot/config:/forwardscoverbot/config \
   -v /home/forwardscoverbot/database:/forwardscoverbot/database \
   --name forwardscoverbot \
   --restart always \
   yourwit/forwardscoverbot:latest

/home can be replaced by your path.

Deploy Bot in VPS

If you want to run this bot in VPS by yourself:

Clone and install:

cd path
git clone https://github.com/91DarioDev/forwardscoverbot
cd forwardscoverbot
pip install .

Config the bot:

  • open forwardscoverbot/config/config.example.yaml
  • select all and copy
  • create a file forwardscoverbot/config/config.yaml
  • paste and replace the values with real values
  • save and close

Run the bot:

forwardscoverbot

Note: In case you want to call forwardscoverbot from another path, you can, but you have to specify the path of the config.yaml file as first argument in the cli. Example:

fowardscoverbot path/forwardscoverbot/config/config.yaml

Upgrade the bot:

cd path/forwardscoverbot
git pull https://github.com/91DarioDev/forwardscoverbot
pip install --upgrade .

How to use it:

  • send messages to the bot to get echoed messages

Commands:

  • /start, /help - replies with a welcome message
  • /disablewebpagepreview- remove the link preview from an echoed message
  • /stats - get statistics about the use of the bot (admins only)
  • /removecaption - remove caption from a message
  • /addcaption - add or overwrite a caption to a message
  • /removebuttons - remove buttons from a message
  • /addbuttons - addbuttons to the message

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published