Get Started - Learn How To Make Your Bot!
List of all currently Free Items
Added on version 23.1.0b14
buy_room_boost(self, payment: Literal["bot_wallet_only", "bot_wallet_priority", "user_wallet_only"] = "bot_wallet_only", amount: int = 1,) -> Literal["success", "insufficient_funds", "only_token_bought"] | Error: """Buy room boost."""
Buys a room boost 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.
Here’s a simple example
async def on_chat(self, user: User, message: str) -> None:
if message.lower().startswith("/buyboost"):
response = await self.highrise.buy_room_boost(payment=Literal["bot_wallet_only"], amount=1)
print (response)