method ApiMethods.setBusinessAccountUsername
ApiMethods.setBusinessAccountUsername(args: { business_connection_id: string; username?: string; }): true

Changes the username of a managed business account. Requires the can_change_username business bot right. Returns True on success.

Parameters

args: { business_connection_id: string; username?: string; }

Return Type

true

Usage

import { type ApiMethods } from "types";