mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30:22 +03:00
session device name
This commit is contained in:
parent
f9643bf737
commit
06a9528dc0
|
@ -27,7 +27,6 @@ if typing.TYPE_CHECKING:
|
|||
|
||||
_base_log = logging.getLogger(__base_name__)
|
||||
|
||||
|
||||
# In seconds, how long to wait before disconnecting a exported sender.
|
||||
_DISCONNECT_EXPORTED_AFTER = 60
|
||||
|
||||
|
@ -358,9 +357,9 @@ class TelegramBaseClient(abc.ABC):
|
|||
system = platform.uname()
|
||||
|
||||
if system.machine in ('x86_64', 'AMD64'):
|
||||
default_device_model = 'PC 64bit'
|
||||
elif system.machine in ('i386','i686','x86'):
|
||||
default_device_model = 'PC 32bit'
|
||||
default_device_model = 'Telethon 64bit'
|
||||
elif system.machine in ('i386', 'i686', 'x86'):
|
||||
default_device_model = 'Telethon 32bit'
|
||||
else:
|
||||
default_device_model = system.machine
|
||||
default_system_version = re.sub(r'-.+','',system.release)
|
||||
|
|
Loading…
Reference in New Issue
Block a user