コード例 #1
0
        public async void SendMessage(TelegramBotClient botClient)
        {
            await Task.Run(() => botClient.DeleteMessage(_message.From.Id, _message.MessageId, "54 - ChainTaskWork"));

            await Task.Run(() => botClient.EditMessage(_message.From.Id, user.MessageId, TextMessage, "55 - CallAdmin", user, replyMarkup: InlineButton.FindAnArtistBackToMenu(user)));

            await Task.Run(() => botClient.SendText(CommandName.Chat, $"Пост:\n\n{post.PostText}", replyMarkup: InlineButton.AnswerAdminInPost(user, post.Id)));
        }