Guest Ino Posted December 25, 2018 Report Share Posted December 25, 2018 Hi, when do you planning release node-steam-user v 4 ? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted December 25, 2018 Report Share Posted December 25, 2018 No planned date yet. Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted December 25, 2018 Report Share Posted December 25, 2018 No planned date yet.Okay, then can you write documentation for your demo version node-steam-user v4, please ? Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted December 29, 2018 Report Share Posted December 29, 2018 No planned date yet.How does work method getChatMessageHistory ?When i try to use id i get error TypeError: Cannot read property 'maxCount' of undefinedconst option = { maxCount: 1000 }client.chat.getChatMessageHistory( (id, id, option) ,messages => { console.log(messages) }) Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted December 30, 2018 Report Share Posted December 30, 2018 You should not be using the same id for the first and second parameters. The first parameter is the group chat ID, and the second is the ID of the channel you're looking for. Get rid of the parens around the parameters. That's turning the commas into comma operators, which is not what you want to do. Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted December 30, 2018 Report Share Posted December 30, 2018 (edited) You should not be using the same id for the first and second parameters. The first parameter is the group chat ID, and the second is the ID of the channel you're looking for. Get rid of the parens around the parameters. That's turning the commas into comma operators, which is not what you want to do. My bad, sorry. How can I get chat history with my friend? And how can I find out about group id and chat id to get history with my friend? I thought that i need to use a friend’s steamID64 as beforei have tried to using this method but every time i get nullhttps://github.com/DoctorMcKay/node-steam-user/blob/v4/components/chatroom.js#L77client.chat.getGroups( groups => { console.log(groups) } ) // groups = null Edited December 30, 2018 by Ino Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted December 30, 2018 Report Share Posted December 30, 2018 My bad, sorry. How can I get chat history with my friend? And how can I find out about group id and chat id to get history with my friend? I thought that i need to use a friend’s steamID64 as beforei have tried to using this method but every time i get nullhttps://github.com/DoctorMcKay/node-steam-user/blob/v4/components/chatroom.js#L77client.chat.getGroups( groups => { console.log(groups) } ) // groups = null As in all callbacks, the first argument is err. And I'm pretty sure you'd want to still use getChatHistory as before. Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted December 30, 2018 Report Share Posted December 30, 2018 As in all callbacks, the first argument is err. And I'm pretty sure you'd want to still use getChatHistory as before.getChatHistory works bad because with time chat history lost and i want to try get history through new method.Can you tell me how can i get chat id and group id for get chat history with my friend ? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted December 30, 2018 Report Share Posted December 30, 2018 Chat history is temporary for all chats, even group chats. Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted December 30, 2018 Report Share Posted December 30, 2018 Chat history is temporary for all chats, even group chats. Okay, but how can i get chat_id & group_id for send message for example ? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted December 31, 2018 Report Share Posted December 31, 2018 getGroups Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted December 31, 2018 Report Share Posted December 31, 2018 getGroupsWhen i called this i get an empty object every timeclient.chat.getGroups( (err, groups) => { console.log(groups.chat_room_groups) } ) // Object {} Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted December 31, 2018 Report Share Posted December 31, 2018 You probably aren't in any groups. Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted December 31, 2018 Report Share Posted December 31, 2018 You probably aren't in any groups.But i have friends, how can i send message them using this method ?SteamChatRoomClient.prototype.sendChatMessage = function(groupId, chatId, message, callback) {}) Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted December 31, 2018 Report Share Posted December 31, 2018 You don't, you use sendFriendMessage. Quote Link to comment Share on other sites More sharing options...
byteframe Posted January 1, 2019 Report Share Posted January 1, 2019 (edited) oh boy I can play with the new chat stuff? can I install this branch with npm? edit: nvm I got it installed, now I can get a jump on updating my code. Edited January 1, 2019 by byteframe Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted January 1, 2019 Report Share Posted January 1, 2019 (edited) You don't, you use sendFriendMessage.Thank you, i have last question. How can i send link like in steam ? What's options i need provide ?https://gyazo.com/10cec7112e61627598031bf00b26c388And how can i handle new messages from my friends ? In the new version if i use 2 accounts - event friendMessage emited 2 times. Int the old version it work normally, but version 4 emit that event as many times as I have accounts Edited January 1, 2019 by Ino Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 1, 2019 Report Share Posted January 1, 2019 Are you on the latest v4 commit? That sounds like a bug I fixed a couple weeks ago. Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted January 2, 2019 Report Share Posted January 2, 2019 Are you on the latest v4 commit? That sounds like a bug I fixed a couple weeks ago.Yes, I even downloaded again just the same error Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted January 6, 2019 Report Share Posted January 6, 2019 Are you on the latest v4 commit? That sounds like a bug I fixed a couple weeks ago. Yes, I even downloaded again just the same errorCan you help me with this issue ? Quote Link to comment Share on other sites More sharing options...
Guest Ino Posted January 8, 2019 Report Share Posted January 8, 2019 (edited) Are you on the latest v4 commit? That sounds like a bug I fixed a couple weeks ago.Try to do it. If send one message - this event will be emitted so many times, how much you have accounts. I think the problem with websockets, maybee all accounts connected to one websocket or smth any.UPDT: Method gamesPlayed() don't work too const SteamUser = require("./node_modules/node-steam-user-4") const client1 = new SteamUser() const client2 = new SteamUser() client1.logOn({ accountName: '', password: '' }) client2.logOn({ accountName: '', password: '' }) client1.on('friendMessage', (senderID, message) => { console.log(message) }) client2.on('friendMessage', (senderID, message) => { console.log(message) }) Edited January 8, 2019 by Ino Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.