Skip to content

Commit

Permalink
Version 1.6 Release
Browse files Browse the repository at this point in the history
* changed code to work with latest ptbv20 library
* removed broken links
  • Loading branch information
artis7eer committed Jan 21, 2023
1 parent 5b01bb2 commit 60a708c
Show file tree
Hide file tree
Showing 13 changed files with 137 additions and 262 deletions.
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

43 changes: 10 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
## Forward Tag Remover Bot 🤖
>A Telegram Bot 🤖 to hide forward source
<br/>
# Forward Tag Remover Bot 🤖

### 🤗Express Your ❤️ With A Star ⭐️ To The Repo And Donation😇
>A Telegram Bot 🤖 to hide forward source
## 🤗Express Your ❤️ With A Star ⭐️ To The Repo And Donation😇

```
```bash
Bitcoin ->
bc1qt4andmh0f269rplanc27mvesnm24qg4pl235m2

Expand All @@ -21,8 +19,6 @@ qzl5kjhxrw73rcvr6ska3wzksu2vqsa20s4nt0ty8m

```

<br/>

[![ForTheBadge built-with-love](http://ForTheBadge.com/images/badges/built-with-love.svg)](https://GitHub.com/Artis7eeR/)

[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
Expand All @@ -33,24 +29,18 @@ qzl5kjhxrw73rcvr6ska3wzksu2vqsa20s4nt0ty8m
[![GitHub forks](https://img.shields.io/github/forks/Artis7eeR/ForwardTagRemoverBot.svg?style=social&label=Fork)](https://GitHub.com/Artis7eeR/ForwardTagRemoverBot/network/)
[![GitHub stars](https://img.shields.io/github/stars/Artis7eeR/ForwardTagRemoverBot.svg?style=social&label=Star)](https://github.com/Artis7eeR/ForwardTagRemoverBot/)


[**[See Our Video Here To Know How To Build Bot With Coding](https://youtu.be/swg6un2N4Fk)**]🎞️

<br/>
[**[Tutorial Video](https://youtu.be/swg6un2N4Fk)**]🎞️

### Features 🔥

- Hide **File Source** From Forwarded Files 😊
- Support For **Adding Caption** To Audio,Files,Video And Voice 😊

<br/>

### Installation (Locally) 💻

>Make Sure You Have Python Installed On Your Device

```
```bash
#Clone the repo👾
git clone https://github.com/Artis7eeR/ForwardTagRemoverBot.git

Expand All @@ -60,27 +50,17 @@ qzl5kjhxrw73rcvr6ska3wzksu2vqsa20s4nt0ty8m
#Install requirements🎯
pip install -r requirements.txt

#edit the bot token in config file📝
nano config.py
#Add BOT_TOKEN to .env file
BOT_TOKEN=<YOUR-BOT-TOKEN>

#Finally Run The Bot🤖
python bot.py

```
<br/>

### Installation (Cloud) 🌩

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Artis7eer/ForwardTagRemoverBot/tree/main)

<br/>

### Variables ⚙️
**BOT_TOKEN: Get this value from [BotFather](https://telegram.dog/Botfather)**

### [Demo Bot](https://telegram.dog/Anonforwabot) 🔥

<br/>
**BOT_TOKEN: Get this value from [BotFather](https://telegram.dog/Botfather)**

## Bugs 🐞🐞

Expand All @@ -89,7 +69,4 @@ qzl5kjhxrw73rcvr6ska3wzksu2vqsa20s4nt0ty8m

### Contributions are Invited 🙂

**©[Artis7eeR](https://github.com/Artis7eeR)**



**©[Abdul Razaq](https://github.com/Artis7eeR)**
14 changes: 0 additions & 14 deletions app.json

This file was deleted.

86 changes: 38 additions & 48 deletions bot.py
Original file line number Diff line number Diff line change
@@ -1,55 +1,45 @@
# ForwardTagRemoverBot - A Telegram Bot To Hide Forward Source
#Copyright (C) 2020 by Rasak <https://github.com/Artis7eeR>
#ForwardTagRemoverBot is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.

#ForwardTagRemoverBot 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 General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.


from telegram.ext import Filters,Updater,MessageHandler,CommandHandler
from commands.commands import *
from functions.functions import *
from caption.setCaption import setCaption
import os
# Copyright (C) 2023 by Abdul Razaq <https://github.com/Artis7eeR>
# ForwardTagRemoverBot is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# ForwardTagRemoverBot 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 General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.


import logging
from telegram.ext import (
filters,
ApplicationBuilder,
CommandHandler,
MessageHandler
)

from plugins.__main__ import *
from config import Config

updater=Updater(Config.TOKEN,use_context=True)
dp=updater.dispatcher
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO
)


#/start
dp.add_handler(CommandHandler('start',startMessage))
#/help
dp.add_handler(CommandHandler('help',helpMessage))
def main():
bot = ApplicationBuilder().token(Config.BOT_TOKEN).build()
bot.add_handler(CommandHandler('start', startMessage))
bot.add_handler(CommandHandler('help', helpMessage))
bot.add_handler(MessageHandler(filters.REPLY, handleCaption))
bot.add_handler(MessageHandler(
filters.ALL & ~filters.COMMAND, handleMessage))
bot.run_polling()

#Files
dp.add_handler(MessageHandler(Filters.document,sendFile))

#Media
dp.add_handler(MessageHandler(Filters.video,sendMedia))

#Photos
dp.add_handler(MessageHandler(Filters.photo,sendPhoto))

#Text & Caption
dp.add_handler(MessageHandler(Filters.text,setCaption))

#Stickers
dp.add_handler(MessageHandler(Filters.sticker,sendSticker))

#Voice
dp.add_handler(MessageHandler(Filters.voice,sendVoice))

#Audio
dp.add_handler(MessageHandler(Filters.audio,sendAudio))

updater.start_polling()
updater.idle()
if __name__ == '__main__':
main()
39 changes: 0 additions & 39 deletions caption/setCaption.py

This file was deleted.

45 changes: 0 additions & 45 deletions commands/commands.py

This file was deleted.

39 changes: 22 additions & 17 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
# ForwardTagRemoverBot - A Telegram Bot To Hide Forward Source
#Copyright (C) 2020 by Rasak <https://github.com/Artis7eeR>
#ForwardTagRemoverBot is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
# Copyright (C) 2023 by Abdul Razaq <https://github.com/Artis7eeR>
# ForwardTagRemoverBot is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

#ForwardTagRemoverBot 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 General Public License for more details.
# ForwardTagRemoverBot 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 General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.


import os
from dotenv import load_dotenv

load_dotenv()

class Config:

TOKEN=os.environ.get("BOT_TOKEN",None)
SOURCE="https://github.com/Artis7eeR/ForwardTagRemoverBot"
START_TEXT="Hi [{}](tg://user?id={})\nI am A Forward Tag remover Bot.Send /help To Know What I Can Do \n ©Artis7eeR"
HELP_TEXT="Forward Me A File,Video,Audio,Photo or Anything And \nI will Send You the File Back\n\n`How to Set Caption?`\nReply Caption to a File,Photo,Audio,Media"


BOT_TOKEN = os.environ.get("BOT_TOKEN", None)
SOURCE = "https://github.com/Artis7eeR/ForwardTagRemoverBot"
START_TEXT = """
Hi [{}](tg://user?id={})
I am A Forward Tag remover Bot.
Send /help to know more ©[Abdul Razaq](https://github.com/artis7eer)"""
HELP_TEXT = "Forward Me A File,Video,Audio,Photo or Anything And \nI will Send You the File Back\n\n`How to Set Caption?`\nReply Caption to a File,Photo,Audio,Media"
Loading

0 comments on commit 60a708c

Please sign in to comment.