Express + Telegram + NodeJS
###How to run?
- Run server:
node src/server/index.js
- Update SERVER_URL in .env (using ngrok)
- Set/unset webhook mode using
node src/index.js
- Send message to your telegram bot, and check server's logs:
listen port 3000
POST request was received {
update_id: 63271024,
message: {
message_id: 1140,
from: {
id: 421517371,
is_bot: false,
first_name: 'Gybber',
username: 'Gybber',
language_code: 'en'
},
chat: {
id: 421517371,
first_name: 'Gybber',
username: 'Gybber',
type: 'private'
},
date: 1660491753,
text: 'asd'
}
}