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

com.pengrad.telegrambot.request.EditChatSubscriptionInviteLink 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 EditChatSubscriptionInviteLink extends BaseRequest {

    /**
     * Edit a subscription invite link created by the bot
     * @param chatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
     * @param inviteLink The invite link to edit
     */
    public EditChatSubscriptionInviteLink(Object chatId, String inviteLink) {
        super(ChatInviteLinkResponse.class);
        add("chat_id", chatId);
        add("invite_link", inviteLink);
    }

    /**
     * 
     * @param name Invite link name; 0-32 characters
     * @return
     */
    public EditChatSubscriptionInviteLink name(String name) {
        return add("name", name);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy