windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
262 stars 116 forks source link

Array for message content #184

Closed moshed closed 3 years ago

moshed commented 3 years ago

In the same vein that its possible to use an array for chatId to send one message to multiple chats would it be possible to use an array for content to send multiple messages to one chat?

I know its possible to set the output amount of the function node to 2 and just make 2 payloads but that sees a little overcomplicated.

Thanks!

windkh commented 3 years ago

Should that work for only text messages or all types like photos videos audio…?

windkh commented 3 years ago

Btw: you can alreafy send many messages from one function node using one output using as far as I know node.send(msg)

moshed commented 3 years ago

Didnt know about node.send(). Thanks! will check it out.

I would think it should work for all forms of sendable messages including videos and phots etc., however there already is a media group function (which if I understand correctly sends multiple forms of media) but it might still be useful to be able to send multiple phots etc. in succession without joining them as a group.