ToggleBotUsernameIsActive constructor

ToggleBotUsernameIsActive(
  1. {required int bot_user_id,
  2. required String username,
  3. required bool is_active,
  4. int? extra,
  5. int? clientId}
)

Changes active state for a username of a bot. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if userTypeBot.can_be_edited == true

Returns Ok

Implementation

ToggleBotUsernameIsActive