Jump to content


Photo

Display link like steam

node.js node-steam-user

  • Please log in to reply
9 replies to this topic

#1 Ino

Ino

    Advanced Member

  • Member
  • PipPipPip
  • 63 posts

Posted 27 November 2018 - 12:38 PM

https://gyazo.com/10...8031bf00b26c388

When I send a link through node steam-user it just send the text, when I send a link through Steam, then it is displayed in expanded form, how can I send the link so that it appears as a steam?



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,998 posts

Posted 27 November 2018 - 05:31 PM

You'll probably need to wait until steam-user 3 comes out (whenever that happens, I don't have a timeframe yet) which adds official support for new chat.



#3 Ino

Ino

    Advanced Member

  • Member
  • PipPipPip
  • 63 posts

Posted 09 December 2018 - 06:58 AM

You'll probably need to wait until steam-user 3 comes out (whenever that happens, I don't have a timeframe yet) which adds official support for new chat.

When will it happen ? Or can you tell me how need to do it ?
I think that i need to connect to steamchat via websocket ?



#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,998 posts

Posted 09 December 2018 - 11:43 PM

I meant v4.

 

You could install it directly from Git if you wanted, but I haven't yet written docs for new chat support. The new code is here. To call getGroups for example, you'd do user.chat.getGroups(...)


  • Kacer likes this

#5 Ino

Ino

    Advanced Member

  • Member
  • PipPipPip
  • 63 posts

Posted 11 December 2018 - 09:25 AM

Thank you. When will you be able write the docs for new chat ?



#6 Ino

Ino

    Advanced Member

  • Member
  • PipPipPip
  • 63 posts

Posted 18 December 2018 - 06:57 AM

I meant v4.

 

You could install it directly from Git if you wanted, but I haven't yet written docs for new chat support. The new code is here. To call getGroups for example, you'd do user.chat.getGroups(...)

How can i install directly from git ?



#7 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,998 posts

Posted 18 December 2018 - 05:03 PM

Download it and drop it into node_modules.



#8 PonyExpress

PonyExpress

    Member

  • Member
  • PipPip
  • 20 posts

Posted 02 January 2019 - 02:23 PM

Download it and drop it into node_modules.

 

How to install and start using v4?
 
I downloaded v4.zip archive,
extracted folder "node-steam-user-4" in my "node_modules"
and changed SteamUser = require("steam-user"), to SteamUser = require("node-steam-user-4"),
 
When I start, I get:
Error: Cannot find module 'protobufjs/minimal'


#9 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,998 posts

Posted 02 January 2019 - 03:44 PM

You need to go into that node-steam-user-4 folder and run npm install



#10 PonyExpress

PonyExpress

    Member

  • Member
  • PipPip
  • 20 posts

Posted 02 January 2019 - 05:02 PM

You need to go into that node-steam-user-4 folder and run npm install

 

Thanks. 

 

But even using v4,

client.chatMessage(tsid, "https://help.steampowered.com/en/accountdata/SteamLoginHistory");

still gives a simple text link.

other (images, emoticons, /pre /quote /code etc.) don't work either :(


  • Ino likes this





Also tagged with one or more of these keywords: node.js, node-steam-user

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users