mirror of
https://github.com/SlavikMIPT/tgcloud.git
synced 2025-03-09 15:40:14 +00:00
telethon==0.19.1
This commit is contained in:
parent
b7028e786c
commit
1d93c7db68
3 changed files with 11 additions and 8 deletions
|
@ -33,13 +33,13 @@ from threading import Thread
|
|||
import random
|
||||
import time
|
||||
from queue import Queue
|
||||
from telethon.network import ConnectionMode
|
||||
from telethon.network import ConnectionTcpFull
|
||||
from datetime import timedelta
|
||||
|
||||
|
||||
class TelegramClientX(TelegramClient):
|
||||
def __init__(self, session, api_id, api_hash,
|
||||
connection_mode=ConnectionMode.TCP_FULL,
|
||||
connection=ConnectionTcpFull,
|
||||
use_ipv6=False,
|
||||
proxy=None,
|
||||
update_workers=None,
|
||||
|
@ -49,7 +49,7 @@ class TelegramClientX(TelegramClient):
|
|||
**kwargs):
|
||||
super().__init__(
|
||||
session, api_id, api_hash,
|
||||
connection_mode=connection_mode,
|
||||
connection=connection,
|
||||
use_ipv6=use_ipv6,
|
||||
proxy=proxy,
|
||||
update_workers=update_workers,
|
||||
|
@ -347,6 +347,7 @@ class TelegramClientX(TelegramClient):
|
|||
# The used client will change if FileMigrateError occurs
|
||||
client = self
|
||||
cdn_decrypter = None
|
||||
input_location = utils.get_input_loction(input_location)
|
||||
download_thread = []
|
||||
q_request = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue