Add logs when running signal
This commit is contained in:
23
src/Managing.Common/Formatings.cs
Normal file
23
src/Managing.Common/Formatings.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user