Converted send message method to async (also created a synchronous method that shadows the async method). Added a method to send multiple messages at once and message truncation with a choice of strategies

This commit is contained in:
barelyprofessional
2024-09-17 00:57:11 +08:00
parent 4753783c41
commit 5b3f394c29
14 changed files with 152 additions and 49 deletions

View File

@@ -16,9 +16,9 @@ public enum SentMessageTrackerStatus
{
WaitingForResponse,
ResponseReceived,
// If the bot is blocked from sending the message, e.g. due to suppress chat messages being enabled
// If the bot is blocked from sending the message, e.g. due to suppress chat messages being enabled or length limit
NotSending,
// Shouldn't happen normally, it's just set before the bot has made a decision on whether to send or not,
// Shouldn't happen normally, it's just set before the bot has made a decision on whether to send or not
Unknown,
// Means the chat was disconnected when you attempted to send the message
ChatDisconnected,