From c210b51031a9bfb7a50ec2b2fe49eba012f90fc6 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Sat, 19 Feb 2022 22:24:42 +0700 Subject: [PATCH] cache duration --- driver/core.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/driver/core.py b/driver/core.py index 07d9d84..2ae6dec 100644 --- a/driver/core.py +++ b/driver/core.py @@ -17,7 +17,12 @@ user = Client( api_hash=API_HASH, ) -calls = PyTgCalls(user, overload_quiet_mode=True) +calls = PyTgCalls( + user, + cache_duration=180, + overload_quiet_mode=True +) + with Client(":veez:", API_ID, API_HASH, bot_token=BOT_TOKEN) as app: me_bot = app.get_me()