i have this code for interact with telegram api as client for create ayth_key for frist transfer message to telegram server as explained in this link:
telegram sample