79135 4 Posted April 25, 2019 Share Posted April 25, 2019 Why the code dont work? if (string.Equals("qwerty", new Channel().ReadMsg().Msg.Trim())) {} Bot cant catch message. Work only when: var chat = new Channel(); if (string.Equals("qwerty", chat.ReadMsg().Msg.Trim())) {} Link to comment Share on other sites More sharing options...
Droidz 2733 Posted April 26, 2019 Share Posted April 26, 2019 Hello, you need to keep instance to read all messages https://wrobot.eu/files/file/359-whisper-reply/ Phelon 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now