Exemplo n.º 1
0
        public virtual string SendMessage(string phone, string text)
        {
            if (phone.StartsWith("+375"))
            {
                return(SentAssistent(phone, text));
            }
            var sms = new SmsSender("fotobrif", "57e68e239ff28");
            var str = sms.MessageSend("fotobrif.ru", phone, text);

            return(str);
        }
Exemplo n.º 2
0
        public async Task <string> SendMessageAsync(string phone, string text)
        {
            if (phone.StartsWith("+375"))
            {
                return(await SentAssistentAsync(phone, text));
            }

            var sms = new SmsSender("fotobrif", "57e68e239ff28");

            return(sms.MessageSend("fotobrif.ru", phone, text));
        }