示例#1
0
        private async Task DoSendContact(UserModel user)
        {
            if (!(dialogToReturn is DialogModelPlain))
            {
                return;
            }

            InputPeer  ip    = dialogToReturn.InputPeer;
            InputMedia media = TL.inputMediaContact(user.PhoneNumber, user.FirstName, user.LastName);

            DialogModelPlain dialog = (DialogModelPlain)dialogToReturn;
            await dialog.SendMedia(media);
        }