cache duration
This commit is contained in:
parent
1cea4804c2
commit
c210b51031
@ -17,7 +17,12 @@ user = Client(
|
|||||||
api_hash=API_HASH,
|
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:
|
with Client(":veez:", API_ID, API_HASH, bot_token=BOT_TOKEN) as app:
|
||||||
me_bot = app.get_me()
|
me_bot = app.get_me()
|
||||||
|
Loading…
Reference in New Issue
Block a user