All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.viber.bot.event.callback.OnConversationStarted Maven / Gradle / Ivy

Go to download

Use this library to communicate with the Viber API to develop a bot for https://developers.viber.com/.

There is a newer version: 1.0.11
Show newest version
package com.viber.bot.event.callback;

import com.viber.bot.event.BotEventListener;
import com.viber.bot.event.incoming.IncomingConversationStartedEvent;
import com.viber.bot.message.Message;

import java.util.Optional;
import java.util.concurrent.Future;

import static com.google.common.base.Preconditions.checkArgument;

public interface OnConversationStarted extends BotEventListener> {
    Future> conversationStarted(IncomingConversationStartedEvent event);

    @Override
    default Future> emit(final Object... args) {
        checkArgument(args.length == 1);
        return conversationStarted((IncomingConversationStartedEvent) args[0]);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy