Twilio shares had their sharpest rally since 2020 on Friday after the company issued an uplifting forecast for the coming years at an investor event.