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

com.antonioaltieri.telegram.botapi.requests.SetWebHookRequest Maven / Gradle / Ivy

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();

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy