Thank you for the answer.
Here is my use case:
I have a game, in which viewers can write in chat “1”, “2” or “3”. My game receives messages and performs actions in functions (for example: viewer XXX throws a bomb).
I would like to create an extension so that the viewer no longer needs to write in the chat but just click on a button to perform these actions.
Here is the flow I thought of:
click on the button 1 => automatically writes the message “1” in the chat => my game receives the message “1” => it does the action