Closed YarnikeyZ closed 1 year ago
You need to specify an appropriate response handler instead of _defaultHandler
. TdApi.SendMessage
returns a temporary local message. You need to wait and handle updateMessageSendSucceeded
/updateMessageSendFailed
/updateDeleteMessages
for the message to actually receive the sent message.
Getting the message that i have just sent.
I have a function that sends a message, it's pretty much an un-edited
ctrl+c
+ctrl+v
from the exampleBut
_client.Send()
redirects function output (message that i need) to onlyTd.ClientResultHandler
and from it i obviosly can't get it back since it returns only void.I have tried to send message in sync but it's can't be done.
So, how do i get back (to
sendMessage
function) the message that i just sent?