Nazeradom 0 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.
ExpansionPack 17 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
Nazeradom 0 Author 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.
Hopewelljnj 46 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
Cardozz 46 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.
slasso 27 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.
Cardozz 46 Posted May 25, 2016 'int' and 'long' are primitive types not objects. Integer and Long are objects. Yeah thats basically what i meant lol
Recommended Posts
Archived
This topic is now archived and is closed to further replies.