πŸͺ™ Get_wallet

πŸͺ™ Get_wallet

Added on version 23.1.0b2
get_wallet(self) -> GetWalletRequest.GetWalletResponse | Error:
Return the bot’s wallet.

βš™οΈ Use cases

This method will return an object similar of the Get_room_users return object, with a type and amount atributtes.
async def on_chat(self, user: User, message: str) -> None: if message.startswith("wallet"): wallet = (await self.highrise.get_wallet()).content await self.highrise.chat(f"The bot wallet contains {wallet[0].amount} {wallet[0].type}")
In this example the bot send on chat a message with the amount and type of currency they have on the position [0] of the object list.
notion image

Built with Potion.so