parent
15d07ee621
commit
4239cfb5e4
@ -13,11 +13,12 @@ from telethon import version as telethon_version
|
||||
from telethon.tl.types import User, Chat, Channel
|
||||
from sys import platform
|
||||
from re import sub, findall
|
||||
from requests import get
|
||||
from pathlib import Path
|
||||
from pagermaid import log, config, redis_status, start_time, silent
|
||||
from pagermaid.utils import execute, upload_attachment
|
||||
from pagermaid.listener import listener
|
||||
from pagermaid.utils import lang, alias_command, get
|
||||
from pagermaid.utils import lang, alias_command
|
||||
|
||||
DCs = {
|
||||
1: "149.154.175.50",
|
||||
@ -196,7 +197,7 @@ async def speedtest(context):
|
||||
f"Timestamp: `{result['timestamp']}`"
|
||||
)
|
||||
# 开始处理图片
|
||||
data = (await get(f"{result['result']['url']}.png")).text
|
||||
data = get(f"{result['result']['url']}.png").content
|
||||
with open('speedtest.png', mode='wb') as f:
|
||||
f.write(data)
|
||||
try:
|
||||
@ -273,7 +274,7 @@ async def speedtest(context):
|
||||
f"Timestamp: `{result['timestamp']}`"
|
||||
)
|
||||
# 开始处理图片
|
||||
data = (await get(result['share'])).text
|
||||
data = get(result['share']).content
|
||||
with open('speedtest.png', mode='wb') as f:
|
||||
f.write(data)
|
||||
try:
|
||||
|
4
setup.py
4
setup.py
@ -13,8 +13,8 @@ formatted_today = datetime.date.today().strftime('%y%m%d')
|
||||
setup(
|
||||
name="pagermaid_modify",
|
||||
version=formatted_today[0:2] + "." + formatted_today[2:4] + "." + formatted_today[4:6] + ".post1",
|
||||
author="xtaodada",
|
||||
author_email="xtao@xtaolink.cn",
|
||||
author="Xtao-Labs",
|
||||
author_email="xtao@xtaolabs.com",
|
||||
description="A telegram utility daemon and plugin framework.",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
|
Loading…
Reference in New Issue
Block a user