samlira1705
samlira17057mo ago

Telegram-bot: Cannot read properties of undefined (reading 'length')

Hi everyone, I am new to Buildship I tried to call OpenAI AI Assistant in Telegram by following this youtube tutorial from buildship : https://www.youtube.com/watch?v=Pz1t1KCnrbs&t=578s I have shipped this workflow successfully. However, when sending message in the Telegram bot, nothing happened, found the following error message in my workflows logs in buildship: Telegram-bot : Cannot read properties of undefined (reading 'length') Attached is the screenshot of my workflows and logs error messages I tried to execute the openai node and it worked well, so I guess the issue is in the telegram bot. Please advise, thanks a lot
BuildShip
YouTube
AI Assistant on Telegram - No Code OpenAI Assistant Builder
Learn how create an Intelligent Telegram Bot with OpenAI Assistant and BuildShip without coding. But with full power to flexibly extend with low-code. BuildShip is a Visual Backend and AI Workflow Builder Get started for free 👉 https://buildship.com?ref=telegramasssitant This video tutorial demonstrates how to create an intelligent Telegram bo...
Solution:
Hi @samlira1705 The error cannot read the properties of undefined reading length shows that the connection is not successfully set up for the Telegram bot, to debug this you can perform a quick test. In a new workflow, you can add the Telegram Bot Trigger and add a return node and in the value return the full object received by Trigger, and then try sending a message to the Bot and confirm if the object is reading the message text in it. You can confirm it by checking the logs - https://docs.b...
Jump to solution
3 Replies
samlira1705
samlira1705OP7mo ago
No description
samlira1705
samlira1705OP7mo ago
No description
Solution
Gaurav Chadha
Gaurav Chadha7mo ago
Hi @samlira1705 The error cannot read the properties of undefined reading length shows that the connection is not successfully set up for the Telegram bot, to debug this you can perform a quick test. In a new workflow, you can add the Telegram Bot Trigger and add a return node and in the value return the full object received by Trigger, and then try sending a message to the Bot and confirm if the object is reading the message text in it. You can confirm it by checking the logs - https://docs.buildship.com/logging.

Did you find this page helpful?