Skip to content

Commit

Permalink
Chat - remove chat module as it was not working anyway for a long time
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Bukowski authored and bukson committed Sep 19, 2023
1 parent 7d7080e commit 0993fd6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 159 deletions.
25 changes: 0 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ Table of Content

* [Guard module functions](https://github.com/bukson/steampy#guard-module-functions)

* [SteamChat methods](https://github.com/bukson/steampy#steamchat-methods)

* [Utils methods](https://github.com/bukson/steampy#utils-methods)

* [Test](https://github.com/bukson/steampy#test)
Expand Down Expand Up @@ -659,29 +657,6 @@ If none timestamp provided, timestamp will be set to current time.
Generate mobile device confirmation key for accepting trade offer.
Default timestamp is current time.

SteamChat methods
==============

**send_message(steamid_64: str, text: str) -> requests.Response**

Send the string contained in `text` to the desired `steamid_64`.

`client.chat.send_message("[steamid]", "This is a message.")`

**fetch_messages() -> dict**

Returns a dictionary with all new sent and received messages:

```
{
'sent': [
{'partner': "[steamid]", 'message': "This is a message."}
],
'received': []
}
```

`client.chat.fetch_messages()`

Utils methods
======================
Expand Down
36 changes: 0 additions & 36 deletions examples/chat_bot.py

This file was deleted.

95 changes: 0 additions & 95 deletions steampy/chat.py

This file was deleted.

4 changes: 1 addition & 3 deletions steampy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
import json
import requests
from steampy import guard
from steampy.chat import SteamChat
from steampy.confirmation import ConfirmationExecutor
from steampy.exceptions import SevenDaysHoldException, LoginRequired, ApiException
from steampy.exceptions import SevenDaysHoldException, ApiException
from steampy.login import LoginExecutor, InvalidCredentials
from steampy.market import SteamMarket
from steampy.models import Asset, TradeOfferState, SteamUrl, GameOptions
Expand All @@ -35,7 +34,6 @@ def __init__(self, api_key: str, username: str = None, password: str = None, ste
self.username = username
self._password = password
self.market = SteamMarket(self._session)
self.chat = SteamChat(self._session)
if login_cookies:
self.set_login_cookies(login_cookies)

Expand Down

0 comments on commit 0993fd6

Please sign in to comment.