Skip to content

Commit

Permalink
theopenconversationkit#1682 whatsAppCloudTextParameterTemplate - use …
Browse files Browse the repository at this point in the history
…ParameterType in parameter instead of charSequence
  • Loading branch information
charles_moulhaud committed Aug 20, 2024
1 parent 3122ac1 commit ae115a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,10 @@ fun <T : Bus<T>> T.whatsAppCloudBodyTemplate(
)

fun <T : Bus<T>> T.whatsAppCloudTextParameterTemplate(
typeParameter: CharSequence?,
typeParameter: ParameterType,
textButton: CharSequence?
): TextParameter = TextParameter(
type = ParameterType.valueOf((typeParameter).toString()),
type = typeParameter,
text = translate(textButton).toString(),
)

Expand Down

0 comments on commit ae115a5

Please sign in to comment.