func github.com/gotd/td/tgerr.As

4 uses

	github.com/gotd/td/tgerr (current package)
		error.go#L131: func As(err error) (rpcErr *Error, ok bool) {
		error.go#L140: 	if rpcErr, ok := As(err); ok {
		error.go#L148: 	if rpcErr, ok := As(err); ok {

	github.com/gotd/td/telegram
		invoke.go#L57: 		if rpcErr, ok := tgerr.As(err); ok && strings.HasSuffix(rpcErr.Type, "_MIGRATE") {