bot on new_chat_members msg const chat id msg if id 12312312312 bot se

1
2
3
4
5
6
7
8
9
bot.on('new_chat_members', msg => {
const { chat: { id }} = msg
if (id == "12312312312")
bot.sendMessage(12312312312, "Текст")
else if (id == "451251252151")
bot.sendMessage(451251252151, "Текст2")
else
bot.sendSticker(id, "CAADAgADvgIAAu7SMQ52xU1odJRZDhYE")
})