TS Api and Bot example