Skip to content

Commit

Permalink
Merge pull request #26 from holll/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
holll authored Nov 5, 2024
2 parents ee2a07d + 6594b13 commit 4744859
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 4744859

Please sign in to comment.