He told a funny joke.
An anegdot is an anecdote, which is not a joke, so bad translation. A joke is a šala.