Can I access and modify the text users can normaly enter to chat from an iMessage extension (how)?
This is not currently possible in iMessage extensions for privacy reasons.
More information can be found in the iMessage extension documentation on Apple's website.