public async Task StartCommenication(CallbackQueryEventArgs callback) { // кто шлёт каллбек получатель по умолчанию long chatid = callback.CallbackQuery.Message.Chat.Id; long[] chatIds = await provider.hubService.GetChatId(chatid); long chatIdReceiver = chatIds[0]; if (chatIds.Length == 0) { throw new System.Exception("Dialog is incorrect"); } //ПРОВЕРКА ВОЗМОЖНО БИЗНЕСМЕН В ДИАЛОГЕ await provider.hubService.ConfirmDialog(chatIdReceiver, chatid, true); List <string> Surname = await provider.userService.GetSurNames(chatid, chatIdReceiver); DateTime now = DateTime.Now; await File.AppendAllTextAsync($"{chatid}" + " " + $"{chatIdReceiver}" + ".txt", $"Начало диалога:\n{now}\n"); await client.SendTextMessageAsync(chatIdReceiver, "Подключение установлено", 0, false, false, 0, KeyBoardHandler.EndDialogForBuisnessMan()); await client.SendTextMessageAsync(chatid, "Подключение установлено", 0, false, false, 0, KeyBoardHandler.EndDialog()); }