package tdjson

import (
	

	
)

// UnexpectedIDError means that unknown or unexpected type id was decoded.
type UnexpectedIDError struct {
	ID string
}

func ( *UnexpectedIDError) () string {
	return fmt.Sprintf("unexpected id %s", .ID)
}

// NewUnexpectedID return new UnexpectedIDError.
func ( string) error {
	return &UnexpectedIDError{ID: }
}

// ErrTypeIDNotFound means that @type field is expected, but not found.
var ErrTypeIDNotFound = errors.New("@type field is expected, but not found")