fix(session): persist session after session.set_dc

This commit is contained in:
Danipulok 2024-11-20 16:13:34 +02:00
parent 9ca3b599fc
commit 5d9cee8e5a
No known key found for this signature in database
GPG Key ID: 045D50F37F4E9B66

View File

@ -313,6 +313,7 @@ class TelegramBaseClient(abc.ABC):
DEFAULT_IPV6_IP if self._use_ipv6 else DEFAULT_IPV4_IP,
DEFAULT_PORT
)
session.save()
self.flood_sleep_threshold = flood_sleep_threshold