File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77| ** url** | ** String** | URL pointing to the video resource. | |
88| ** thumbnail** | ** String** | URL pointing to the video thumbnail resource. | |
99| ** file_size** | ** Integer** | Size of the video file in bytes. Cannot be larger than 200MB. | |
10- | ** duration** | [ ** Array & lt ; WhatsAppParameter & gt ; ** ] ( WhatsAppParameter.md ) | Duration of the video in seconds. Cannot be longer than 600 seconds. | |
10+ | ** duration** | ** Integer ** | Duration of the video in seconds. Cannot be longer than 600 seconds. | |
1111
1212## Example
1313
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def self.openapi_types
4949 :'url' => :'String' ,
5050 :'thumbnail' => :'String' ,
5151 :'file_size' => :'Integer' ,
52- :'duration' => :'Array<WhatsAppParameter> '
52+ :'duration' => :'Integer '
5353 }
5454 end
5555
@@ -93,9 +93,7 @@ def initialize(attributes = {})
9393 end
9494
9595 if attributes . key? ( :'duration' )
96- if ( value = attributes [ :'duration' ] ) . is_a? ( Array )
97- self . duration = value
98- end
96+ self . duration = attributes [ :'duration' ]
9997 else
10098 self . duration = nil
10199 end
You can’t perform that action at this time.
0 commit comments