windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
264 stars 117 forks source link

How to receive "from_user" in the payload of the receiver node #231

Closed borelg closed 2 years ago

borelg commented 2 years ago

Hello,

is there any way to retrieve the name of the user who has sent the message and then received from the "Receiver node"? In the payload I receive only the following element: chatId: messageId: type: "" content: "" date:

I have understood that the field "from_user" might be the one.

Thanks in advance!

windkh commented 2 years ago

image

windkh commented 2 years ago

sorry I forgot to mention that this can be found in originalMessage.from.first_name and so on.

borelg commented 2 years ago

Hi windkh,

thanks for the very quick reply. However, I receive only the payload from the "Receiver node".

image

windkh commented 2 years ago

Then configure the debug node so that it shows the complete message object and not only payload

borelg commented 2 years ago

.... yes, you are right. Thanks :)