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•