nickoala / telepot

Python framework for Telegram Bot API
MIT License
2.42k stars 474 forks source link

Bot get Telegram API 404 NotFound after telepot upgrade #350

Closed acabrol closed 6 years ago

acabrol commented 6 years ago

Dear i upgraded telepot for my bot and now Telegram API return 404 for getUpdates method i tried to reach the function directly in a web browser ant it works properly 200.

My bot code is at https://github.com/soprasteria/cybersecurity-dfm/blob/master/utils/dfmtelegrambot.py

My test:

Here under the log Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/telepot/__init__.py", line 787, in get_fro _telegram_server result = self.getUpdates(offset=offset, timeout=timeout) File "/usr/local/lib/python2.7/dist-packages/telepot/__init__.py", line 630, in getUpda es return self._api_request('getUpdates', _rectify(p)) File "/usr/local/lib/python2.7/dist-packages/telepot/__init__.py", line 398, in _api_re uest return api.request((self._token, method, params, files), **kwargs) File "/usr/local/lib/python2.7/dist-packages/telepot/api.py", line 131, in request return _parse(r) File "/usr/local/lib/python2.7/dist-packages/telepot/api.py", line 126, in _parse raise exception.TelegramError(description, error_code, data) TelegramError: (u'Not Found', 404, {u'error_code': 404, u'ok': False, u'description': u'N t Found'})

acabrol commented 6 years ago

The bug is fixed that was config issue.

kmein commented 6 years ago

@acabrol Could you elaborate on what your "config issue" was? I'm having the same problem right now