Bot can't write messages even though the account isn't banned

No, it doesn’t. It just sends the string as it is without adding any line-endings or anything else.