I hate these apps that absolutely need a phone number. I couldn't pay my bill on my cellphone one month, lost the number and now I can't access either my WhatsApp or Telegram accounts.
You can port your phone number to a voip provider if you will be out of the country for a while. Use a sip phone app, and the "transport layer" sim that you happen to use will have nothing to do with the phone number that is intermingled with your identity.
FWIW, Telegram actually handles this pretty well. You just have to have loged in on another device while you still have your phone. You can use that other device to deauth your lost or deactivated phone and auth new logins on other devices.
Sadly I didn't use Telegram for 6 months and when I went to use it I found out they had a 6 month timeout on your login and it basically wipes your stored credentials after 6 months :(