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

Spoilered text are not working on Android #2336

Closed atiyka closed 1 year ago

atiyka commented 1 year ago

I'm using the prebuilt library for Android downloaded recently from the official site. When I send the TdApi.GetChatHistory request to get the messages in a chat, in the result list every message content type is MessageUnsupported if the message is a text message and it contains any spoilered text.

Interestingly in C# (tdlib 1.8.9 + TdSharp) it works fine and returns the content correctly.

What do you suggest?

AYMENJD commented 1 year ago

You are using an outdated TDLib version.

Here is an example on how to build TDLib in Android: https://github.com/tdlib/td/tree/master/example/android#tdlib-android-example

atiyka commented 1 year ago

Thanks, I could build the new version and now it works fine.

@levlam so can you please remove or extend the text on the website, because it is not clear that it is a deprecated 3-4 years old build. It appears in 2 places:

AYMENJD commented 1 year ago

It will be removed after TDLib 1.9.0.