private void SetResultAsChat(IChat chat, string id, Action<Tuple<Contact, Contact.ID>> result) { var contact = new TelegramContact { FirstName = TelegramUtils.GetChatTitle(chat) }; var contactId = new Contact.PartyID { ExtendedParty = chat is Channel, Id = id, Service = this }; result(new Tuple<Contact, Contact.ID>(contact, contactId)); }
private void SetResultAsChat(IChat chat, string id, Action<Tuple<Contact, Contact.ID>> result) { var contact = new TelegramContact { FirstName = TelegramUtils.GetChatTitle(chat) }; var contactId = new Contact.PartyID { ExtendedParty = chat is Channel, Id = id, Service = this }; result(new Tuple<Contact, Contact.ID>(contact, contactId)); }