Nazeradom 0 Share Posted May 25, 2016 Hi everyone,I have been able to successfully receive and read chat messages from the API but I can't for the life of me figure out how to send a chat message. I am planning on implementing a chatbot API for extra realism but it all hinges on being able to send chat messages. Does anyone know how to send chat messages using the API? Thanks in advance. Link to comment Share on other sites More sharing options...
ExpansionPack 17 Share Posted May 25, 2016 Hi everyone, I have been able to successfully receive and read chat messages from the API but I can't for the life of me figure out how to send a chat message. I am planning on implementing a chatbot API for extra realism but it all hinges on being able to send chat messages. Does anyone know how to send chat messages using the API? Thanks in advance. look into the keyboard category on the api Link to comment Share on other sites More sharing options...
Nazeradom 0 Author Share Posted May 25, 2016 Thanks, it is the getKeyboard().type() method. The thing that threw me is that it type takes Object, Boolean but you can pass a string as an object? For example: getKeyboard().type("How's the fishing going?", true); Anyway this is exactly what I needed, thanks. Link to comment Share on other sites More sharing options...
Hopewelljnj 46 Share Posted May 25, 2016 String is an object. The boolean is do you want to hit enter. It is automatically true if you enter no boolean Link to comment Share on other sites More sharing options...
Cardozz 46 Share Posted May 25, 2016 Thanks, it is the getKeyboard().type() method. The thing that threw me is that it type takes Object, Boolean but you can pass a string as an object? For example: getKeyboard().type("How's the fishing going?", true); Anyway this is exactly what I needed, thanks. An Object is basically everything in Java. An Object stands "above" every type in Java, which means it can take every type E.G. String, int, long, even a boolean if im not wrong. Link to comment Share on other sites More sharing options...
slasso 27 Share Posted May 25, 2016 An Object is basically everything in Java. An Object stands "above" every type in Java, which means it can take every type E.G. String, int, long, even a boolean if im not wrong. 'int' and 'long' are primitive types not objects. Integer and Long are objects. Link to comment Share on other sites More sharing options...
Cardozz 46 Share Posted May 25, 2016 'int' and 'long' are primitive types not objects. Integer and Long are objects. Yeah thats basically what i meant lol Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.