Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def all_bot_results_article(lst, too_many_results):
txt = messages.PROMOTION_MESSAGE + '\n\n'
txt += "{} one of these {} bots:\n\n".format(messages.rand_call_to_action(), len(lst))
txt += '\n'.join([str(b) for b in lst])
return InlineQueryResultArticle(
id=uuid4(),
title='{} {} ʙᴏᴛ ʀᴇsᴜʟᴛs'.format(
mdformat.smallcaps("Send"),
len(lst)),
input_message_content=InputTextMessageContent(message_text=txt[:4096],
parse_mode=ParseMode.MARKDOWN)
# description=b.description if b.description else b.name if b.name else None,