title: How to use Telegram bot api to send messages after blocking?
body: <p>I'm create a telegram bot with <a href="https://github.com/php-telegram-bot/core/" rel="nofollow noreferrer">https://github.com/php-telegram-bot/core/</a>. Bot is located in Russia. In some reason, Russian authority block some Telegram features and my bot can't send messages to registered users. To avoid it, I'm trying to use proxy as </p>
  
  <pre><code>$telegram = new Longman\TelegramBot\Telegram('API-key', 'Bot-name');
  
  $data = [
  
      'chat_id' =&gt; 12345678,
      'text' =&gt; 'Test message',
  ];
  
  Longman\TelegramBot\Request::setClient(new \GuzzleHttp\Client([
  
      'base_uri' =&gt; 'https://api.telegram.org',
      'proxy'    =&gt; 'socks5://218.248.73.193:1080',
      'verify'   =&gt; false,
  ]));
  
  $result = Longman\TelegramBot\Request::sendMessage($data);
  </code></pre>
  
  <p>but it return <code>Telegram returned an invalid response! Please review your bot name and API key.</code></p>
  
  <p>How to avoid this problem? Thanks in advance!</p>