This commit is contained in:
Laura Hausmann 2023-01-23 17:52:01 +01:00
parent 028b838bee
commit d660339433
Signed by: zotan
GPG key ID: D044E84C5BE01605
3 changed files with 1843 additions and 1844 deletions

View file

@ -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();
}
}
}

View file

@ -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
};
}
}

View file

@ -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();
}
}
}