ndz
23 August 2021 03:38
1
Hello guys, can someone tell me whats wrong with this switch I am using to create a telegram chatbot?
I would send you the nodes but i cant expose my telegram bot token so i will send some prints instead
this is my flow, the problem is the bot just stops before it enters in the "submenu-1" node, like my switch its not working at all
that its mine switch node and im using "== 1", witch is the value of my payload.content at the moment
Idk if im doing something stupid or its a bug, so if anyone could help i woul appreciate
ps: sorry for my bad english
ndz:
im using "== 1",
But you have == string selected. Are you sure your content is not a number? (although it looks like a string with the "1")
ndz
23 August 2021 03:49
3
i try to use number but nothing changes, and im pretty sure that its a string
Toss in some debug
nodes to see what is happening
ndz
23 August 2021 03:52
5
thats what the debug returns
I set up a simple test... you need to use == "1"
, == "2"
, etc... for an incoming string
ndz
23 August 2021 04:03
7
like this?
i tried, it does not work
ndz
23 August 2021 04:10
9
i think its entering in the switch option because I got a return in the debug node, but it doesn't activate my "submenu-1" node idk why...
Gunner
23 August 2021 04:12
10
Put a debug after the submenu... you can also set the debug to output complete message object to see everything that is happening. You are doing that
Gunner
23 August 2021 04:20
11
Will a "1"
activate it? (I think that is what the switch is passing on), or does it expect a 1
ndz
23 August 2021 04:22
12
I did it!! thanks for the help, it was missing another "telegram sender" to work, but now its ok
1 Like
Gunner
25 August 2021 19:46
15
Just cuz it looks like a duck and waddles like a duck doesn't mean it isn't that darn goose incognito... so shoot it anyhow (and just like someone put in a water pistol for gun emoticon, they forgot the goose )
1 Like
system
Closed
24 October 2021 19:47
16
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.