It’s not a movie character, but I had read that Buddy Sorell from the Dick Van Dyke Show was based on Mel Brooks.
Morey Amsterdam, who played Buddy was a vaudeville and borscht belt comedian for many years. I think he played himself. I read that the scripts often said “buddy tells jokes for 30 seconds”