Update for new chyat

This commit is contained in:
barelyprofessional
2026-02-28 15:34:36 -06:00
parent 8a827a17de
commit c8016b4fc6
23 changed files with 178 additions and 104 deletions

View File

@@ -736,19 +736,19 @@ public class BotServices
private async Task OnYeetWinEditTaskAsync(SentMessageTrackerModel oldMsg, string newMsg)
{
var i = 0;
while (oldMsg.ChatMessageId == null && i < 50)
while (oldMsg.ChatMessageUuid == null && i < 50)
{
await Task.Delay(100, _cancellationToken);
i++;
}
if (oldMsg.ChatMessageId == null)
if (oldMsg.ChatMessageUuid == null)
{
_logger.Error($"Timed out waiting to figure out our message ID");
return;
}
await _chatBot.KfClient.EditMessageAsync(oldMsg.ChatMessageId.Value, newMsg);
await _chatBot.KfClient.EditMessageAsync(oldMsg.ChatMessageUuid, newMsg);
}
private void OnHowlggBetHistory(object sender, HowlggBetHistoryResponseModel data)
@@ -918,7 +918,7 @@ public class BotServices
BuiltIn.Keys.KiwiFarmsRedColor, BuiltIn.Keys.KiwiFarmsGreenColor
]);
var patience = 0;
while (msg.ChatMessageId == null)
while (msg.ChatMessageUuid == null)
{
patience++;
if (msg.Status is SentMessageTrackerStatus.Lost or SentMessageTrackerStatus.NotSending || patience > 50)
@@ -935,11 +935,11 @@ public class BotServices
{
if (seconds % 2 == 0)
{
await _chatBot.KfClient.EditMessageAsync(msg.ChatMessageId.Value, $"[color={settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value}]{msg.Message}[/color]");
await _chatBot.KfClient.EditMessageAsync(msg.ChatMessageUuid, $"[color={settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value}]{msg.Message}[/color]");
}
else
{
await _chatBot.KfClient.EditMessageAsync(msg.ChatMessageId.Value, $"[color={settings[BuiltIn.Keys.KiwiFarmsRedColor].Value}]{msg.Message}[/color]");
await _chatBot.KfClient.EditMessageAsync(msg.ChatMessageUuid, $"[color={settings[BuiltIn.Keys.KiwiFarmsRedColor].Value}]{msg.Message}[/color]");
}
await Task.Delay(1000, _cancellationToken);