Healthtools.API currently can only process text messages using twilio and mtech API.
This PR therefore introduces:
bot/process_bot_query function
bot/messenger_bot.py and
views/bot.py
process_bot_query can be used by any bot to do a query search and return a response to the bot.
views/bot.py currently uses messenger as default adapter and can be refactored when other bots are added
Healthtools.API currently can only process text messages using twilio and mtech API.
This PR therefore introduces:
bot/process_bot_query
functionbot/messenger_bot.py
andviews/bot.py
process_bot_query
can be used by any bot to do a query search and return a response to the bot.views/bot.py
currently usesmessenger
as default adapter and can be refactored when other bots are addedThis task involved:
process_bot_query
that will callrun_query
functionRelevant Github issue: https://github.com/CodeForAfricaLabs/HealthTools.API/issues/50 and https://github.com/CodeForAfricaLabs/HealthTools.API/issues/47