Finished TG API generation incl. tests.