Get Started - Learn How To Make Your Bot!GuidesCode SnippetsGet methodsPost methodsWeb APIUseful linksList of all currently Free ItemsList of EmotesHighrise Bot SDK Changelog
ย
Added on version 23.1.0b14
buy_voice_time(self, payment: Literal["bot_wallet_only", "bot_wallet_priority", "user_wallet_only"] = "bot_wallet_only",) -> Literal["success", "insufficient_funds", "only_token_bought"] | Error: """Buy voice time."""
Buys a voice time for a room.
Supports several payment optionsย
bot_wallet_only
,ย bot_wallet_priority
,ย user_wallet_only
ย allowing bot to use its own wallet or user's wallet to pay for the purchase. Or to try to prioritize bot's wallet over user's wallet.โ๏ธ Use cases
Hereโs a simple example
if message.lower().startswith("/buyvoice"): response = await self.highrise.buy_voice_time(payment=Literal["bot_wallet_only"]) print (response)