- Send SMS message using "Twilio"
- Using decorator
- Wrap function with decorator
@Textfy()
- Wrapped function needs to return a dictionary which contains message body to send
- When using decorator, it will also sends the execution time of the function
- Using function
- Call
send_msg()
function send_msg()
function receives message to send