fix
This commit is contained in:
parent
e8ae98a69a
commit
6a88f7da4b
@ -70,8 +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, None, a['audio'].get('duration'),
|
bot.send_audio(chat_id, f, None, 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']}",
|
||||||
disable_web_page_preview=True)
|
disable_web_page_preview=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user