title: Vb.NET - Telegram bot: define custom port
body: <p>I am using this api inside my .Net app in order to be able to send data to a telegram group.</p>
  <p><a href="https://github.com/TelegramBots/Telegram.Bot" rel="nofollow noreferrer">https://github.com/TelegramBots/Telegram.Bot</a></p>
  <p>The app is written and works as expected, except that on the production machine it gets blocked due to the firewal port being closed. I do not have any access to the firewall and was not able to find what ports it uses and neither a way to change the ports to the ones that are known to be open.</p>
  <p>this is the code i am using to send:</p>
  <pre><code>Dim botclient As New TelegramBotClient(&quot;XXXXX:YYYYYY&quot;)
  
  Using ms As MemoryStream = New MemoryStream()
      Using finalImage As Bitmap = New Bitmap(myimage)
          finalImage.Save(ms, ImageFormat.Png)
          ms.Position = 0
          Await botclient.SendPhotoAsync(chatId:=-SOMECODE, photo:=ms)
      End Using
  End Using
  </code></pre>
  <p>Is there a way to define what port my telegram bot should use to connect to the telegram cloud?</p>