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

com.pengrad.telegrambot.request.KickChatMember Maven / Gradle / Ivy

There is a newer version: 7.11.0
Show newest version
package com.pengrad.telegrambot.request;

import com.pengrad.telegrambot.response.BaseResponse;

/**
 * stas
 * 5/2/16.
 * 
 * @deprecated from BOT API v5.3 you should use BanChatMember instead
 */
@Deprecated
public class KickChatMember extends BaseRequest {

    public KickChatMember(Object chatId, long userId) {
        super(BaseResponse.class);
        add("chat_id", chatId).add("user_id", userId);
    }

    public KickChatMember untilDate(int untilDate) {
        return add("until_date", untilDate);
    }

    public KickChatMember revokeMessages(boolean revokeMessages) {
        return add("revoke_messages", revokeMessages);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy