I need to delete specific message (TL.Message msg) from my chat.
I'm trying to use var aff = await _tgSession.TgClient.Messages_DeleteMessages(new int[1] { msg.id });
but it do nothing.
this is understandable because I don't send the chat ID anywhere.
Is any other way to delete message?
Read the helpful tooltips when you're programming:
and read the essential README about Terminology
Messages_DeleteMessagesis only for legacy basic chats / user chats.Channel_DeleteMessagesis for groups & channeleven better: use helper
client.DeleteMessages(...)that works in any of those cases.