0

Fix Fwdcnt zero value handling in message parsing

- Change Fwdcnt type from int64 to *int64 in rMsg struct
- Use pointer to properly distinguish between 'not provided' (nil) and explicit 0
- Update all Fwdcnt usages to dereference pointer
This commit is contained in:
eleksir
2026-03-30 01:51:35 +03:00
parent 97b337db31
commit b661d42074
2 changed files with 8 additions and 7 deletions

View File

@@ -52,7 +52,7 @@ type rMsg struct {
Answer int64 `json:"answer,omitempty"`
Botnick string `json:"bot_nick,omitempty"`
Csign string `json:"csign,omitempty"`
Fwdcnt int64 `json:"fwd_cnt,omitempty"`
Fwdcnt *int64 `json:"fwd_cnt,omitempty"`
GoodMorning int64 `json:"good_morning,omitempty"`
Msgformat int64 `json:"msg_format,omitempty"`
Username string `json:"username,omitempty"`