You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tl_decrypted_message_action_gen.go
    path of file: ./repos/td/tg/e2e
    
    the code of the file until where you have to start completion: // Code generated by gotdgen, DO NOT EDIT.

package e2e

import (
	"context"
	"errors"
	"fmt"
	"sort"
	"strings"

	"go.uber.org/multierr"

	"github.com/gotd/td/bin"
	"github.c
    
func (d *DecryptedMessageActionAcceptKey) EncodeBare(b *bin.Buffer) error {
	if d == nil {
		return fmt.Errorf("can't encode decryptedMessageActionAcceptKey#6fe1735b as nil")
	}
	b.PutLong(d.ExchangeID)
	b.PutBytes(d.GB)
	b.PutLong(d.KeyFingerprint)
	return nil
}