Skip to content

Commit

Permalink
不再支持python<3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
holll committed Nov 5, 2024
1 parent 756699b commit cffb89d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
os.environ['save_path'] = save_path = config.get('save_path')
proxy = config.get('proxy')
if proxy is not None:
import python_socks
username = None
password = None
if '@' in proxy:
Expand All @@ -63,7 +64,7 @@
addr = proxy.split(':')[0]
port = proxy.split(':')[1]
proxy = {
'proxy_type': 'socks5', # (mandatory) protocol to use (see above)
'proxy_type': python_socks.ProxyType.SOCKS5, # (mandatory) protocol to use (see above)
'addr': addr, # (mandatory) proxy IP address
'port': int(port), # (mandatory) proxy port number
'username': username, # (optional) username if the proxy requires auth
Expand All @@ -78,10 +79,6 @@
# 配置处理结束


async def upDate_dialogs():
await client.get_dialogs()


# 展示登陆的信息
def show_my_inf(me):
print("-----****************-----")
Expand Down

0 comments on commit cffb89d

Please sign in to comment.