com.pengrad.telegrambot.request.SetMyName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot.request;
import com.pengrad.telegrambot.response.BaseResponse;
public class SetMyName extends BaseRequest {
public SetMyName() {
super(BaseResponse.class);
}
/**
*
* @param name New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language.
*/
public SetMyName name(String name) {
add("name", name);
return this;
}
/**
*
* @param languageCode A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name.
*/
public SetMyName languageCode(String languageCode) {
add("language_code", languageCode);
return this;
}
}