Closed Nmerey closed 4 years ago
Does curl https://api.telegram.org/
work from that server?
Yes, I have set it manually and it is connected to my local server but it does not respont in telegram bot.
[ActiveJob] Enqueued Telegram::Bot::Client::AsyncJob (Job ID: 2f8edbff-25c1-42f9-add1-abe8511c5e62) to Async(default) with arguments: "default", "sendMessage", {:text=>"You wrote: something", :chat_id=>231273192}
Responded with message
Completed in 1ms (ActiveRecord: 0.0ms)
MacBook-Air-Merey% rails c
Running via Spring preloader in process 70700
Loading development environment (Rails 5.0.6)
[1] telegram_bot_app » Telegram.bot.get_webhook_info
Enqueued Telegram::Bot::Client::AsyncJob (Job ID: 714ad79a-1733-4294-9a99-49f19a5169a1) to Async(default) with arguments: "default", "getWebhookInfo", {}
Performing Telegram::Bot::Client::AsyncJob from Async(default) with arguments: "default", "getWebhookInfo", {}
=> #<Telegram::Bot::Client::AsyncJob:0x00007f86d8d895a8 @arguments=["default", "getWebhookInfo", {}], @job_id="714ad79a-1733-4294-9a99-49f19a5169a1", @queue_name="default", @priority=nil, @provider_job_id="0f191a41-20b7-4b30-a686-0676ee83104e">
Does
curl https://api.telegram.org/
work from that server?
Yeah sorry for not checking earlier! It is actually because I use vpn on browser to manually connect and on terminal it does not load.
How do I bypass that?
Thanks for suggestion! otherwise I would have spent so much time on it!
I have updated my secrets.yml and uncommented
routes.default_url_options = {host: 'f77a57b14aff.ngrok.io', protocol: 'https'}
in prodcution