From 7029de8d78442dff6c7d99230e24de1dec328bc6 Mon Sep 17 00:00:00 2001 From: anonymousx97 <88324835+anonymousx97@users.noreply.github.com> Date: Sat, 9 Sep 2023 15:00:04 +0530 Subject: [PATCH] v2.3.1: Instagram shortcode fix, Add new vars in sample-config.env. --- app/api/instagram.py | 4 ++-- sample-config.env | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/api/instagram.py b/app/api/instagram.py index 090d92c..89c042c 100755 --- a/app/api/instagram.py +++ b/app/api/instagram.py @@ -11,8 +11,8 @@ API_KEYS = {"KEYS": Config.API_KEYS, "counter": 0} class Instagram(ScraperConfig): def __init__(self, url): super().__init__() - shortcode = os.path.basename(urlparse(url).path.rstrip("/")) - self.api_url = f"https://www.instagram.com/graphql/query?query_hash=2b0673e0dc4580674a88d426fe00ea90&variables=%7B%22shortcode%22%3A%22{shortcode}%22%7D" + self.shortcode = os.path.basename(urlparse(url).path.rstrip("/")) + self.api_url = f"https://www.instagram.com/graphql/query?query_hash=2b0673e0dc4580674a88d426fe00ea90&variables=%7B%22shortcode%22%3A%22{self.shortcode}%22%7D" self.url = url self.dump = True diff --git a/sample-config.env b/sample-config.env index 835a8c5..25451cb 100644 --- a/sample-config.env +++ b/sample-config.env @@ -20,6 +20,14 @@ BLOCKED_USERS_MESSAGE_ID = 0 DEV_MODE=0 # Change to 1 if you want exec, sh, shell commands +DISABLED_CHATS_MESSAGE_ID=0 +# If you wanna disable the auto DL in some chats. +# Users can use /dl, /down, /download to download videos. + + +DUMP_ID=0 +# To save API Calls log Instagram posts to forward them directly. + LOG_CHAT=-100..... # Log channel •Required•