From a588394b8d4ea5ac7ff1c65e624691b01c18c539 Mon Sep 17 00:00:00 2001 From: Igor Date: Wed, 19 Jan 2022 13:57:24 +0300 Subject: [PATCH] Add random tt_webid_V2 --- bot/handlers/messages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/handlers/messages.py b/bot/handlers/messages.py index e16cb7b..4bbfa6d 100644 --- a/bot/handlers/messages.py +++ b/bot/handlers/messages.py @@ -1,3 +1,4 @@ +import random from datetime import datetime from aiogram.types import Message from bot import dp, bot @@ -11,7 +12,7 @@ headers={ "Referer": "https://www.tiktok.com/", "User-Agent": f"{USER_AGENT} ({datetime.now().timestamp()})", - }, cookies={'tt_webid_v2': '1234567890123456789'}, + }, cookies={'tt_webid_v2': f"{random.randint(10 ** 18, (10 ** 19) - 1)}"}, )