Closed kjlsdlkfio332fsdkla32skjdf closed 9 months ago
You can pass only reaction that is present on the message as received from TDLib. Passing hardcoded data will not work. Reactions are updated on messages when this is appropriate. Usually, user needs to view the message to have reactions on it updated.
Yes, I know that it is necessary to get a reaction using the appropriate method, but in this example I am testing this functionality and taking this reaction (I also set it on the message). How can I manually update the required information and delete the reaction?
Да, я знаю, что необходимо получить реакцию соответствующим методом, но в данном примере я тестирую этот функционал и беру эту реакцию (её я тоже устанавливаю на сообщение). Как я могу вручную обновить необходимую информацию и удалить реакцию?
That is, pre-programmed data is used only for testing the functionality, taking into account that this particular reaction is based on the specified message.
Apps are expected to receive the message and reactions to it from TDLib. If the message contains the reaction as provided by TDLib, then removeMessageReaction
will work for the message and reaction. If the message received from TDLib doesn't have the reaction known, then removeMessageReaction
will do nothing.
Ожидается, что приложения получат сообщение и реакцию на него от TDLib. Если сообщение содержит реакцию, предоставленную TDLib, то
removeMessageReaction
это сообщение и реакция будут работать. Если на сообщение, полученное от TDLib, не известна реакция,removeMessageReaction
ничего не произойдет.
Okay, I get it, thanks. so still, what method can I use to get information about reactions to a message in order to delete my reaction
Ожидается, что приложения получат сообщение и реакцию на него от TDLib. Если сообщение содержит реакцию, предоставленную TDLib, то
removeMessageReaction
это сообщение и реакция будут работать. Если на сообщение, полученное от TDLib, не известна реакция,removeMessageReaction
ничего не произойдет.Okay, I get it, thanks. so still, what method can I use to get information about reactions to a message in order to delete my reaction
updateMessageInteractionInfo it is triggered only when the update occurred during the session (i.e., after the program was launched, all reactions that were before the program was launched are not loaded.)
Reactions are updated on messages when this is appropriate. Usually, user needs to view the message to have reactions on it updated.
Реакции на сообщения обновляются, когда это необходимо. Обычно пользователю необходимо просмотреть сообщение, чтобы обновить реакцию на него.
How can I do this? the viewmessage method did not help
viewmessages*
By calling viewMessages
with appropriate source
.
Позвонив
viewMessages
с соответствующимsource
.
Thank you very much for the reply. I will try to test it, but so far, to be honest, it has not been very successful. I will be very glad if you can share an example of how to implement it, because there is little written in the documentation about working with these methods.
I used 4 methods to solve the issue :
Greetings! I am using the code to remove the reaction to the message (shown below). It turns out that when the reaction deletion function is called (if you set the reaction before starting the program), the ok response is returned, but the reaction is not deleted. However, if the reaction is set during the program session, then the reaction is deleted stably (I tried to put it in a loop and it worked). How can this be fixed? (C++ Using)
` //Считаем message_id с коэффицентом 1048576 message_id = message_id * 1048576;