tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

In what case will updateMessageInteractionInfo's `interaction_info` be null? #2804

Closed vincentneo closed 8 months ago

vincentneo commented 8 months ago

I realised today after triggering removeMessageReaction on a message that:

that the subsequent updateMessageInteractionInfo contains just the message_id and chat_id without interaction_info.

Does that mean that it is safe to assume that that only happens on the exact scenario in cases such as mentioned above?

Thanks.

levlam commented 8 months ago

It is null if message doesn't have interactions. Currently, it means view_count == 0, forward_count == 0, reply_info == null and no reactions.

vincentneo commented 8 months ago

got it, thanks!