filterFloors
filterFloors()
async def filterFloors(gift_name: str, authData: str) -> Filters
Retrieve all floors and names (models, backdrops, symbols etc.) for specified gift_name
Returns
Filters
object
Raises
authDataError
- ifauthData
is not providedfloorsError
- ifgift_name
is not providedrequestError
- if request fails
Parameters
authData
(str) - authentication data required for the api requestgift_name
(str) - name of the gift to get floors for
Filters object
Methods:
.toDict()
: Converts theGiftsFloors
object back to a dictionary format..model(name)
: Get floor for specified gift model.backdrop(name)
: Get floor for specified gift backdrop.symbol(name)
: Get floor for specified gift symbol
Attributes:
.backdrops
- Get all backdrops and their floors of the specified gift (dict).models
- Get all models and their floors of the specified gift (dict).symbols
- Get all symbols and their floors of the specified gift (dict)
Example
from aportalsmp.gifts import filterFloors
from aportalsmp.auth import update_auth
import asyncio
auth = asyncio.run(update_auth(api_id=123, api_hash="..."))
async def main():
floors = await filterFloors(authData=auth, gift_name="Plush Pepe")
print(floors.model("midas pepe"))
# output: 33000.0
See used functions: update_auth
Last updated