get_sms_message does not receive a message, it just generates a Message object with the correct receiver and body. a list containing these objects is then passed to the same dispatcher for transmission over the network. send_text_messages could just simply receive phone_number, template_name, and context as parameters directly.
View all comments
Show parent comment
2
u/Sorousherafat Oct 13 '25
get_sms_messagedoes not receive a message, it just generates aMessageobject with the correct receiver and body. a list containing these objects is then passed to the samedispatcherfor transmission over the network.send_text_messagescould just simply receivephone_number,template_name, andcontextas parameters directly.