Error in getting user's name

(Yun) #1

Getting an “undefined” alongside with my user’s name.

So I executed some code that I found on the Flow XO’s medium article: https://medium.com/flowxo/use-bots-to-make-revision-fun-daa4e8288dd1#.jjmonzdik

And the result:

“Hi Y, what would you like to buy today?”

Is there something wrong with my code? By the way, this is a bot on Telegram.

(Kellsey Shaw) #2

Hi Yun,

Can you send me a screenshot of the Code settings and the send message settings? You can send them to support@flowxo.com if you prefer

(Yun) #3

Hi Kellsey,

(Kellsey Shaw) #4

Hi Yun,

Could we see the bot > Send a Message setting as well? The code there looks fine.

(Yun) #5

Hi Kellsey,

Here you go:

(Kellsey Shaw) #6

Hi Yun,

I can’t see that there is anything wrong with your code or message settings :thinking:

What do your logs show for the input/output of the code service? Perhaps there is something wrong with the input that we are working with :confused:

(Yun) #7

Hi Kellsey,

Logs are perfectly fine. All actions are completed successfully.

But there’s still a “undefined” text showing up behind my Telegram username.

(Kellsey Shaw) #8

Hi Yun,

Can you share your flow with me at support@flowxo.com so that I can test it for you with our Telegram bot and users so that we can see if we see the error or if it’s specific to the user?