Refactor
This commit is contained in:
parent
028b838bee
commit
d660339433
|
@ -5,7 +5,8 @@ using TdLib;
|
|||
using static tgcli.tgcli;
|
||||
using static tgcli.Util;
|
||||
|
||||
namespace tgcli {
|
||||
namespace tgcli;
|
||||
|
||||
public abstract class Command {
|
||||
public string trigger;
|
||||
public string shortcut;
|
||||
|
@ -830,4 +831,3 @@ namespace tgcli {
|
|||
LogOut();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,8 @@ using NeoSmart.Unicode;
|
|||
using static TdLib.TdApi;
|
||||
using static tgcli.tgcli;
|
||||
|
||||
namespace tgcli {
|
||||
namespace tgcli;
|
||||
|
||||
public static class Util {
|
||||
public static class Ansi {
|
||||
public const string ResetAll = "\x1B[0m";
|
||||
|
@ -62,8 +63,7 @@ namespace tgcli {
|
|||
}
|
||||
}
|
||||
|
||||
public static List<Message> GetHistory(long chatId, int limit = 5, long fromMessageId = 0, int offset = 0, bool isSecret = false,
|
||||
bool skipTotal = false) {
|
||||
public static List<Message> GetHistory(long chatId, int limit = 5, long fromMessageId = 0, int offset = 0, bool isSecret = false, bool skipTotal = false) {
|
||||
var history = new List<Message>();
|
||||
var total = GetTotalMessages(chatId);
|
||||
var chat = GetChat(chatId);
|
||||
|
@ -561,4 +561,3 @@ namespace tgcli {
|
|||
ConsoleKey.OemClear
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,8 @@ using static tgcli.CommandManager;
|
|||
|
||||
// ReSharper disable SwitchStatementMissingSomeEnumCasesNoDefault
|
||||
|
||||
namespace tgcli {
|
||||
namespace tgcli;
|
||||
|
||||
/*
|
||||
* TODO:
|
||||
* fix newlines with input nav...
|
||||
|
@ -611,4 +612,3 @@ namespace tgcli {
|
|||
ScreenUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue