Skip to content

Commit

Permalink
possible fix for markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed May 13, 2024
1 parent 237fb49 commit 3da5457
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,21 @@ static async Task HandleUpdateAsync(ITelegramBotClient botClient, Update update,
}
else
{
await SendResponse("Sorry. Was unable to trigger your build. Likely the repository is not supported.");
await SendResponse("Sorry\\. Was unable to trigger your build\\. Likely the repository is not supported\\.");
Console.WriteLine("Unable to trigger build.");
}

}
else
{
await SendResponse("Sorry. Was unable to get the repository and branch from the URL. Check your URL and try again.");
await SendResponse("Sorry\\. Was unable to get the repository and branch from the URL\\. Check your URL and try again\\.");
Console.WriteLine("Unable to parse repo");
}
}

async Task SendResponse(string msg)
{
Console.WriteLine($"Chat response:\n{msg}");
bool isTopic = message.IsTopicMessage ?? false;
await botClient.SendTextMessageAsync(
chatId: chatId,
Expand Down

0 comments on commit 3da5457

Please sign in to comment.