/// <summary> /// Отправить список всех пользователей /// </summary> /// <returns></returns> private async Task <IActionResult> SendFollowerList() { if (Argumetns != null && Argumetns.Count > 0) { BotMessage = new FollowerListMessage(Argumetns[0]); } else { BotMessage = new FollowerListMessage(); } var mess = BotMessage.BuildMsg(); if (mess != null) { await EditMessage(mess); } else { await AnswerCallback("Данные отсутствуют", true); } return(OkResult); }
private async Task <IActionResult> SendProductStockHistory(int ProductId, int PageNumber = 1, int MessageId = 0) { if (ProductId > 0) { BotMessage = new ProductStockHistoryMessage(ProductId, PageNumber); } var mess = BotMessage.BuildMsg(); if (mess != null) { await SendMessage(mess, MessageId); } return(OkResult); }
private async Task <IActionResult> SendPickupPointList(int MessageId = 0) { if (Argumetns != null && Argumetns.Count > 0) { BotMessage = new PickUpPointListMessage(Argumetns[0]); } else { BotMessage = new PickUpPointListMessage(); } await SendMessage(BotMessage.BuildMsg(), MessageId); return(OkResult); }
private async Task <IActionResult> SendQiwiList() { if (Argumetns.Count == 1) { BotMessage = new QiwiListMessage(Argumetns[0]); } else { BotMessage = new QiwiListMessage(); } await EditMessage(BotMessage.BuildMsg()); return(OkResult); }