Currently tested and found that relevant API functions can be directly called to control the Telegram client.