You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: message_bird.rb
    path of file: ./repos/openproject/modules/two_factor_authentication/lib/open_project/two_factor_authentication/token_strategy
    
    the code of the file until where you have to start completion: require 'messagebird'

module OpenProject::TwoFactorAuthentication
  module TokenStrategy
    class MessageBird < Base
      def self.validate!
       
    
      def send_sms
        Rails.logger.info { "[2FA] MessageBird delivery sending SMS request for #{user.login}" }
        params = build_user_params

        # Validity 720 = 15 minutes of login token validity - 3 minutes buffer
        response = message_bird_client.message_create originator,
                                                      params[:recipients],
                                                      params[:message],
                                                      validity: 720

        raise "Failed to deliver SMS" if response.recipients['totalDeliveryFailedCount'] > 0
      rescue StandardError => e
        Rails.logger.error("[2FA] MessageBird SMS delivery failed for user #{user.login}. Error: #{e} #{e.message}")
        raise I18n.t('two_factor_authentication.message_bird.sms_delivery_failed')
      end