- Run the application
docker-compose build
docker-compose up
- Open the bot in Telegram app @altaxibot
- Create js module for the new skill in
./skills
directory
./skills/helloWorldSkill.js
function hello_world() {
return Promise.resolve({
parse_mode: 'HTML',
text: `<strong>Hello World</strong>`
});
}
module.exports = hello_world;
- Update
./skills/index.js
...
const helloWorld = require('./helloWorldSkill')
module.exports = [
...
{ command: 'hello_world', description: 'Say hi to the world', skill: helloWorld }
];
- Restart the app
Please use orderTaxiSkill as an example ๐คฏ