I use WTelgramClient to remind patients about an upcoming doctor's appointment.
I am sending a message and I need to make sure that it is read.
using var client = new WTelegram.Client(Config);
var user = await client.LoginUserIfNeeded();
var contact = await client.Contacts_ImportContacts(new[] { new InputPhoneContact { phone = phoneNumber } });
object p = await client.SendMessageAsync(contact.users[contact.users.Keys.First()], patientMessage);
It seems that this can be done via flag
has_views
. I tried the code below, but I can't call dialogs.messages[0].flag.has_views
.
var dialogs = await client.Messages_GetAllDialogs();
Console.WriteLine(dialogs.messages[0]);