v2.3.1: Instagram shortcode fix, Add new vars in sample-config.env.

This commit is contained in:
anonymousx97 2023-09-09 15:00:04 +05:30
parent 7b4c8a2446
commit 7029de8d78
2 changed files with 10 additions and 2 deletions

View File

@ -11,8 +11,8 @@ API_KEYS = {"KEYS": Config.API_KEYS, "counter": 0}
class Instagram(ScraperConfig): class Instagram(ScraperConfig):
def __init__(self, url): def __init__(self, url):
super().__init__() super().__init__()
shortcode = os.path.basename(urlparse(url).path.rstrip("/")) 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{shortcode}%22%7D" 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.url = url
self.dump = True self.dump = True

View File

@ -20,6 +20,14 @@ BLOCKED_USERS_MESSAGE_ID = 0
DEV_MODE=0 DEV_MODE=0
# Change to 1 if you want exec, sh, shell commands # 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_CHAT=-100.....
# Log channel •Required• # Log channel •Required•