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

Explore the source code of the class SetWebHookRequest.java

package com.antonioaltieri.telegram.botapi.requests;

import java.util.HashMap;
import java.util.Map;

public class SetWebHookRequest implements com.antonioaltieri.telegram.botapi.requests.ApiRequest {
    private Map args = new HashMap<>();

	public SetWebHookRequest(String webHookURL) {
        args.put("url", webHookURL);

    }
	@Override
	public String getMethodName() {
		return "setWebhook";
	}

	@Override
	public ResultTypes getResultType() {
		return ResultTypes.BOOLEAN;
	}

	@Override
	public Map getArgs() {
		return args;
	}

	@Override
	public RequestStrategy getRequestStrategy() {
        return new PostStrategy();

	}

}