From 532ddcfec047e66bb5f91f0f0e6945b603762bec Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 18:11:53 +0530 Subject: [PATCH 01/22] Update configs.py --- configs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs.py b/configs.py index 1f8a17ec..671c53a0 100644 --- a/configs.py +++ b/configs.py @@ -32,12 +32,12 @@ class Config(object): 🧑🏻‍💻 **Developer:** @AbirHasan2005 -👥 **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. From 48338d19523e8f9c443174ae268d184d270d3198 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 18:14:50 +0530 Subject: [PATCH 02/22] Update configs.py --- configs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs.py b/configs.py index 671c53a0..663bd478 100644 --- a/configs.py +++ b/configs.py @@ -30,7 +30,7 @@ class Config(object): 📡 **Hosted on:** [Heroku](https://heroku.com) -🧑🏻‍💻 **Developer:** @AbirHasan2005 +🧑🏻‍💻 **Developer:** @R_KOHLI 👥 **Support Group:** [Linux Repositories](https://t.me/movie_on1) @@ -43,7 +43,7 @@ class Config(object): 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**. From a38e1074de3d6d83c2c86fed26a595cf889d6dcb Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 18:21:03 +0530 Subject: [PATCH 03/22] Update bot.py --- bot.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bot.py b/bot.py index b3448b01..6b64073f 100644 --- a/bot.py +++ b/bot.py @@ -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"), @@ -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 @@ -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"), @@ -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"), @@ -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"), @@ -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"), From 23a7eb1193eed151b1b851b16a6dddf8398b8896 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 19:28:09 +0530 Subject: [PATCH 04/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 640736c7..f05eb28f 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,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: ``` From 48cf1b1fe26290856501f32a89eb6455c1775376 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 19:48:38 +0530 Subject: [PATCH 05/22] Update app.json --- app.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.json b/app.json index 29edde5f..e18a4bbf 100644 --- a/app.json +++ b/app.json @@ -7,9 +7,9 @@ "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://telegram.dog/movie_a1", + "success_url": "https://t.me/movie_on1", "env": { "API_ID": { "description": "Get this value from my.telegram.org or @TeleORG_Bot" From 748726a1709c534bbb7e85bd7efe01466269cd4c Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 23:03:00 +0530 Subject: [PATCH 06/22] Update save_media.py --- handlers/save_media.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/save_media.py b/handlers/save_media.py index e0aa3a9d..c97de5ac 100644 --- a/handlers/save_media.py +++ b/handlers/save_media.py @@ -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 ) @@ -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 ) From 2dadc9da49b3a3766d25535435f1f46a0e1e6e01 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 23:14:30 +0530 Subject: [PATCH 07/22] Update app.json --- app.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index e18a4bbf..b73f4071 100644 --- a/app.json +++ b/app.json @@ -1,6 +1,6 @@ { "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", @@ -8,7 +8,7 @@ "bot" ], "repository": "https://github.com/Dkmovie/PyroFilesStoreBot", - "website": "https://telegram.dog/movie_a1", + "website": "https://github.com/Dkmovie/", "success_url": "https://t.me/movie_on1", "env": { "API_ID": { From 3f3860ddf1f88570e7066e028f08e3659f789c08 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 23:35:02 +0530 Subject: [PATCH 08/22] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index f05eb28f..82bea3bc 100644 --- a/README.md +++ b/README.md @@ -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!) +

+ +[![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). From 18a096166e17d457f5bb3afa12b233924b4165ef Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 23:44:47 +0530 Subject: [PATCH 09/22] Update heroku.yml --- heroku.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/heroku.yml b/heroku.yml index 7b13190d..901004a2 100644 --- a/heroku.yml +++ b/heroku.yml @@ -1,3 +1,6 @@ build: docker: worker: Dockerfile +run: + worker: python3 bot.py + From 6e7413b187dd2a51e88ac153db8568e5b13faa15 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 23:45:08 +0530 Subject: [PATCH 10/22] Update heroku.yml --- heroku.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/heroku.yml b/heroku.yml index 901004a2..92b4e59f 100644 --- a/heroku.yml +++ b/heroku.yml @@ -3,4 +3,3 @@ build: worker: Dockerfile run: worker: python3 bot.py - From 0562b632442a13fa8c80ae1c769f9a316f9c2451 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 23:55:51 +0530 Subject: [PATCH 11/22] Update app.json --- app.json | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/app.json b/app.json index b73f4071..8883ade8 100644 --- a/app.json +++ b/app.json @@ -12,48 +12,56 @@ "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": "" }, "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": "" }, "BOT_TOKEN": { - "description": "Get this from @BotFather XD" + "description": "Get this from @BotFather XD", + "value": "" }, "BOT_USERNAME": { - "description": "Your Bot Username which you sent to @BotFather (Without [@])" + "description": "Your Bot Username which you sent to @BotFather (Without [@])", + "value": "" }, "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": "" }, "BOT_OWNER": { - "description": "Bot Owner UserID" + "description": "Bot Owner UserID", + "value": "" }, "DATABASE_URL": { - "description": "MongoDB Database URI for Saving UserID for Broadcast." + "description": "MongoDB Database URI for Saving UserID for Broadcast.", + "value": "" }, "UPDATES_CHANNEL": { "description": "ID of a Channel which you want to do Force Sub to use the bot. Example: -100123456789", - "required": false + "value": "false" }, "LOG_CHANNEL": { - "description": "Logs Channel ID for some Tracking XD. Example: -100123456789" + "description": "Logs Channel ID for some Tracking XD. Example: -100123456789", + "value": "" }, "BANNED_USERS": { "description": "Banned unwanted members", - "required": false + "value": "false" }, "BANNED_CHAT_IDS": { "description": "Banned unwanted channel IDs", - "required": false + "value": "false" }, "BROADCAST_AS_COPY": { "description": "Broadcast with Forward Tag or as Copy(Without Forward Tag). Value should be True/False !!", - "required": false + "value": "false" }, "FORWARD_AS_COPY": { "description": "If True all messages will be forwarder As Copy. If False all messages will be forwarder with Forward Tag. Value should be True/False !!", - "required": false + "value": "false" } }, "buildpacks": [ From 8b6b36a894e33668bc03c15b09ca68ebb252979a Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sat, 25 Feb 2023 23:59:06 +0530 Subject: [PATCH 12/22] Update app.json --- app.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app.json b/app.json index 8883ade8..aa10e064 100644 --- a/app.json +++ b/app.json @@ -13,31 +13,31 @@ "env": { "API_ID": { "description": "Get this value from my.telegram.org or @TeleORG_Bot", - "value": "" + "value": "14438754" }, "API_HASH": { "description": "Get this value from my.telegram.org or @TeleORG_Bot", - "value": "" + "value": "baeb7d71bd10d8b5d8a97fce7ad9707d" }, "BOT_TOKEN": { "description": "Get this from @BotFather XD", - "value": "" + "value": "6123434778:AAEAH6TrnZtlm5QEs87gwUsXuNGQjGpGx5Q" }, "BOT_USERNAME": { "description": "Your Bot Username which you sent to @BotFather (Without [@])", - "value": "" + "value": "Files_Store_V3_Bot" }, "DB_CHANNEL": { "description": "The Channel ID which will be used as Database. Example: -100123456789", - "value": "" + "value": "-1001812305626" }, "BOT_OWNER": { "description": "Bot Owner UserID", - "value": "" + "value": "5808599296" }, "DATABASE_URL": { "description": "MongoDB Database URI for Saving UserID for Broadcast.", - "value": "" + "value": "mongodb+srv://cccc:cccc@cluster0.7xrqyz3.mongodb.net/?retryWrites=true&w=majority" }, "UPDATES_CHANNEL": { "description": "ID of a Channel which you want to do Force Sub to use the bot. Example: -100123456789", @@ -45,7 +45,7 @@ }, "LOG_CHANNEL": { "description": "Logs Channel ID for some Tracking XD. Example: -100123456789", - "value": "" + "value": "-1001453863019" }, "BANNED_USERS": { "description": "Banned unwanted members", From 49b12ec3a05e8a270b67a18a9c0605021d762688 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sun, 26 Feb 2023 07:42:02 +0530 Subject: [PATCH 13/22] Update app.json --- app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.json b/app.json index aa10e064..65d66ba4 100644 --- a/app.json +++ b/app.json @@ -72,7 +72,7 @@ "formation": { "worker": { "quantity": 1, - "size": "free" + "size": "eco" } } } From c4b36acc31b024a01f2fb66cd893bd9ebf8dfbaf Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sun, 26 Feb 2023 07:46:22 +0530 Subject: [PATCH 14/22] Update configs.py --- configs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs.py b/configs.py index 663bd478..20b01883 100644 --- a/configs.py +++ b/configs.py @@ -13,10 +13,10 @@ class Config(object): DATABASE_URL = os.environ.get("DATABASE_URL") UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", "") LOG_CHANNEL = os.environ.get("LOG_CHANNEL", None) - BANNED_USERS = set(int(x) for x in os.environ.get("BANNED_USERS", "1234567890").split()) + BANNED_USERS = set(int(x) for x in os.environ.get("BANNED_USERS", ",").split()) FORWARD_AS_COPY = bool(os.environ.get("FORWARD_AS_COPY", True)) BROADCAST_AS_COPY = bool(os.environ.get("BROADCAST_AS_COPY", False)) - BANNED_CHAT_IDS = list(set(int(x) for x in os.environ.get("BANNED_CHAT_IDS", "-1001362659779 -1001255795497").split())) + BANNED_CHAT_IDS = list(set(int(x) for x in os.environ.get("BANNED_CHAT_IDS", ",").split())) OTHER_USERS_CAN_SAVE_FILE = bool(os.environ.get("OTHER_USERS_CAN_SAVE_FILE", True)) ABOUT_BOT_TEXT = f""" This is Permanent Files Store Bot! From ab44dd5302a8418b7e3603028987307970db198a Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sun, 26 Feb 2023 07:49:15 +0530 Subject: [PATCH 15/22] Update configs.py --- configs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs.py b/configs.py index 20b01883..1d54261f 100644 --- a/configs.py +++ b/configs.py @@ -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) From 49d817a31c393029cc8d8a89825982ee7f844073 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sun, 26 Feb 2023 07:52:08 +0530 Subject: [PATCH 16/22] Update configs.py --- configs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs.py b/configs.py index 1d54261f..1ca0b96b 100644 --- a/configs.py +++ b/configs.py @@ -13,10 +13,10 @@ class Config(object): DATABASE_URL = os.environ.get("DATABASE_URL") UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", "") LOG_CHANNEL = os.environ.get("LOG_CHANNEL", None) - BANNED_USERS = set(int(x) for x in os.environ.get("BANNED_USERS", ",").split()) + BANNED_USERS = set(int(x) for x in os.environ.get("BANNED_USERS", "").split()) FORWARD_AS_COPY = bool(os.environ.get("FORWARD_AS_COPY", True)) BROADCAST_AS_COPY = bool(os.environ.get("BROADCAST_AS_COPY", False)) - BANNED_CHAT_IDS = list(set(int(x) for x in os.environ.get("BANNED_CHAT_IDS", ",").split())) + BANNED_CHAT_IDS = list(set(int(x) for x in os.environ.get("BANNED_CHAT_IDS", "").split())) OTHER_USERS_CAN_SAVE_FILE = bool(os.environ.get("OTHER_USERS_CAN_SAVE_FILE", True)) ABOUT_BOT_TEXT = f""" This is Permanent Files Store Bot! From 29f54f9c3459464f148191f3e2cb408a38fd1482 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sun, 26 Feb 2023 07:57:00 +0530 Subject: [PATCH 17/22] Update app.json --- app.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app.json b/app.json index 65d66ba4..6d9d00b2 100644 --- a/app.json +++ b/app.json @@ -41,7 +41,7 @@ }, "UPDATES_CHANNEL": { "description": "ID of a Channel which you want to do Force Sub to use the bot. Example: -100123456789", - "value": "false" + "required": false }, "LOG_CHANNEL": { "description": "Logs Channel ID for some Tracking XD. Example: -100123456789", @@ -49,19 +49,19 @@ }, "BANNED_USERS": { "description": "Banned unwanted members", - "value": "false" + "required": false }, "BANNED_CHAT_IDS": { "description": "Banned unwanted channel IDs", - "value": "false" + "required": false }, "BROADCAST_AS_COPY": { "description": "Broadcast with Forward Tag or as Copy(Without Forward Tag). Value should be True/False !!", - "value": "false" + "required": false }, "FORWARD_AS_COPY": { "description": "If True all messages will be forwarder As Copy. If False all messages will be forwarder with Forward Tag. Value should be True/False !!", - "value": "false" + "required": false } }, "buildpacks": [ From 5f73f11616220695f29f27034fe2ebbe5696e2e4 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Sun, 26 Feb 2023 07:58:54 +0530 Subject: [PATCH 18/22] Update configs.py --- configs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs.py b/configs.py index 1ca0b96b..2853d717 100644 --- a/configs.py +++ b/configs.py @@ -13,10 +13,10 @@ class Config(object): DATABASE_URL = os.environ.get("DATABASE_URL") UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", "") LOG_CHANNEL = os.environ.get("LOG_CHANNEL", None) - BANNED_USERS = set(int(x) for x in os.environ.get("BANNED_USERS", "").split()) + BANNED_USERS = set(int(x) for x in os.environ.get("BANNED_USERS", "1234567890").split()) FORWARD_AS_COPY = bool(os.environ.get("FORWARD_AS_COPY", True)) BROADCAST_AS_COPY = bool(os.environ.get("BROADCAST_AS_COPY", False)) - BANNED_CHAT_IDS = list(set(int(x) for x in os.environ.get("BANNED_CHAT_IDS", "").split())) + BANNED_CHAT_IDS = list(set(int(x) for x in os.environ.get("BANNED_CHAT_IDS", "-1001362659779 -1001255795497").split())) OTHER_USERS_CAN_SAVE_FILE = bool(os.environ.get("OTHER_USERS_CAN_SAVE_FILE", True)) ABOUT_BOT_TEXT = f""" This is Permanent Files Store Bot! From e87acd0485262b89e79f6ec72941ca63ab53582f Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Thu, 16 Mar 2023 08:11:30 +0530 Subject: [PATCH 19/22] Create app.py --- app.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app.py diff --git a/app.py b/app.py new file mode 100644 index 00000000..0c9e1810 --- /dev/null +++ b/app.py @@ -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() From 42aaa937f8ba30e6584c927d8e04e214409b2036 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Thu, 16 Mar 2023 08:12:23 +0530 Subject: [PATCH 20/22] Update requirements.txt --- requirements.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requirements.txt b/requirements.txt index b9ad5acd..a45b6533 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,6 @@ motor aiofiles dnspython psutil +Flask==2.2.2 +gunicorn==20.1.0 +aiohttp==3.8.1 From a636af50c4ed98f0d93059d7a330c330019ba6c8 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Thu, 16 Mar 2023 08:13:06 +0530 Subject: [PATCH 21/22] Create run cmd.txt --- run cmd.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 run cmd.txt diff --git a/run cmd.txt b/run cmd.txt new file mode 100644 index 00000000..ca82f182 --- /dev/null +++ b/run cmd.txt @@ -0,0 +1 @@ +gunicorn app:app & python3 main.py From a8c2ee336c1772de1bcbb350ce908aed12cb9f32 Mon Sep 17 00:00:00 2001 From: Dkmovie <99384833+Dkmovie@users.noreply.github.com> Date: Thu, 16 Mar 2023 08:13:42 +0530 Subject: [PATCH 22/22] Update run cmd.txt --- run cmd.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run cmd.txt b/run cmd.txt index ca82f182..b2bfe556 100644 --- a/run cmd.txt +++ b/run cmd.txt @@ -1 +1 @@ -gunicorn app:app & python3 main.py +gunicorn app:app & python3 bot.py