/*
 * Copyright 2016 LINE Corporation
 *
 * LINE Corporation licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

package com.example.bot.spring.echo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.linecorp.bot.model.event.Event;
import com.linecorp.bot.model.event.MessageEvent;
import com.linecorp.bot.model.event.message.TextMessageContent;
import com.linecorp.bot.model.message.TextMessage;
import com.linecorp.bot.spring.boot.annotation.EventMapping;
import com.linecorp.bot.spring.boot.annotation.LineMessageHandler;

@SpringBootApplication
@LineMessageHandler
public class EchoApplication {
    public static void main(String[] args) {
        SpringApplication.run(EchoApplication.class, args);
    }

    @EventMapping
    public TextMessage handleTextMessageEvent(MessageEvent<TextMessageContent> event) {
        System.out.println("event: " + event);
        return new TextMessage(event.getMessage().getText());
    }

    @EventMapping
    public void handleDefaultMessageEvent(Event event) {
        System.out.println("event: " + event);
    }
    
    @EventMapping
    public Message handleStickerMessage(MessageEvent<StickerMessageContent> event) {
    return new TextMessage("スタンプ送信ありがとうございます！");
    }
    
    @EventMapping
    public Message handleImageMessage(MessageEvent<ImageMessageContent> event) {
    return new TextMessage("画像送信ありがとうございます！");
    }
    
    @EventMapping
    public Message handleVideoMessage(MessageEvent<VideoMessageContent> event) {
    return new TextMessage("動画送信ありがとうございます！");
    }
    
    @EventMapping
    public Message handleAudioMessage(MessageEvent<AudioMessageContent> event) {
    return new TextMessage("音声送信ありがとうございます！");
    }

    @EventMapping
    public Message handleFollowEvent(FollowEvent event) {
    return new TextMessage("友達追加ありがとうございます！");
    }
    
}

@@ -1668,770 +1668,6 @@
    %0A
-    @EventMapping%0A    public Message handleStickerMessage(MessageEvent%3CStickerMessageContent%3E event) %7B%0A    return new TextMessage(%22%E3%82%B9%E3%82%BF%E3%83%B3%E3%83%97%E9%80%81%E4%BF%A1%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%EF%BC%81%22);%0A    %7D%0A    %0A    @EventMapping%0A    public Message handleImageMessage(MessageEvent%3CImageMessageContent%3E event) %7B%0A    return new TextMessage(%22%E7%94%BB%E5%83%8F%E9%80%81%E4%BF%A1%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%EF%BC%81%22);%0A    %7D%0A    %0A    @EventMapping%0A    public Message handleVideoMessage(MessageEvent%3CVideoMessageContent%3E event) %7B%0A    return new TextMessage(%22%E5%8B%95%E7%94%BB%E9%80%81%E4%BF%A1%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%EF%BC%81%22);%0A    %7D%0A    %0A    @EventMapping%0A    public Message handleAudioMessage(MessageEvent%3CAudioMessageContent%3E event) %7B%0A    return new TextMessage(%22%E9%9F%B3%E5%A3%B0%E9%80%81%E4%BF%A1%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%EF%BC%81%22);%0A    %7D%0A%0A    @EventMapping%0A    public Message handleFollowEvent(FollowEvent event) %7B%0A    return new TextMessage(%22%E5%8F%8B%E9%81%94%E8%BF%BD%E5%8A%A0%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%99%EF%BC%81%22);%0A    %7D%0A    %0A
 %7D%0A

Update EchoApplication.java