@Client.on_inline_query()
async def search(client, query):
    answers = []
    if (query.query == 'ORU_MANDAN_PM_VANNU'):
        answers.append(InlineQueryResultArticle(title='Deploy', input_message_content=InputTextMessageContent(f'''{REPLY_MESSAGE}

<b>You can't use this bot in your group, for that you have to make your own bot from the [SOURCE CODE](https://github.com/OxyNotOp/OxyPlayer) below.</b>''', disable_web_page_preview=True), reply_markup=InlineKeyboardMarkup(buttons)))
        (await query.answer(results=answers, cache_time=0))
        return
    string = query.query.lower().strip().rstrip()
    if (string == ''):
        (await client.answer_inline_query(query.id, results=answers, switch_pm_text='Search a youtube video', switch_pm_parameter='help', cache_time=0))
    else:
        videosSearch = VideosSearch(string.lower(), limit=50)
        for v in videosSearch.result()['result']:
            answers.append(InlineQueryResultArticle(title=v['title'], description='Duration: {} Views: {}'.format(v['duration'], v['viewCount']['short']), input_message_content=InputTextMessageContent('/play https://www.youtube.com/watch?v={}'.format(v['id'])), thumb_url=v['thumbnails'][0]['url']))
        try:
            (await query.answer(results=answers, cache_time=0))
        except errors.QueryIdInvalid:
            (await query.answer(results=answers, cache_time=0, switch_pm_text='Nothing found', switch_pm_parameter=''))
@Client.on_inline_query()
async def search(client, query):
    answers = []
    if (query.query == 'ORU_MANDAN_PM_VANNU'):
        answers.append(InlineQueryResultArticle(title='Deploy', input_message_content=InputTextMessageContent(f'{REPLY_MESSAGE}

<b>You can't use this bot in your group, for that you have to make your own bot from the [SOURCE CODE](https://github.com/OxyNotOp/OxyPlayer) below.</b>', disable_web_page_preview=True), reply_markup=InlineKeyboardMarkup(buttons)))
        (await query.answer(results=answers, cache_time=0))
        return
    string = query.query.lower().strip().rstrip()
    if (string == ):
        (await client.answer_inline_query(query.id, results=answers, switch_pm_text='Search a youtube video', switch_pm_parameter='help', cache_time=0))
    else:
        videosSearch = VideosSearch(string.lower(), limit=50)
        for v in videosSearch.result()['result']:
            answers.append(InlineQueryResultArticle(title=v['title'], description='Duration: {} Views: {}'.format(v['duration'], v['viewCount']['short']), input_message_content=InputTextMessageContent('/play https://www.youtube.com/watch?v={}'.format(v['id'])), thumb_url=v['thumbnails'][0]['url']))
        try:
            (await query.answer(results=answers, cache_time=0))
        except errors.QueryIdInvalid:
            (await query.answer(results=answers, cache_time=0, switch_pm_text='Nothing found', switch_pm_parameter=))