I use this in my WPF project but always return 0. var messages = await _client.Messages_SearchGlobal(Search.Text, filter, DateTime.Now.AddDays(-2), DateTime.Now);
Asked
Active
Viewed 95 times
1 Answers
1
I tried this, and it worked; I obtained many messages:
var res = await client.Messages_SearchGlobal("test", null, DateTime.Now.AddDays(-2), DateTime.Now);
Your filter
value must be wrong.

Erçin Dedeoğlu
- 4,950
- 4
- 49
- 69

Wizou
- 1,336
- 13
- 24
-
var filter = new TL.InputMessagesFilterContacts(); – Dmitry Guzman Jun 20 '22 at 18:12
-
as I understand it, InputMessagesFilterContacts is to search messages which contain an attached "contact" that someone shared with you. – Wizou Jun 20 '22 at 18:28
-
Yes it is, I didn't figure it out right away. – Dmitry Guzman Jun 20 '22 at 19:12