func (p *BulkDeleteMessagesParams) AddMessage(msg *Message) (err error) {
	p.m.Lock()
	defer p.m.Unlock()

	err = p.tooMany(len(p.Messages) + 1)
	if err != nil {
		return
	}

	// TODO: check for duplicates as those are counted only once

	p.Messages = append(p.Messages, msg.ID)
	return
}
// AddMessage Adds a message to be deleted
AddMessage Adds a message to be deleted
// AddMessage Adds a message to be deleted
func (p *BulkDeleteMessagesParams) AddMessage(msg *Message) (err error) {
	p.m.Lock()
	defer p.m.Unlock()
	err = p.tooMany(len(p.Messages) + 1)
	if err != nil {
		return
	}
	p.Messages = append(p.Messages, msg.ID)
	return
}
func ( p * BulkDeleteMessagesParams ) AddMessage ( msg * Message ) ( err error ) { p . m . Lock ( ) defer p . m . Unlock ( ) err = p . tooMany ( len ( p . Messages ) + 1 ) if err != nil { return } p . Messages = append ( p . Messages , msg . ID ) return }
AddMessage Adds a message to be deleted
AddMessage Adds a message to be deleted
// TODO: check for duplicates as those are counted only once