This commit is contained in:
bakatrouble 2019-01-26 11:33:32 +03:00
parent e8ae98a69a
commit 6a88f7da4b

View File

@ -70,8 +70,7 @@ class VKFeedModuleConfig(FeedModuleConfig):
for a in post['attachments']:
if 'audio' in a:
f = get_file(vk_audio.get_audio_by_id(a['audio']['owner_id'], a['audio']['id']))
bot.send_audio(chat_id, f, None, a['audio'].get('duration'),
a['audio'].get('artist'), a['audio'].get('title'))
bot.send_audio(chat_id, f, None, a['audio'].get('artist'), a['audio'].get('title'))
if self.send_links:
bot.send_message(chat_id, f"https://vk.com/wall{post['owner_id']}_{post['id']}",
disable_web_page_preview=True)