The bot context table type serves as the base type for any of the global bot contexts (satori & koishi).
The getAuthToken field contains a function that allows you to get the current auth info table for this bot.
getAuthToken(): (auth: table)
This function takes no arguments.
The getMaxMessageLength field contains a function that returns the maximum number of characters a message may contain.
This value will only be initialised once the bot has connected to the server, before that it is set to the same value as math.maxinteger
.
getMaxMessageLength(): (length: integer)
This function takes no arguments.
The sendMessage field contains a function that send a message on behalf of the bot.
sendMessage(text: string): ()
This function does not return any values.