InstructionUnion

May 20, 2026 ยท View on GitHub

Properties

NameTypeDescriptionNotes
entriesList[TimelineAddEntry]
typeInstructionType
module_entry_idstr
module_itemsList[ModuleItem]
prependbool[optional]
entryTimelineAddEntry
entry_id_to_replacestr
alert_typestr[optional]
client_event_infoClientEventInfo
color_configDict[str, object][optional]
display_duration_msint[optional]
display_locationstr[optional]
icon_display_infoDict[str, object][optional]
rich_textTimelineShowAlertRichText
trigger_delay_msint[optional]
users_resultsList[UserResults]
directionstr
coverTimelineHalfCover
sort_indexstr[optional]

Example

from twitter_openapi_python_generated.models.instruction_union import InstructionUnion

# TODO update the JSON string below
json = "{}"
# create an instance of InstructionUnion from a JSON string
instruction_union_instance = InstructionUnion.from_json(json)
# print the JSON string representation of the object
print(InstructionUnion.to_json())

# convert the object into a dict
instruction_union_dict = instruction_union_instance.to_dict()
# create an instance of InstructionUnion from a dict
instruction_union_from_dict = InstructionUnion.from_dict(instruction_union_dict)

[Back to Model list] [Back to API list] [Back to README]