コード例 #1
0
        private async Task <IActionResult> GetContact()
        {
            int Help_followerId = Argumetns[0]; // id пользователя которой создал заявку
            var follower        = FollowerFunction.GetFollower(Help_followerId);

            if (follower != null && follower.Telephone != null && follower.Telephone != "")
            {
                Contact contact = new Contact
                {
                    FirstName   = follower.FirstName,
                    PhoneNumber = follower.Telephone
                };

                await SendContact(contact);
            }

            if (follower != null && follower.UserName != null && follower.UserName != "")
            {
                await SendUrl(BotMessage.HrefUrl("https://t.me/" + follower.UserName, follower.UserName));

                return(OkResult);
            }

            else
            {
                return(base.OkResult);
            }
        }