github.com/tada-team/tdproto@v1.51.57/push_device.go (about) 1 package tdproto 2 3 // Push device info 4 type PushDevice struct { 5 // Type: android, ios, web, safari 6 Type string `json:"type"` 7 8 // Device id generated by client library 9 DeviceId string `json:"device_id"` 10 11 // Notification token 12 NotificationToken string `json:"notification_token"` 13 14 // Notification token for VOIP (iOS only) 15 VoipNotificationToken string `json:"voip_notification_token"` 16 17 // Readable device name 18 Name string `json:"name"` 19 20 // Send silently data pushes that must be fully processed by app. Must be true for modern mobile clients 21 DataPushes bool `json:"data_pushes"` 22 23 // Send badge value as data. Experimental 24 DataBadges bool `json:"data_badges"` 25 26 // deprecated 27 AllowedNotifications bool `json:"allowed_notifications"` 28 }