tickets

class pyZUnivers.tickets.AutoGratting(url: str)

Initializes a Ticket object.

Parameters:

url (str) – The URL of the tickets.

async gratting(ticket_type: Literal['LR', 'RO', 'ZR'] = 'LR') Result | str

Perform the gratting operation for the specified ticket type.

Parameters:

ticket_type (Literal['LR', 'RO', 'ZR'], optional) – The type of ticket to grat. Defaults to ‘LR’.

Returns:

The result of the gratting operation or an error message.

Return type:

Union[Result, str]

Raises:

None

class pyZUnivers.tickets.Result

Represents the result of a ticket scratching operation.

balance

The balance after the ticket scratching operation.

Type:

int

inventories

The list of inventory objects.

Type:

List[InventoryObject]

loreDust

The amount of lore dust.

Type:

int

loreFragment

The amount of lore fragments.

Type:

int

The list of lucky links.

Type:

List[str]

userBanner

Indicates if the user has a banner.

Type:

bool

nbrTicketScratched

The number of tickets scratched.

Type:

int