Class: PastParticipants
Defined in: WAProto/index.d.ts:35314
Represents a PastParticipants.
Implements
Constructors
new PastParticipants()
new PastParticipants(
properties
?):PastParticipants
Defined in: WAProto/index.d.ts:35320
Constructs a new PastParticipants.
Parameters
properties?
Properties to set
Returns
Properties
groupJid?
optional
groupJid:null
|string
Defined in: WAProto/index.d.ts:35323
PastParticipants groupJid.
Implementation of
pastParticipants
pastParticipants:
IPastParticipant
[]
Defined in: WAProto/index.d.ts:35326
PastParticipants pastParticipants.
Implementation of
IPastParticipants
.pastParticipants
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:35396
Converts this PastParticipants to JSON.
Returns
object
JSON object
create()
static
create(properties
?):PastParticipants
Defined in: WAProto/index.d.ts:35333
Creates a new PastParticipants instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PastParticipants instance
decode()
static
decode(reader
,length
?):PastParticipants
Defined in: WAProto/index.d.ts:35359
Decodes a PastParticipants message from the specified reader or buffer.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
length?
number
Message length if known beforehand
Returns
PastParticipants
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):PastParticipants
Defined in: WAProto/index.d.ts:35368
Decodes a PastParticipants message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
PastParticipants
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
static
encode(message
,writer
?):Writer
Defined in: WAProto/index.d.ts:35341
Encodes the specified PastParticipants message. Does not implicitly verify messages.
Parameters
message
PastParticipants message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
static
encodeDelimited(message
,writer
?):Writer
Defined in: WAProto/index.d.ts:35349
Encodes the specified PastParticipants message, length delimited. Does not implicitly verify messages.
Parameters
message
PastParticipants message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):PastParticipants
Defined in: WAProto/index.d.ts:35382
Creates a PastParticipants message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
PastParticipants
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:35403
Gets the default type url for PastParticipants
Parameters
typeUrlPrefix?
string
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
string
The default type url
toObject()
static
toObject(message
,options
?):object
Defined in: WAProto/index.d.ts:35390
Creates a plain object from a PastParticipants message. Also converts values to other types if specified.
Parameters
message
PastParticipants
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:35375
Verifies a PastParticipants message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not