Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for uploading images (chat) #45

Open
Longi94 opened this issue Jan 11, 2019 · 2 comments
Open

Add support for uploading images (chat) #45

Longi94 opened this issue Jan 11, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@Longi94
Copy link
Owner

Longi94 commented Jan 11, 2019

No description provided.

@Longi94 Longi94 added the enhancement New feature or request label Jan 11, 2019
@LossyDragon
Copy link
Collaborator

LossyDragon commented Jan 12, 2022

This is a "Unified Messages" feature.

I'm not sure how images are being uploaded physically. But doing a quick glance with NHA2, I see 4 messages when uploading an image:

  1. ServiceMethod (in) CloudClient.NotifyAppStateChange#1
  2. ServiceMethodCallFromClient (out) Cloud.GetAppFileChangelist#1
  3. ServiceMethod (in) FriendMessagesClient.IncomingMessage#1
  4. ServiceMethodResponse (in) Cloud.GetAppFileChangelist#1

Step 3 is just an incoming response of the chat message, containing the image in bbcode
Step 4 appears to be a list of recent uploaded images.

@LossyDragon
Copy link
Collaborator

I looked into this more and found the mobile app and web chat use the following urls when uploading.

https://steam-chat.com/chat/beginfileupload/
https://steam-chat.com/chat/commitfileupload/

With this information, I looked online and noticed steam.py has already implemented this, this may be a good point to understand and possibly implement

https://github.com/Gobot1234/steam.py/blob/ba5d8199898f133543ce77dab127958c0228d352/steam/http.py#L1095

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants