From 8cc9e15f67ce7eab2fa49a491f0a2124f906ba13 Mon Sep 17 00:00:00 2001 From: royfds <74107306+royfds@users.noreply.github.com> Date: Wed, 6 Oct 2021 11:29:55 +0530 Subject: [PATCH 1/3] README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 47ab2ae..e818ad6 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Upload on Pdisk by Url, File and also by direct forward post from other channel. #### The Easy Way -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/OO7ROBot/pdisk_uploader) +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/royfds/pdisk_uploader) ##### Required Variables From aa453f8c4b06fd6169aeee62f4f603a3a31cc54e Mon Sep 17 00:00:00 2001 From: royfds <74107306+royfds@users.noreply.github.com> Date: Wed, 6 Oct 2021 11:31:49 +0530 Subject: [PATCH 2/3] app.json --- app.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index 213053c..a9bf565 100644 --- a/app.json +++ b/app.json @@ -6,8 +6,8 @@ "pdisk", "shortner" ], - "website": "https://telegram.me/MyTestBotZ", - "repository": "https://github.com/OO7ROBot/pdisk_uploader", + "website": "https://telegram.me/moviezbarn", + "repository": "https://github.com/royfds/pdisk_uploader", "env": { "BOT_TOKEN": { "description": "Your bot token (must add)", From 87186bc8718d7a7630972d3f02ec0059755aebeb Mon Sep 17 00:00:00 2001 From: royfds <74107306+royfds@users.noreply.github.com> Date: Wed, 6 Oct 2021 11:43:27 +0530 Subject: [PATCH 3/3] bot.py --- bot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index 5c72dc7..5c0a871 100644 --- a/bot.py +++ b/bot.py @@ -12,8 +12,8 @@ API_HASH = environ.get('API_HASH', 'eb06d4abfb49dc3eeb1aeb98ae0f581e') BOT_TOKEN = environ.get('BOT_TOKEN') PDISK_API_KEY = environ.get('PDISK_API_KEY') -CHANNEL = environ.get('CHANNEL', 'MyTestBotZ') -THUMB_URL = environ.get('THUMB_URL', 'https://telegra.ph/file/7389a320199583a2ac493.jpg') +CHANNEL = environ.get('CHANNEL', 'Moviezbarn') +THUMB_URL = environ.get('THUMB_URL', 'https://telegra.ph/file/7a3c7eeb40a1da7909576.jpg') bot = Client('pdisk bot', api_id=API_ID, @@ -27,7 +27,7 @@ async def start(bot, message): await message.reply( f"**Hiya 👋{message.chat.first_name}!**\n\n" - "**A Simple PDisk Uploader Bot.\n\n➠ Send Me Any Direct Link, YouTube Link Or Video Link I Will Upload To PDisk And Give Direct Link\n\nMade With❤BY @MyTestBotZ**") + "**A Simple PDisk Uploader Bot.\n\n➠ Send Me Any Direct Link, YouTube Link Or Video Link I Will Upload To PDisk And Give Direct Link\n\nMade With❤BY @moviezbarn**") @bot.on_message(filters.text & filters.private) @@ -93,7 +93,7 @@ async def pdisk_up(link): title_new = os.path.basename(title_new.path) title_pdisk = '@' + CHANNEL + title_new res = requests.get( - 'http://linkapi.net/open/create_item?link_type=link&content_src=' + link + '&source=2000&cover_url='+THUMB_URL+'&api_key=' + PDISK_API_KEY + '&dir_id=0&title=' + title_pdisk + '&description=Join_@MyTestBotZ_' + 'CHANNEL' + '_and_support_us') + 'http://linkapi.net/open/create_item?link_type=link&content_src=' + link + '&source=2000&cover_url='+THUMB_URL+'&api_key=' + PDISK_API_KEY + '&dir_id=0&title=' + title_pdisk + '&description=Join_@moviezbarn_' + 'CHANNEL' + '_and_support_us') data = res.json() data = dict(data) print(data) @@ -147,7 +147,7 @@ async def remove_username(new_List): async def addFooter(str): footer = """ ━━━━━━━━━━━━━━━ -⦿ Made With♥️BY @OO7ROBot +⦿ Made With♥️BY @moviezbarn ━━━━━━━━━━━━━━━ ✪ »JOIN CHANNEL ➡️ t.me/""" + CHANNEL return str + footer