Closed andrew-maksimov closed 8 years ago
Did you configure NumberToAuthenticate
and NumberToSendMessage
in app.config
with valid phone numbers?
Try to run my test at. (the code in the first comment)
Numbers phone valid. All standard tests are performed.
Exception occurs only when you try to send a message to a group chat.
Sorry for big delay. I`ll investigate this in the next few days.
I deal with this issue. The reason was my inattention.
In order that would poison the message to a group chat, need to use InputPeerChatConstructor
instead InputPeerContactConstructor
in SendMessageRequest
.
I see. I'm currently making some refactorings to make such errors not possible. I think there will be no method SendMessage
in api. But instead you'll just create appropriate request and submit it. Need few days more to finish.
Test method CreateChatAndSendMessage threw exception: System.InvalidOperationException: PEER_ID_INVALID