Skip to content
Advertisement

I create the first bot and a warning comes out / local variable chat_id value is not used

JavaScript

#local variable “chat_id” value is not used #local variable “text” value is not used

Advertisement

Answer

You should fix your function to be as such:

JavaScript

Placing the send_message and print inside the get_message in order to make use of the chat_id and text

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement