You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on_trade and on_trade_update event callbacks not called
Reproduction Steps
import steam
class MyClient(steam.Client):
async def on_ready(self) -> None:
print("Logged in as", self.user)
async def on_trade(self, trade: steam.TradeOffer) -> None:
if not trade.is_our_offer():
await trade.user.send("Thank you for your trade")
print(f"Received trade: #{trade.id}")
print("Trade partner is:", trade.user)
print("We would send:", len(trade.sending), "items")
print("We would receive:", len(trade.receiving), "items")
if trade.is_gift():
print("Accepting the trade as it is a gift")
await trade.accept()
client = MyClient()
client.run("username", "password")
I could reproduce it with the sample code from the Readme for 1.0.1 and installation from main.
Expected Results
on_trade and on_trade_update event callbacks being called
Actual Results
on_message callback with content [tradeoffer sender=1951**** id=750341****][/tradeoffer]
I also noticed sending a message with trade does not return the function call. But the trade goes out.
It might be related. It was the original problem I was debugging.
Summary
on_trade and on_trade_update event callbacks not called
Reproduction Steps
I could reproduce it with the sample code from the Readme for 1.0.1 and installation from main.
Expected Results
on_trade and on_trade_update event callbacks being called
Actual Results
on_message callback with content [tradeoffer sender=1951**** id=750341****][/tradeoffer]
I also noticed sending a message with trade does not return the function call. But the trade goes out.
It might be related. It was the original problem I was debugging.
System Information
python version: 3.12.7
steam.py version: 1.0.1
aiohttp version: 3.10.10
betterproto version: 2.0.0b6
operating system info: Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
Checklist
The text was updated successfully, but these errors were encountered: