File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/test/kotlin/com/vonage/client/kt Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -235,16 +235,17 @@ class MessagesTest : AbstractTest() {
235
235
fun `send Viber video` () {
236
236
val duration = 23
237
237
val fileSize = 7
238
- val ttl = 90 // TODO fix in Java SDK
238
+ val ttl = 90
239
239
val thumbUrl = " https://example.com/file1.jpg"
240
240
testSend(videoBody(viberChannel,
241
241
captionMap + mapOf (" thumb_url" to thumbUrl)) + mapOf (viberChannel to mapOf (
242
242
" category" to " transaction" ,
243
243
" duration" to duration,
244
+ " ttl" to ttl,
244
245
" file_size" to fileSize
245
246
)), viberVideo {
246
- from(altNumber); to(toNumber); url(videoUrl); caption(caption);
247
- category(Category .TRANSACTION ); duration(duration)
247
+ from(altNumber); to(toNumber); url(videoUrl); caption(caption)
248
+ category(Category .TRANSACTION ); duration(duration); ttl(ttl)
248
249
fileSize(fileSize); thumbUrl(thumbUrl)
249
250
}
250
251
)
@@ -398,7 +399,7 @@ class MessagesTest : AbstractTest() {
398
399
val params = whatsappCustomBody(mapOf (
399
400
" type" to " location" ,
400
401
" location" to mapOf (
401
- " lat " to latitude, " long " to longitude,
402
+ " latitude " to latitude, " longitude " to longitude,
402
403
" name" to name, " address" to address
403
404
)
404
405
)
You can’t perform that action at this time.
0 commit comments