Actually sending a tweet should be possible, either by opening a browser and sending inputs like a user would, or through
the Twitter API.
However, composing text freely would require dictation, which is a very difficult task for any speech engine(as it must guess what you're trying to say, without a sense of context); You may find recognition accuracy is less than ideal for this purpose.