From 6a88f7da4b104109388309a43dbc90cbc988ca2e Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sat, 26 Jan 2019 11:33:32 +0300 Subject: [PATCH] fix --- feeds/modules/vk_feed.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/feeds/modules/vk_feed.py b/feeds/modules/vk_feed.py index 2ecb3c5..588725a 100644 --- a/feeds/modules/vk_feed.py +++ b/feeds/modules/vk_feed.py @@ -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)