The word 'gotta' is not a real word... it is the spelling of the sound of the two words 'got to'. When people say the two quickly, it sounds like 'gotta'.
'gotta' is the same as 'wanna' (want to).
These are not real words, so I suggest that you do not write these words and try to pronounce the words separately and clearly... got to and want to, not gotta and wanna.