Search code examples
c#steambot

SteamBot - Send a Message with Trade


I try to send a message when a user make a trade, but I can't find the way. I put SendMessage in TradeOfferUserHandle.cs:

public override void OnTradeInit() 
{ 

      SendChatMessage("Hi User, Trade start!"); 
}

But don't work. Any solution? I use C# SteamBot: https://github.com/Jessecar96/SteamBot


Solution

  • Solved. The problem is that I need overwrite SimpleUserHandle.cs, not TradeOfferUserHandle.cs