From cf6dbd6039d3fcd4a75b159d07d8247b5e52e420 Mon Sep 17 00:00:00 2001 From: royfds <74107306+royfds@users.noreply.github.com> Date: Wed, 6 Oct 2021 22:47:16 +0530 Subject: [PATCH 1/4] bot.py --- bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index 48fe147..1b22f65 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) @@ -150,7 +150,7 @@ async def addFooter(str): Note : Your Video File is Available on Above LINK ones Upload Process is Complete, it Take Time Depend on Your File Size & My Server Upload Speed So,be Patient 😴😴😴😴 ━━━━━━━━━━━━━━━ -⦿ Made With♥️BY @OO7ROBot +⦿ Made With♥️BY @moviezbarn ━━━━━━━━━━━━━━━ ✪ »JOIN CHANNEL ➡️ t.me/""" + CHANNEL return str + footer From e78a730a14edb8648c0e66c5ce77709666443049 Mon Sep 17 00:00:00 2001 From: royfds <74107306+royfds@users.noreply.github.com> Date: Wed, 6 Oct 2021 22:49:26 +0530 Subject: [PATCH 2/4] bot.py --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 1b22f65..a7400c9 100644 --- a/bot.py +++ b/bot.py @@ -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) From da10458b08725f4de4d85de181642214763d7bf5 Mon Sep 17 00:00:00 2001 From: royfds <74107306+royfds@users.noreply.github.com> Date: Wed, 6 Oct 2021 22:51:03 +0530 Subject: [PATCH 3/4] app.json --- app.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index 9eecb47..0754a34 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 727068c2d625949077dffef62905393b236e722b Mon Sep 17 00:00:00 2001 From: royfds <74107306+royfds@users.noreply.github.com> Date: Wed, 6 Oct 2021 22:52:33 +0530 Subject: [PATCH 4/4] 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