Telegram will fork over bank records and communications with its investors in an agreement with the SEC as part of the agency's ongoing lawsuit.