tdlib / td

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

TDLib JNI - won't get message reactions in linux/Mac Build #3071

Closed eumel19900 closed 3 weeks ago

eumel19900 commented 3 weeks ago

Hi,

I wrote my software for Windows where I get message reactions on messages in the message.interactionInfo.reactions field. Now I am porting to Linux and Mac and this field is always null: image

The documentation says this field may be null, but it doesn't say how to get the reactions: https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1message_interaction_info.html

I built all TDLib binaries myself for all platforms using the official html build instructions generator. Mac and Linux is ARM, Windows is x64.

How do I get the message reactions? :-)

Any help would be appreciated.

Greetings Robert

levlam commented 3 weeks ago

There is no way to get message reactions in TDLib. They are fetched whenever appropriate internally by TDLib for regular users. Bots receive updates whenever reactions change.

eumel19900 commented 3 weeks ago

Are you sure? It works in Windows (I took this screenshot right now in Windows): image

I am writing a tool for filtering group messages based on user feedback. What options do I have for achieving this?

Any help would be appreciated. Greetings Robert

levlam commented 3 weeks ago

I am writing a tool for filtering group messages based on user feedback. What options do I have for achieving this?

You should use a regular bot for this and listen for "message_reaction" updates.

eumel19900 commented 3 weeks ago

Ok, thx. I will find a solution.