fix(session): persist session after session.set_dc

This commit is contained in:
Danipulok 2024-11-20 16:13:34 +02:00 committed by Lonami
parent 9ca3b599fc
commit 225ea9c3ab

View File

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