mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 07:08:18 +00:00
Merge pull request #36 from TNTcraftHIM/master
修复文件过大时无法作为MP3直接播放的BUG!!
This commit is contained in:
commit
77f73f5a26
@ -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。"
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user