question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to get updates from Telegram servers

See original GitHub issue

Hi! I tried this lib back in 2015 and everything was fine. Today I’m getting this error while trying to send a message:

[TelegramBot]: Failed to get updates from Telegram servers

I have created this repo to help you figure out what’s wrong: https://github.com/riseremi/telegram-bot-api-issue

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
realestninjacommented, May 26, 2016

hey, i’m getting the same error.

var telegram = require('telegram-bot-api');
var api = new telegram({
  token: ':)',
  updates: {
    enabled: true,
    get_interval: 1000
  }
});

api.on('message', function(message)
{
  var chat_id = message.chat.id;

  if (message.photo || message.document.mime_type == "image\/jpeg") {
    console.log('received a photo');
  } else {
    console.log('received a message');
  }
});

i don’t exactly understand how to attach the catch part to my code… i only get the error message if i send text messages to my bot, no error when i send pictures.

0reactions
realestninjacommented, May 27, 2016

Thanks for the fast response ! Replacing that line 161 really helped me find my own stupid mistake !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Telegram outages reported in the last 24 hours - Downdetector
Real-time status and problems for Telegram. Is the app not working? Can't send or read messages? Here you see what is going on....
Read more >
Conflict: terminated by other getUpdates request; make sure ...
This happens when 2 different clients send getUpdates method to Telegram servers for one bot token. You should make sure you're not running ......
Read more >
Conflict: terminated by other getUpdates request; make sure ...
Hi all, I just installed the telegram platform and it apparently works, but I suspect it misses some notifications and my home_assistant.log ...
Read more >
Bots FAQ - Telegram APIs
Why doesn't my bot see messages from other bots? Getting Updates. How do I get updates? Long polling problems; Webhook problems; Using self-signed...
Read more >
How to Fix Download Problems on Telegram - Saint - Saintlad
1. Check Telegram Servers. · 2. Restart Your Device. · 3. Check Your Network Connection. · 4. Check Your Permissions (Android). · 5....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found