cache duration

This commit is contained in:
levina 2022-02-19 22:24:42 +07:00 committed by GitHub
parent 1cea4804c2
commit c210b51031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()