Chat class

A liveChatMessage resource represents a chat message in a YouTube live chat. The resource can contain details about several types of messages, including a newly posted text message or fan funding event.

The live chat feature is enabled by default for live broadcasts and is available while the live event is active. (After the event ends, live chat is no longer available for that event.)

Constructors

Chat(Dio dio)

Properties

accept String
finalinherited
contentType String
finalinherited
dio → Dio
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

answerBot({required LiveBroadcastItem liveBroadcastItem, required Chatbot chatbot, TimeStore? timeStore}) Future<void>
Use a Chatbot to answer questions in the liveChat.
buildParts(List<String> partList, String part) String
inherited
delete({required String id}) Future<void>
Deletes a chat message. The API request must be authorized by the channel owner or a moderator of the live chat.
downloadHistory({required LiveBroadcastItem liveBroadcastItem, File? file, TimeStore? timeStore}) Future<void>
Download the liveChat history. If a File is specified then the data will be stored there otherwise if a TimeStore is specified, only history with a timestamp greater than that given by the TimeStore will be downloaded.
insert({required Map<String, dynamic> body, String part = 'snippet,status,contentDetails', List<String> partList = const []}) Future<LiveChatMessage>
Adds a message to a live chat.
list({required String liveChatId, String part = 'snippet,status,contentDetails', List<String> partList = const [], String? hl, int? maxResults, String? pageToken, int? profileImageSize}) Future<LiveChatMessageListResponse>
Lists live chat messages for a specific chat.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send({required String message, String? chatId, LiveBroadcastItem? liveBroadcastItem}) Future<void>
Send a message to the liveChat session.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited