diff --git a/README.md b/README.md index 640736c7..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). @@ -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: ``` diff --git a/app.json b/app.json index 29edde5f..6d9d00b2 100644 --- a/app.json +++ b/app.json @@ -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: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", "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", @@ -64,7 +72,7 @@ "formation": { "worker": { "quantity": 1, - "size": "free" + "size": "eco" } } } 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() 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"), diff --git a/configs.py b/configs.py index 1f8a17ec..2853d717 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) @@ -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**. 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 ) diff --git a/heroku.yml b/heroku.yml index 7b13190d..92b4e59f 100644 --- a/heroku.yml +++ b/heroku.yml @@ -1,3 +1,5 @@ build: docker: worker: Dockerfile +run: + worker: python3 bot.py 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 diff --git a/run cmd.txt b/run cmd.txt new file mode 100644 index 00000000..b2bfe556 --- /dev/null +++ b/run cmd.txt @@ -0,0 +1 @@ +gunicorn app:app & python3 bot.py