// package: wechaty.puppet // file: wechaty/puppet/chat-history.proto import * as jspb from "google-protobuf"; import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb"; import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-program_pb"; import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb"; import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb"; import * as wechaty_puppet_channel_card_pb from "../../wechaty/puppet/channel-card_pb"; export class ChatHistoryContent extends jspb.Message { getType(): ChatHistoryContentTypeMap[keyof ChatHistoryContentTypeMap]; setType(value: ChatHistoryContentTypeMap[keyof ChatHistoryContentTypeMap]): void; getText(): string; setText(value: string): void; getFileBox(): string; setFileBox(value: string): void; hasLocation(): boolean; clearLocation(): void; getLocation(): wechaty_puppet_location_pb.LocationPayload | undefined; setLocation(value?: wechaty_puppet_location_pb.LocationPayload): void; hasUrlLink(): boolean; clearUrlLink(): void; getUrlLink(): wechaty_puppet_url_link_pb.UrlLinkPayload | undefined; setUrlLink(value?: wechaty_puppet_url_link_pb.UrlLinkPayload): void; hasMiniProgram(): boolean; clearMiniProgram(): void; getMiniProgram(): wechaty_puppet_mini_program_pb.MiniProgramPayload | undefined; setMiniProgram(value?: wechaty_puppet_mini_program_pb.MiniProgramPayload): void; hasChannel(): boolean; clearChannel(): void; getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined; setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void; clearChatHistoryList(): void; getChatHistoryList(): Array; setChatHistoryList(value: Array): void; addChatHistory(value?: ChatHistoryPayload, index?: number): ChatHistoryPayload; hasChannelCard(): boolean; clearChannelCard(): void; getChannelCard(): wechaty_puppet_channel_card_pb.ChannelCardPayload | undefined; setChannelCard(value?: wechaty_puppet_channel_card_pb.ChannelCardPayload): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ChatHistoryContent.AsObject; static toObject(includeInstance: boolean, msg: ChatHistoryContent): ChatHistoryContent.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: ChatHistoryContent, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): ChatHistoryContent; static deserializeBinaryFromReader(message: ChatHistoryContent, reader: jspb.BinaryReader): ChatHistoryContent; } export namespace ChatHistoryContent { export type AsObject = { type: ChatHistoryContentTypeMap[keyof ChatHistoryContentTypeMap], text: string, fileBox: string, location?: wechaty_puppet_location_pb.LocationPayload.AsObject, urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject, miniProgram?: wechaty_puppet_mini_program_pb.MiniProgramPayload.AsObject, channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject, chatHistoryList: Array, channelCard?: wechaty_puppet_channel_card_pb.ChannelCardPayload.AsObject, } } export class ChatHistoryPayload extends jspb.Message { getType(): number; setType(value: number): void; getAvatar(): string; setAvatar(value: string): void; getSenderName(): string; setSenderName(value: string): void; getCorpName(): string; setCorpName(value: string): void; getTime(): number; setTime(value: number): void; getTitle(): string; setTitle(value: string): void; hasMessage(): boolean; clearMessage(): void; getMessage(): ChatHistoryContent | undefined; setMessage(value?: ChatHistoryContent): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ChatHistoryPayload.AsObject; static toObject(includeInstance: boolean, msg: ChatHistoryPayload): ChatHistoryPayload.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: ChatHistoryPayload, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): ChatHistoryPayload; static deserializeBinaryFromReader(message: ChatHistoryPayload, reader: jspb.BinaryReader): ChatHistoryPayload; } export namespace ChatHistoryPayload { export type AsObject = { type: number, avatar: string, senderName: string, corpName: string, time: number, title: string, message?: ChatHistoryContent.AsObject, } } export interface ChatHistoryContentTypeMap { TEXT: 0; FILE: 1; LOCATION: 2; URL: 3; MINI_PROGRAM: 4; CHANNEL: 5; CHAT_HISTORY: 6; CHANNEL_CARD: 7; } export const ChatHistoryContentType: ChatHistoryContentTypeMap;