Compatibility summary
You will need a travel adapter in Tonga; plug types used there differ from Thailand.
Plug comparison
Thailand plug types: A B C O
Tonga plug types: I
There is no common plug type between Thailand (A B C O) and Tonga (I). You need a travel adapter.
Voltage comparison
Thailand: 220V, 50Hz
Tonga: 240V, 50Hz
Voltage difference is within a range many devices tolerate; check your appliance label.