Add logs when running signal

This commit is contained in:
2025-10-15 22:01:32 +07:00
parent da9c8db474
commit e9479e0a48
3 changed files with 28 additions and 21 deletions

View File

@@ -0,0 +1,23 @@
namespace Managing.Common;
public static class Formatings
{
public static string FormatTelegramChannel(string? telegramChannel)
{
if (string.IsNullOrEmpty(telegramChannel))
{
return string.Empty;
}
if (telegramChannel.StartsWith("100"))
{
return telegramChannel.Substring(3);
}
else if (telegramChannel.StartsWith("-100"))
{
return telegramChannel.Substring(4);
}
return telegramChannel;
}
}