From and to do not need to be phone numbers

Stephen Paul Weber created

Might be short codes for example

Change summary

lib/message_event.rb | 4 ----
1 file changed, 4 deletions(-)

Detailed changes

lib/message_event.rb 🔗

@@ -49,11 +49,7 @@ module MessageEvent
 
 	class Message < Base
 		def initialize(to:, from:, body:, media_urls: [], **kwargs)
-			raise ArgumentError, "from must be a valid US telephone number" unless ValidTel === from
 			raise ArgumentError, "to must be an array" unless to.is_a?(Array)
-			to.each do |tel|
-				raise ArgumentError, "each to must be a valid US telephone number" unless ValidTel === tel
-			end
 			raise ArgumentError, "body must be a String" unless body.is_a?(String)
 			raise ArgumentError, "media_urls must be an Array" unless media_urls.is_a?(Array)