title: Bot Framework c# without Azure Connection to Telegram
body: <p>I am Testing the deployment of MS Bot framework application without azure on my own host</p>
  
  <p><b>the concept is:</b></p>
  
  <ol>
  <li>the bot is a mvc webapp and can be deployed anywhere</li>
  <li>our host has an SSL certificate and a vaild endpoint(<a href="https://example.com/api/messages" rel="nofollow noreferrer">https://example.com/api/messages</a>)</li>
  </ol>
  
  <p>My issue is with the Activity Connector as its'nt accepting api calls form telegram as follows:</p>
  
  <pre><code>   public async Task&lt;HttpResponseMessage&gt; Post([FromBody]Activity activity)&lt;---
      {
          if (activity.GetActivityType() == ActivityTypes.Message)
          {
              await Conversation.SendAsync(activity, () =&gt; new Dialogs.RootDialog());
          }
          else
          {
              HandleSystemMessage(activity);
          }
          var response = Request.CreateResponse(HttpStatusCode.OK);
          return response;
      }
  </code></pre>
  
  <ul>
  <li>the <strong>activity</strong> is always null on API call from telegram</li>
  <li><p>here is the webhook i am using:</p>
  
  <p><a href="https://api.telegram.org/bot123456789:ABC../setWebhook?url=https://example.com/api/messages" rel="nofollow noreferrer">https://api.telegram.org/bot123456789:ABC../setWebhook?url=https://example.com/api/messages</a></p></li>
  <li><p>what am i doing wrong here?</p></li>
  </ul>