Don't have Telegram yet? Try it now!
https://adriano.casissa.it/2016/01/08/android-salvare-gli-sms-in-un-file-di-testo/
Android: Salvare gli sms in un file di testo