We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b45510d + ea52ffb commit ccb5b32Copy full SHA for ccb5b32
otp_message.go
@@ -23,6 +23,7 @@ type OtpParams struct {
23
Language string
24
Voice string
25
Template string
26
+ DataCoding string
27
}
28
29
// paramsForOtp converts the specified OtpParams struct to a
@@ -47,6 +48,10 @@ func paramsForOtp(params *OtpParams) *url.Values {
47
48
urlParams.Set("template", params.Template)
49
50
51
+ if params.DataCoding != "" {
52
+ urlParams.Set("datacoding", params.DataCoding)
53
+ }
54
+
55
// Specific params for voice messages
56
if params.Language != "" {
57
urlParams.Set("language", params.Language)
0 commit comments