createBot

abstract suspend fun createBot(input: CreateBotRequest): CreateBotResponse

Creates a new bot in a specified Wickr network. Bots are automated accounts that can send and receive messages, enabling integration with external systems and automation of tasks.

Samples


fun main() { 
   //sampleStart 
   // Create bot successfully
val resp = wickrClient.createBot {
    networkId = "12345678"
    username = "analytics_bot"
    displayName = "Analytics Bot"
    challenge = "SecureP@ssw0rd123"
    groupId = "analytics_group"
} 
   //sampleEnd
}