diff --git a/pkg/channels/line/line.go b/pkg/channels/line/line.go index 61d2ee18f..87eecd014 100644 --- a/pkg/channels/line/line.go +++ b/pkg/channels/line/line.go @@ -583,10 +583,11 @@ func classifySDKError(resp *http.Response, err error) error { // sendLoading sends a loading animation indicator to the chat. func (c *LINEChannel) sendLoading(ctx context.Context, chatID string) error { - resp, _, err := c.client.WithContext(ctx).ShowLoadingAnimationWithHttpInfo(&messaging_api.ShowLoadingAnimationRequest{ + req := &messaging_api.ShowLoadingAnimationRequest{ ChatId: chatID, LoadingSeconds: 60, - }) + } + resp, _, err := c.client.WithContext(ctx).ShowLoadingAnimationWithHttpInfo(req) return classifySDKError(resp, err) }