def send_message(driver, answer):
driver.find_element_by_xpath('XPATH').click()
action = ActionChains(driver)
for str_ in answer.split('\n'):
action.send_keys(str_)
action.send_keys(Keys.chord(Keys.SHIFT + Keys.RETURN))
action.perform()