def escape_markdown(text):
 escape_chars = '\\*_`\\['
 return re.sub(('([%s])' % escape_chars), '\\\\\\1', text)

def escape_markdown ( text ) : escape_chars = '\\*_`\\[' return re . sub ( ( '([%s])' % escape_chars ) , '\\\\\\1' , text )
helper function to escape telegram markup symbols .