From 61f52293656cb85129a4e821086e8f5472f16b63 Mon Sep 17 00:00:00 2001 From: TNTcraftHIM Date: Fri, 28 Aug 2020 03:07:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E8=BF=87?= =?UTF-8?q?=E5=A4=A7=E6=97=B6=E6=97=A0=E6=B3=95=E4=BD=9C=E4=B8=BAMP3?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E6=92=AD=E6=94=BE=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复bug=10min 找bug怎么修=10h --- list.json | 4 ++-- neteasemusic.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/list.json b/list.json index 4dfbdcb..c9ef937 100644 --- a/list.json +++ b/list.json @@ -282,10 +282,10 @@ }, { "name": "neteasemusic", - "version": "1.8", + "version": "1.9", "section": "daily", "maintainer": "TNTcraftHIM", - "size": "22.5 kb", + "size": "22.6 kb", "supported": true, "des-short": "网易云点歌", "des": "可以在线搜索并且快速点歌,歌曲信息齐全,支持直接回复点歌。命令:nem。" diff --git a/neteasemusic.py b/neteasemusic.py index 47e222b..ab91364 100644 --- a/neteasemusic.py +++ b/neteasemusic.py @@ -12,6 +12,7 @@ from pagermaid.utils import obtain_message from os import remove, path from os.path import exists from collections import defaultdict +from telethon.tl.types import DocumentAttributeAudio songid = '' name = '' @@ -387,7 +388,9 @@ async def nem(context): name, caption=cap, link_preview=False, - force_document=False) + force_document=False, + attributes=(DocumentAttributeAudio(0),) + ) try: if reply.sender.is_self: await reply.delete()