BuildShipBBuildShip
Powered by
samlira1705S
BuildShip•2y ago•
5 replies
samlira1705

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
YouTubeBuildShip
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...
AI Assistant on Telegram - No Code OpenAI Assistant Builder
Solution
Hi @samlira1705 The error
cannot read the properties of undefined reading length
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.
Jump to solution
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Flow error: Cannot read properties of undefined (reading 'length')
ZorroZZorro / ❓・buildship-help
13mo ago
Cannot read properties of undefined (reading 'body')
MattMMatt / ❓・buildship-help
14mo ago
Cannot read properties of undefined (reading 'uid')
AvatarPsyAAvatarPsy / ❓・buildship-help
2y ago
Ai Seo Audit: Cannot read properties of undefined (reading '0')
NewbieSteveNNewbieSteve / ❓・buildship-help
10mo ago