Joke
Represents a Joke returned in get_joke() method.
Attributes
category
categoryThe category of the joke.
Type: str
type
typeThe type of joke. Can either be single or twopart.
Type: str
joke
jokeThe actual joke. This can be dict or str depending on what the type of joke is. If the type if single this will be str otherwise this will be dict having two values, setup and delivery. Read Jokes 101 page to see how joke object works.
flags
flagsThe flags a joke has. These are useful to filter the jokes.
Type: JokeFlags
id
idThe joke's unique ID.
Type: int
safe
safeDetermines if the joke is marked safe or not.
Type: bool
lang
langThe language of the joke. Mostly it is en
Type: str
language
languageAn alias for lang attribute
Type: dict
Last updated
Was this helpful?