setMyName

Use this method to change the bot's name. Returns True on success.

Arguments
Name Type Description Required
name string | null | array New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language. no
language_code string | null 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. no
token string | null You can use this method on another bot with specify this parameter no
forgot bool | null You can set to not receive request result, dont set it or pass null for turn it off no
answer bool | null You can set to answer to webhook, dont set it or pass null for turn it off no

Output : bool | BPT\types\responseError

Static or normal : Static

Examples :

request::setMyName(name: string | null, language_code: string | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);
request::setMyName(['name' => string | null, 'language_code' => string | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
request::setMyName();