I want to integrate Telegram with the Scratch AI program, but I'm encountering an error.

This is the code I’m using https://makecode.microbit.org/_7RshabY03c19
Can you please help me identify the error?