rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.77k stars 1.22k forks source link

Error during connection to telegram bot ERROR 1928 --- [gram Connection] Telegram Bots Api : BOTSESSION #306

Closed dinarAkv closed 7 years ago

dinarAkv commented 7 years ago

Hello, yesterday my program (bot) work well, but today I every time after run apllication get next erro:

ERROR 1928 --- [gram Connection] Telegram Bots Api : BOTSESSION

org.telegram.telegrambots.exceptions.TelegramApiRequestException: Error getting updates at org.telegram.telegrambots.api.methods.updates.GetUpdates.deserializeResponse(GetUpdates.java:119) ~[telegrambots-meta-3.3.jar:na] at org.telegram.telegrambots.updatesreceivers.DefaultBotSession$ReaderThread.run(DefaultBotSession.java:203) ~[telegrambots-3.3.jar:na]

What wrong with my application or there is some thing wrong with telegram api ?

I tried other stable commits in my application and get the same error.

dinarAkv commented 7 years ago

I found problem. The problem was that I try to run 2 servers that address to the same telegram bot at the same time. The firest was remote server and second was local. There is allow address to telegram bot only for one server at the same time.