feat: add BVK exchange library

This commit is contained in:
Георгий
2026-07-12 20:44:44 +03:00
parent 3a1c524eb2
commit 0ff0905a9c
15 changed files with 627 additions and 0 deletions

15
state.go Normal file
View File

@@ -0,0 +1,15 @@
package mila
import "time"
// ContentState is the current display state received from BVK.
type ContentState struct {
Route string `json:"route"`
Text string `json:"str"`
Template string `json:"tpl_name"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
}
func (s ContentState) IsZero() bool {
return s.Route == "" && s.Text == "" && s.Template == ""
}