Skip to content

Commit

Permalink
Change Telegraph domain to graph.org
Browse files Browse the repository at this point in the history
- This changes the Telegraph domain to graph.org since many users reported that telegra.ph domain has been blocked in India
  • Loading branch information
l3v11 authored Aug 19, 2022
1 parent 05372cd commit cfb6814
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
6 changes: 3 additions & 3 deletions bot/helper/drive_utils/gdriveTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ def drive_list(self, file_name):

if i != 0:
# Add previous page link
self.telegraph_content[i] += f'<b><a href="https://telegra.ph/{self.path[i-1]}">Previous</a>' \
self.telegraph_content[i] += f'<b><a href="https://graph.org/{self.path[i-1]}">Previous</a>' \
f' | Page {i+1}/{total_pages}</b>'
else:
self.telegraph_content[i] += f'<b>Page {i+1}/{total_pages}</b>'
Expand All @@ -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'<b> | <a href="https://telegra.ph/{self.path[i]}">Next</a></b>'
self.telegraph_content[i-1] += f'<b> | <a href="https://graph.org/{self.path[i]}">Next</a></b>'

self.edit_page(
TELEGRAPH[(acc_no - 1) if i % page_per_acc == 0 else acc_no],
Expand All @@ -627,7 +627,7 @@ def drive_list(self, file_name):
msg = f"<b>Found {response_count} results matching '{file_name}' in {len(DRIVE_IDS)} Drives</b> " \
f"<b>(Time taken {round(time.time() - start_time, 2)}s)</b>"
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):
Expand Down

0 comments on commit cfb6814

Please sign in to comment.