!!! Обработки событий добавлены

This commit is contained in:
PC1\PTyTb 2025-08-16 23:33:45 +03:00
parent 16b665d225
commit 8357a587df
1 changed files with 12 additions and 2 deletions

View File

@ -243,8 +243,18 @@ begin
if md.subscription_type = 'channel.follow' then if md.subscription_type = 'channel.follow' then
if Assigned(FOnFollow) then if Assigned(FOnFollow) then
FOnFollow(ParseFollowEvent(AText)); 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 end
else if md.message_type = 'session_keepalive' then else if md.message_type = 'session_keepalive' then
toLog(3, 'EventMSG', 'Ïîëó÷åí keepalive'); toLog(3, 'EventMSG', 'Ïîëó÷åí keepalive');