You can copy your game ID in the game settings.
Tap the "Copy ID" button, and it will be saved to your device's clipboard. You can insert it into any message using the "Paste" option on your device.