From 07fd6983806b8782d1cf2e333144fb44c678de99 Mon Sep 17 00:00:00 2001 From: jonnyandrew Date: Tue, 31 Oct 2023 13:18:04 +0000 Subject: [PATCH] Add voice message type --- schemas/Composer.json | 3 ++- types/kotlin2/Composer.kt | 5 +++++ types/swift/Composer.swift | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/schemas/Composer.json b/schemas/Composer.json index 6639f4f..9ecdbb4 100644 --- a/schemas/Composer.json +++ b/schemas/Composer.json @@ -28,7 +28,8 @@ {"const": "Text", "description": "A text message."}, {"const": "LocationPin", "description": "A pin drop location message."}, {"const": "LocationUser", "description": "A user current location message."}, - {"const": "Poll", "description": "A poll message."} + {"const": "Poll", "description": "A poll message."}, + {"const": "VoiceMessage", "description": "A voice message."} ] } }, diff --git a/types/kotlin2/Composer.kt b/types/kotlin2/Composer.kt index 9b299e7..a590ac1 100644 --- a/types/kotlin2/Composer.kt +++ b/types/kotlin2/Composer.kt @@ -69,6 +69,11 @@ data class Composer( * A text message. */ Text, + + /** + * A voice message. + */ + VoiceMessage, } override fun getName() = "Composer" diff --git a/types/swift/Composer.swift b/types/swift/Composer.swift index 2db40cc..fe8aa70 100644 --- a/types/swift/Composer.swift +++ b/types/swift/Composer.swift @@ -52,6 +52,8 @@ extension AnalyticsEvent { case Poll /// A text message. case Text + /// A voice message. + case VoiceMessage } public var properties: [String: Any] {