Error running rasa "TypeError: Object of type Message is not JSON serializable"

hi! thank you so much for replying. i didnt know the rasa updates had these changes. altho, i changed the syntax and it still didnt work.

im actually using a custom channel. i tried running my code with the default telegram channel of rasa and it worked! so i figured the problem was with my custom channel. i made a new topic here in the forum in case, since it seems a different topic. here is the link: Custom channel not working

thank u so much!