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

com.pengrad.telegrambot.request.SetMyShortDescription 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;

public class SetMyShortDescription extends BaseRequest {

    public SetMyShortDescription() {
        super(BaseResponse.class);
    }
    
    /**
     * 
     * @param shortDescription New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated short description for the given language.
     * @return
     */
    public SetMyShortDescription description(String shortDescription) {
        add("short_description", shortDescription);
        return this;
    }

    /**
     * 
     * @param languageCode A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whose language there is no dedicated description.
     * @return
     */
    public SetMyShortDescription languageCode(String languageCode) {
        add("language_code", languageCode);
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy