github.com/tada-team/tdproto@v1.51.57/call_event.go (about) 1 package tdproto 2 3 // Call information 4 type CallEvent struct { 5 // Chat or contact id 6 Jid JID `json:"jid"` 7 8 // Call id 9 Uid string `json:"uid"` 10 11 // Call buzzing 12 Buzz bool `json:"buzz,omitempty"` 13 14 // Creation date, iso datetime 15 Created ISODateTimeString `json:"created"` 16 17 // Call start. For direct calls can be empty when buzzing 18 Start ISODateTimeString `json:"start,omitempty"` 19 20 // Call finish 21 Finish ISODateTimeString `json:"finish,omitempty"` 22 23 // Call record enabled 24 Audiorecord bool `json:"audiorecord"` 25 26 // Call participants 27 Onliners []CallOnliner `json:"onliners,omitempty"` 28 29 // Version 30 Gentime int64 `json:"gentime"` 31 32 // Deprecated: use gentime or created 33 Timestamp int64 `json:"timestamp"` 34 } 35 36 // Call participant 37 type CallOnliner struct { 38 // Contact id 39 Jid JID `json:"jid"` 40 41 // Contact name 42 DisplayName string `json:"display_name"` 43 44 // Contact role 45 Role string `json:"role"` 46 47 // Contact icon 48 Icon string `json:"icon"` 49 50 // Microphone muted. Computed from devices muted states 51 Muted bool `json:"muted"` 52 53 // Video state 54 EnabledVideo bool `json:"enabled_video"` 55 56 // Screenshare state 57 EnabledScreenshare bool `json:"enabled_screenshare"` 58 59 // Member devices, strictly one for now 60 Devices []CallDevice `json:"devices"` 61 } 62 63 // Call participant device 64 type CallDevice struct { 65 // Device muted 66 Muted bool `json:"muted"` 67 68 // Device description 69 Useragent string `json:"useragent"` 70 }