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

ReplyToMessageId is always 0 even though it's replied message from existing message #2561

Closed Tieshsteveloml closed 1 year ago

Tieshsteveloml commented 1 year ago

Hi,

I hope this message finds you well. I wanted to reach out regarding an issue I've been facing with the recent update in my application.

In the UpdateNewMessage, I have noticed that the ReplyToMessageId field consistently shows 0, even when it involves a replied message from an existing message on the channel. I tried setting UseMessageDatabase to true, but unfortunately, it didn't resolve the problem. Strangely, this used to work perfectly in the older version, but after updating to the latest version, I'm encountering this unexpected behavior.

I was wondering if you might have any insights or suggestions on how to address this matter effectively.

Your assistance would be highly appreciated.

Thank you for your time and attention, Ties

levlam commented 1 year ago

The latest TDLib has no field ReplyToMessageId in the message object, which was replaced with ReplyTo field. Check that you use up-to-date bindings for TDLib 1.8.15.

Tieshsteveloml commented 1 year ago

The latest TDLib has no field ReplyToMessageId in the message object, which was replaced with ReplyTo field. Check that you use up-to-date bindings for TDLib 1.8.15.

Thank you for your confirmation. My TDLib version is 1.8.12, but it seems like the latest version on Nuget package manager (.Net4.8), Will you please give me the solution for my case?

levlam commented 1 year ago

You can build the latest TDLib yourself as described in https://tdlib.github.io/td/build.html?language=C%23 and pack it as a nuget package yourself, or use it with any wrapper listed in https://github.com/tdlib/td/tree/master/example#csharp.

Tieshsteveloml commented 1 year ago

I have tried the latest https://github.com/tdlib/td.git and TDLIb, but same issue.

Tieshsteveloml commented 1 year ago

I had to modify tdsharp project so that it can be worked properly with the latest td libs in c#

Thank you