mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
fix(session): persist session after session.set_dc
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user