Skip to content

Commit

Permalink
Add voice message type (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnyandrew authored Nov 1, 2023
1 parent 2976fe5 commit aa14cbc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schemas/Composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."}
]
}
},
Expand Down
5 changes: 5 additions & 0 deletions types/kotlin2/Composer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ data class Composer(
* A text message.
*/
Text,

/**
* A voice message.
*/
VoiceMessage,
}

override fun getName() = "Composer"
Expand Down
2 changes: 2 additions & 0 deletions types/swift/Composer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ extension AnalyticsEvent {
case Poll
/// A text message.
case Text
/// A voice message.
case VoiceMessage
}

public var properties: [String: Any] {
Expand Down

0 comments on commit aa14cbc

Please sign in to comment.