From cfb681403e015b24f9fc9a1df15d34850b6b1ba5 Mon Sep 17 00:00:00 2001 From: Levi <57452819+l3v11@users.noreply.github.com> Date: Fri, 19 Aug 2022 15:14:09 +0600 Subject: [PATCH] Change Telegraph domain to graph.org - This changes the Telegraph domain to graph.org since many users reported that telegra.ph domain has been blocked in India --- bot/__main__.py | 4 ++-- bot/helper/drive_utils/gdriveTools.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bot/__main__.py b/bot/__main__.py index 4ac260e2..9f4b70bd 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -144,8 +144,8 @@ def restart(update, context): def bot_help(update, context): button = ButtonMaker() - button.build_button("User", f"https://telegra.ph/{help_user}") - button.build_button("Admin", f"https://telegra.ph/{help_admin}") + button.build_button("User", f"https://graph.org/{help_user}") + button.build_button("Admin", f"https://graph.org/{help_admin}") sendMarkup(help_string, context.bot, update.message, InlineKeyboardMarkup(button.build_menu(2))) def main(): diff --git a/bot/helper/drive_utils/gdriveTools.py b/bot/helper/drive_utils/gdriveTools.py index d33437ef..956beef2 100644 --- a/bot/helper/drive_utils/gdriveTools.py +++ b/bot/helper/drive_utils/gdriveTools.py @@ -606,7 +606,7 @@ def drive_list(self, file_name): if i != 0: # Add previous page link - self.telegraph_content[i] += f'Previous' \ + self.telegraph_content[i] += f'Previous' \ f' | Page {i+1}/{total_pages}' else: self.telegraph_content[i] += f'Page {i+1}/{total_pages}' @@ -617,7 +617,7 @@ def drive_list(self, file_name): if i != 0: # Edit previous page to add next page link - self.telegraph_content[i-1] += f' | Next' + self.telegraph_content[i-1] += f' | Next' self.edit_page( TELEGRAPH[(acc_no - 1) if i % page_per_acc == 0 else acc_no], @@ -627,7 +627,7 @@ def drive_list(self, file_name): msg = f"Found {response_count} results matching '{file_name}' in {len(DRIVE_IDS)} Drives " \ f"(Time taken {round(time.time() - start_time, 2)}s)" button = ButtonMaker() - button.build_button("VIEW RESULTS 🗂️", f"https://telegra.ph/{self.path[0]}") + button.build_button("VIEW RESULTS 🗂️", f"https://graph.org/{self.path[0]}") return msg, InlineKeyboardMarkup(button.build_menu(1)) def create_page(self, acc, content):