windkh / node-red-contrib-telegrambot

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

send msg to bot, not group chat #202

Closed bdydrp closed 3 years ago

bdydrp commented 3 years ago

Is it possible to send messages directly to my bot??

In the config node, i have set the bot name and access token and left usernames/chatID's blank. But reading other help files, ChatID must be set in the message property

Thanks

windkh commented 3 years ago

See readme https://github.com/windkh/node-red-contrib-telegrambot#sending-messages-to-a-specified-chat

bdydrp commented 3 years ago

Unless i'm missing something/not understanding, a bot does not have a chat ID!

With your example, you still need a chat id!

windkh commented 3 years ago

You communicate with a bot either in a one-to-one chat or using groups or channels where the bot is just a member just like any user. The bot receives all messages from a chat …. But whenever the bot needs to send a message to somebody else you need to specify a chatId.

bdydrp commented 3 years ago

OK - So there lies my confusion as i just wish to communicate 1 to 1 with the bot - It will only ever receive messages...and therefore i thought it does not have a chatId!!

I have just created a group anyway for my notifications from NR and added my bot.

Thanks