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

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

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

import com.pengrad.telegrambot.response.ChatInviteLinkResponse;

/**
 * Stas Parshin
 * 10 March 2021
 */
public class CreateChatInviteLink extends BaseRequest {

    public CreateChatInviteLink(Object chatId) {
        super(ChatInviteLinkResponse.class);
        add("chat_id", chatId);
    }

    public CreateChatInviteLink expireDate(Integer expireDate) {
        return add("expire_date", expireDate);
    }

    public CreateChatInviteLink memberLimit(Integer memberLimit) {
        return add("member_limit", memberLimit);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy