Skip to content

Commit

Permalink
trying to fix voice_call skip error (msg has no _client)
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 committed Jul 24, 2021
1 parent 4ff56b0 commit c74b276
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions userge/plugins/utils/voice_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ async def play_music(msg: Message):
await mesg.edit("No results found.")
elif msg.reply_to_message and msg.reply_to_message.audio:
replied = msg.reply_to_message
if not hasattr(replied, '_client'):
replied._client = msg.client # pylint: disable=protected-access
QUEUE.append(replied)
if PLAYING:
await reply_text(msg, _get_scheduled_text(replied.audio.title, replied.link))
Expand Down

0 comments on commit c74b276

Please sign in to comment.