fix
This commit is contained in:
parent
96b3b9c126
commit
e8ae98a69a
@ -70,7 +70,7 @@ class VKFeedModuleConfig(FeedModuleConfig):
|
|||||||
for a in post['attachments']:
|
for a in post['attachments']:
|
||||||
if 'audio' in a:
|
if 'audio' in a:
|
||||||
f = get_file(vk_audio.get_audio_by_id(a['audio']['owner_id'], a['audio']['id']))
|
f = get_file(vk_audio.get_audio_by_id(a['audio']['owner_id'], a['audio']['id']))
|
||||||
bot.send_audio(chat_id, f, a['audio'].get('duration'),
|
bot.send_audio(chat_id, f, None, a['audio'].get('duration'),
|
||||||
a['audio'].get('artist'), a['audio'].get('title'))
|
a['audio'].get('artist'), a['audio'].get('title'))
|
||||||
if self.send_links:
|
if self.send_links:
|
||||||
bot.send_message(chat_id, f"https://vk.com/wall{post['owner_id']}_{post['id']}",
|
bot.send_message(chat_id, f"https://vk.com/wall{post['owner_id']}_{post['id']}",
|
||||||
|
Loading…
Reference in New Issue
Block a user