daeragon Posted March 8, 2022 Report Posted March 8, 2022 (edited) I'm trying to send a message in the first room but it's returning an error, probably the chatId is wrong, how to find my "Principal" chatId? bot.on('groupList', () => { console.log(Object.keys(bot.myGroups )[ 0 ]) bot.chat.sendChatMessage( '103582791471570174' , '0' , "hello") }) Edited March 8, 2022 by daeragon Quote
Dr. McKay Posted March 8, 2022 Report Posted March 8, 2022 https://github.com/DoctorMcKay/node-steam-user/wiki/SteamChatRoomClient#getclanchatgroupinfoclansteamid-callback daeragon 1 Quote
daeragon Posted March 9, 2022 Author Report Posted March 9, 2022 (edited) 23 hours ago, Dr. McKay said: https://github.com/DoctorMcKay/node-steam-user/wiki/SteamChatRoomClient#getclanchatgroupinfoclansteamid-callback Thaaanks!! This error was returned, what am I doing wrong? :c Edited March 9, 2022 by daeragon Quote
Dr. McKay Posted March 9, 2022 Report Posted March 9, 2022 (edited) The error is AccessDenied. Sounds like you don't have access to that group chat. But also that looks like the output your first code should produce. Did you run the wrong file? Edited March 9, 2022 by Dr. McKay Quote
daeragon Posted March 9, 2022 Author Report Posted March 9, 2022 (edited) 5 minutes ago, Dr. McKay said: The error is AccessDenied. Sounds like you don't have access to that group chat. Hooo, maybe it's because I created the group with another account? It's weird because I gave ADM to the bot account. 🤔 Strange, I tested it on the other account that I created the group and it gave the same result. Edited March 9, 2022 by daeragon Quote
Dr. McKay Posted March 9, 2022 Report Posted March 9, 2022 That's the same error and console output that your first code should produce. Did you run the wrong file or not save it? Quote
daeragon Posted March 9, 2022 Author Report Posted March 9, 2022 6 minutes ago, Dr. McKay said: That's the same error and console output that your first code should produce. Did you run the wrong file or not save it? on my other account 🤔 Quote
daeragon Posted March 9, 2022 Author Report Posted March 9, 2022 (edited) I made some changes and now it's working, but it's returning null Yeaah! I managed to access the response, now it remains to find out how to send a message, from what it seems the "Main" chat ID really is 0? However, it gives the same error or "Error: RateLimitExceeded" Edited March 9, 2022 by daeragon Quote
Dr. McKay Posted March 9, 2022 Report Posted March 9, 2022 I don't know why you'd only be getting that data. Here's the response I got to the same exact call: { chat_group_summary: { chat_rooms: [ [Object] ], top_members: [ [SteamID], [SteamID] ], role_ids: [], role_actions: [], party_beacons: [], chat_group_id: '22328242', chat_group_name: 'Price Bot', active_member_count: 2, active_voice_member_count: 0, default_chat_id: '78507305', clanid: SteamID { universe: 1, type: 7, instance: 0, accountid: 42048766 }, chat_group_tagline: '"IN DEVELOPMENT..."', chat_group_avatar_sha: null, rank: null, default_role_id: null, appid: null, watching_broadcast_channel_id: '0', active_minigame_id: null, avatar_ugc_url: null, disabled: null, steamid_owner: null, chat_group_avatar_url: null, watching_broadcast_steamid: null } } Maybe your account is limited and limited accounts don't have all the data returned to them? Maybe you need to update steam-user? Quote
daeragon Posted March 9, 2022 Author Report Posted March 9, 2022 (edited) YEAAAAAAH!!!! GG, thanks for help @Dr. McKay! ❤️ I was wrong in the return of the callback But the error persists... ATT: I achieved! I got the correct ID group returned by the response and it is now working normally. Thanks @Dr. McKay Edited March 9, 2022 by daeragon Quote
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.