简体   繁体   中英

How to send private message in Telegram Bot using Telegraf.js Node.js

I want to create a Telegram bot that can send message directly to users with their user_id saved in my db. Is there any way to do this?

Hi @Shubham Mishra the only way that u have to send message with bot to user is if these user firstly started the bot, the your bot could send a message to user.

If u want to send message to any user u should use userbot, this is very helpfull to create one: https://github.com/LonamiWebs/Telethon

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM