I tried to use webhook instead of longpooling. Longpooling worked fine, but webhook becomes always a 401 Unauthorized errror. And in the console is listed: [error] webhook Not authorized request from Telegram
Ok thanks, i will study your link. I guess my problem is occuring because i separated the telegram app in different files using module.exports... But maybe I'm wrong.
@bitrixhater@iprxy добрый день. хотел спросить совет. прописал request_contact = true в клаве вызываемой при помощи sendMessage. на просторах нэта нашел, что при нажатии этой кнопки происходит Update.Message.Contact. как бы вы спарсили этот номер в бд? сейчас используется mongoose.