yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.12k stars 1.49k forks source link

Business Mode #1192

Closed Dani-l4 closed 1 month ago

Dani-l4 commented 2 months ago

Question

Since 31 March, 2024 Telegram has feature that bots can be connected to private messages and they can manage communicating with clients. How can I reach that with node-telegram-bot-api? I've tried different ways but bot not even received the message.

bot.on('message') || bot.on('business_message') || bot.onText('') - not working via private messages when bot connected to business account.

Reference: https://telegram.org/blog/telegram-business?ln=r#chatbots-for-business

danielperez9430 commented 2 months ago

Will be added in the next release. If I have some time this week I will do the update of the library for support it

vyacheslavslava commented 2 months ago

Hello, @danielperez9430.

We are eagerly anticipating this update and would greatly appreciate it if you could make it happen at your earliest convenience.

Thank you!

danielperez9430 commented 2 months ago

I do it today @vyacheslavslava , so is merge (not release in npm yet).

PainfulParse commented 1 month ago

Any updates on when this will be part of the next NPM release?

abdoo9 commented 1 month ago

I do it today @vyacheslavslava , so is merge (not release in npm yet).

when it will be released !?

danielperez9430 commented 1 month ago

Its now release in npm