It oficialnaya position apple your apps can't have access to sms.
But you can jailbreak the phone and write an app that will read
/var/mobile/Library/SMS/sms.db table of messages
and send these messages over the network (e.g. the chat, the same telegram), in General, as you wish
to send sms it will be very difficult but probably not impossible.