Action with incoming Sms regarding of sender number and/or some words in text of the Sms?

There are some sms senders.
First what is necessary is to make some action with the incoming sms in case of sender’ s number, for example:

  • if sms is from sender with # +7999123456789, we set autoreply text with “You don’t have rights to send sms here” ;
  • if sms is from sender with # +888000333444, this sms is forwarded to +22664499490 without any changes;
  • if sms is from sender with # +9999966666333, this sms is forwarded to +111111 but with adding some phrases;

more over, it is necessary to analize sms text, that is:

  • if sms is from sender with # +7999123456789, and has word “type 1” (in any sms position) , it will be forwarded to +111111 without any changes;
  • if sms is from sender with # +7999123456789, and has word “type 2” (in any sms position) , it will be forwarded to +111111 with adding, for example “new type is ready” to the end (begginning) of forwarding sms;
  • if sms is from sender with # +7999123456789, and has no word “type” (in any sms position) , nothing will be done;
  • if sms is from sender with # +888000333444, not containing word “big” this sms will be denied with autoreply “Bla-bla-bla” .

Can you add such functionality ?

Hi how i did for incoming https ?