From 8357a587dfda370493ecee1e7cb5d32746fab0f9 Mon Sep 17 00:00:00 2001 From: "PC1\\PTyTb" Date: Sat, 16 Aug 2025 23:33:45 +0300 Subject: [PATCH] =?UTF-8?q?!!!=20=D0=9E=D0=B1=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B8=20=D1=81=D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D0=B9?= =?UTF-8?q?=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/uTTWEventSub.pas | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Services/uTTWEventSub.pas b/Services/uTTWEventSub.pas index 5ebe551..f59a516 100644 --- a/Services/uTTWEventSub.pas +++ b/Services/uTTWEventSub.pas @@ -243,8 +243,18 @@ begin if md.subscription_type = 'channel.follow' then if Assigned(FOnFollow) then FOnFollow(ParseFollowEvent(AText)); - //todo доделать парсинг типов нотификаций! - // Тут аналогично можно вызывать ParseSubEvent, ParseGiftEvent, ParseRaidEvent + + if md.subscription_type = 'channel.subscribe' then + if Assigned(FOnSub) then + FOnSub(ParseSubEvent(AText)); + + if md.subscription_type = 'channel.subscription.gift' then + if Assigned(FOnGift) then + FOnGift(ParseGiftEvent(AText)); + + if md.subscription_type = 'channel.raid' then + if Assigned(FOnRaid) then + FOnRaid(ParseRaidEvent(AText)); end else if md.message_type = 'session_keepalive' then toLog(3, 'EventMSG', 'Получен keepalive');