Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web #52

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Web #52

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
![Typing SVG](https://readme-typing-svg.herokuapp.com/?lines=FILR+STORE+BOT+!;CREATED+BY+TECHNICAL+CYNITE!;A+ADVANCE+BOT+WITH+COOL+FEATURES!)
</p>

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Dkmovie/PyroFilesStoreBot)


# PyroFilesStoreBot
This is Telegram Parmanent Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasan2005).

Expand Down Expand Up @@ -42,7 +48,7 @@ This is Telegram Parmanent Files Store Bot by [@AbirHasan2005](https://github.co
[![YouTube](https://img.shields.io/badge/YouTube-Video%20Tutorial-red?logo=youtube)](https://youtu.be/hHu2RaePhwI)

### Deploy Now:
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/AbirHasan2005/PyroFilesStoreBot)
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Dkmovie/PyroFilesStoreBot)

## Commands:
```
Expand Down
34 changes: 21 additions & 13 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,51 @@
{
"name": "Telegram Files Store Bot",
"description": "A Telegram Files Store Bot in Pyrogram by @AbirHasan2005",
"description": "A Telegram Files Store Bot in Pyrogram by @R_KOHLI",
"keywords": [
"telegram",
"files",
"store",
"bot"
],
"repository": "https://github.com/AbirHasan2005/PyroFilesStoreBot",
"website": "https://telegram.dog/AbirHasan2005",
"success_url": "https://t.me/Discovery_Updates",
"repository": "https://github.com/Dkmovie/PyroFilesStoreBot",
"website": "https://github.com/Dkmovie/",
"success_url": "https://t.me/movie_on1",
"env": {
"API_ID": {
"description": "Get this value from my.telegram.org or @TeleORG_Bot"
"description": "Get this value from my.telegram.org or @TeleORG_Bot",
"value": "14438754"
},
"API_HASH": {
"description": "Get this value from my.telegram.org or @TeleORG_Bot"
"description": "Get this value from my.telegram.org or @TeleORG_Bot",
"value": "baeb7d71bd10d8b5d8a97fce7ad9707d"
},
"BOT_TOKEN": {
"description": "Get this from @BotFather XD"
"description": "Get this from @BotFather XD",
"value": "6123434778:AAEAH6TrnZtlm5QEs87gwUsXuNGQjGpGx5Q"
},
"BOT_USERNAME": {
"description": "Your Bot Username which you sent to @BotFather (Without [@])"
"description": "Your Bot Username which you sent to @BotFather (Without [@])",
"value": "Files_Store_V3_Bot"
},
"DB_CHANNEL": {
"description": "The Channel ID which will be used as Database. Example: -100123456789"
"description": "The Channel ID which will be used as Database. Example: -100123456789",
"value": "-1001812305626"
},
"BOT_OWNER": {
"description": "Bot Owner UserID"
"description": "Bot Owner UserID",
"value": "5808599296"
},
"DATABASE_URL": {
"description": "MongoDB Database URI for Saving UserID for Broadcast."
"description": "MongoDB Database URI for Saving UserID for Broadcast.",
"value": "mongodb+srv://cccc:[email protected]/?retryWrites=true&w=majority"
},
"UPDATES_CHANNEL": {
"description": "ID of a Channel which you want to do Force Sub to use the bot. Example: -100123456789",
"required": false
},
"LOG_CHANNEL": {
"description": "Logs Channel ID for some Tracking XD. Example: -100123456789"
"description": "Logs Channel ID for some Tracking XD. Example: -100123456789",
"value": "-1001453863019"
},
"BANNED_USERS": {
"description": "Banned unwanted members",
Expand All @@ -64,7 +72,7 @@
"formation": {
"worker": {
"quantity": 1,
"size": "free"
"size": "eco"
}
}
}
10 changes: 10 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
return 'https://t.me/movie_a1'


if __name__ == "__main__":
app.run()
18 changes: 9 additions & 9 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ async def start(bot: Client, cmd: Message):
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Support Group", url="https://t.me/JoinOT"),
InlineKeyboardButton("Bots Channel", url="https://t.me/Discovery_Updates")
InlineKeyboardButton("Support Group", url="https://t.me/movie_on1"),
InlineKeyboardButton("Bots Channel", url="https://t.me/movie_a1")
],
[
InlineKeyboardButton("About Bot", callback_data="aboutbot"),
Expand Down Expand Up @@ -120,7 +120,7 @@ async def main(bot: Client, message: Message):
return

if message.from_user.id in Config.BANNED_USERS:
await message.reply_text("Sorry, You are banned!\n\nContact [Support Group](https://t.me/JoinOT)",
await message.reply_text("Sorry, You are banned!\n\nContact [Support Group](https://t.me/movie_on1)",
disable_web_page_preview=True)
return

Expand Down Expand Up @@ -315,7 +315,7 @@ async def button(bot: Client, cmd: CallbackQuery):
[
[
InlineKeyboardButton("Source Codes of Bot",
url="https://github.com/AbirHasan2005/PyroFilesStoreBot")
url="https://github.com/Dkmovie/PyroFilesStoreBot")
],
[
InlineKeyboardButton("Go Home", callback_data="gotohome"),
Expand All @@ -333,7 +333,7 @@ async def button(bot: Client, cmd: CallbackQuery):
[
[
InlineKeyboardButton("Source Codes of Bot",
url="https://github.com/AbirHasan2005/PyroFilesStoreBot")
url="https://github.com/Dkmovie/PyroFilesStoreBot")
],
[
InlineKeyboardButton("About Bot", callback_data="aboutbot"),
Expand All @@ -350,8 +350,8 @@ async def button(bot: Client, cmd: CallbackQuery):
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Support Group", url="https://t.me/JoinOT"),
InlineKeyboardButton("Bots Channel", url="https://t.me/Discovery_Updates")
InlineKeyboardButton("Support Group", url="https://t.me/movie_on1"),
InlineKeyboardButton("Bots Channel", url="https://t.me/movie_a1")
],
[
InlineKeyboardButton("About Bot", callback_data="aboutbot"),
Expand Down Expand Up @@ -404,8 +404,8 @@ async def button(bot: Client, cmd: CallbackQuery):
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton("Support Group", url="https://t.me/JoinOT"),
InlineKeyboardButton("Bots Channel", url="https://t.me/Discovery_Updates")
InlineKeyboardButton("Support Group", url="https://t.m/movie_on1"),
InlineKeyboardButton("Bots Channel", url="https://t.me/movie_a1")
],
[
InlineKeyboardButton("About Bot", callback_data="aboutbot"),
Expand Down
12 changes: 6 additions & 6 deletions configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Config(object):
BOT_TOKEN = os.environ.get("BOT_TOKEN")
BOT_USERNAME = os.environ.get("BOT_USERNAME")
DB_CHANNEL = int(os.environ.get("DB_CHANNEL", "-100"))
BOT_OWNER = int(os.environ.get("BOT_OWNER", "1445283714"))
BOT_OWNER = int(os.environ.get("BOT_OWNER", "5808599296"))
DATABASE_URL = os.environ.get("DATABASE_URL")
UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", "")
LOG_CHANNEL = os.environ.get("LOG_CHANNEL", None)
Expand All @@ -30,20 +30,20 @@ class Config(object):

📡 **Hosted on:** [Heroku](https://heroku.com)

🧑🏻‍💻 **Developer:** @AbirHasan2005
🧑🏻‍💻 **Developer:** @R_KOHLI

👥 **Support Group:** [Linux Repositories](https://t.me/DevsZone)
👥 **Support Group:** [Linux Repositories](https://t.me/movie_on1)

📢 **Updates Channel:** [Discovery Projects](https://t.me/Discovery_Updates)
📢 **Updates Channel:** [Discovery Projects](https://t.me/movie)
"""
ABOUT_DEV_TEXT = f"""
🧑🏻‍💻 **Developer:** @AbirHasan2005
🧑🏻‍💻 **Developer:** @R_KOHLI

Developer is Super Noob. Just Learning from Official Docs. Please Donate the developer for Keeping the Service Alive.

Also remember that developer will Delete Adult Contents from Database. So better don't Store Those Kind of Things.

[Donate Now](https://www.paypal.me/AbirHasan2005) (PayPal)
[Donate Now](https://www.paypal.me/) (PayPal)
"""
HOME_TEXT = """
Hi, [{}](tg://user?id={})\n\nThis is Permanent **File Store Bot**.
Expand Down
8 changes: 4 additions & 4 deletions handlers/save_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ async def save_batch_media_in_channel(bot: Client, editable: Message, message_id
f"Just Click the link to get your files!",
reply_markup=InlineKeyboardMarkup(
[[InlineKeyboardButton("Open Link", url=share_link)],
[InlineKeyboardButton("Bots Channel", url="https://t.me/Discovery_Updates"),
InlineKeyboardButton("Support Group", url="https://t.me/JoinOT")]]
[InlineKeyboardButton("Bots Channel", url="https://t.me/movie_a1"),
InlineKeyboardButton("Support Group", url="https://t.me/movie_on1")]]
),
disable_web_page_preview=True
)
Expand Down Expand Up @@ -94,8 +94,8 @@ async def save_media_in_channel(bot: Client, editable: Message, message: Message
"Just Click the link to get your file!",
reply_markup=InlineKeyboardMarkup(
[[InlineKeyboardButton("Open Link", url=share_link)],
[InlineKeyboardButton("Bots Channel", url="https://t.me/Discovery_Updates"),
InlineKeyboardButton("Support Group", url="https://t.me/JoinOT")]]
[InlineKeyboardButton("Bots Channel", url="https://t.me/movie_a1"),
InlineKeyboardButton("Support Group", url="https://t.me/movie_on1")]]
),
disable_web_page_preview=True
)
Expand Down
2 changes: 2 additions & 0 deletions heroku.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
build:
docker:
worker: Dockerfile
run:
worker: python3 bot.py
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ motor
aiofiles
dnspython
psutil
Flask==2.2.2
gunicorn==20.1.0
aiohttp==3.8.1
1 change: 1 addition & 0 deletions run cmd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gunicorn app:app & python3 bot.py