PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.86k stars 1.54k forks source link

Invalid Token : Telegram ! #4820

Closed avneetsb closed 8 years ago

avneetsb commented 8 years ago

Traceback (most recent call last): File "pokecli.py", line 750, in main() File "pokecli.py", line 115, in main bot = initialize(config) File "pokecli.py", line 84, in initialize initialize_task(bot,config) File "pokecli.py", line 78, in initialize_task tree = TreeConfigBuilder(bot, config.raw_tasks).build() File "/Users/avneet/Desktop/PokemonGo-Bot/pokemongo_bot/tree_config_builder.py", line 79, in build instance = worker(self.bot, task_config) File "/Users/avneet/Desktop/PokemonGo-Bot/pokemongo_bot/base_task.py", line 23, in init self.initialize() File "/Users/avneet/Desktop/PokemonGo-Bot/pokemongo_bot/cell_workers/telegram_task.py", line 21, in initialize self.tbot = telegram.Bot(api_key) File "/Users/avneet/Desktop/PokemonGo-Bot/lib/python2.7/site-packages/telegram/bot.py", line 51, in init self.token = self._validate_token(token) File "/Users/avneet/Desktop/PokemonGo-Bot/lib/python2.7/site-packages/telegram/bot.py", line 75, in _validate_token raise InvalidToken() telegram.error.InvalidToken: Invalid token Sat Aug 27 23:08:32 IST 2016 Pokebot Stopped.

Config.json { "type": "TelegramTask", "config": { "enabled": false } },

askovpen commented 8 years ago

4816

Gobberwart commented 8 years ago

Until this PR is merged, you can avoid the error by removing the TelegramTask from config.json (not disable, remove the task entirely)

mjmadsen commented 8 years ago

Merged

R2RM commented 1 month ago

'12345678:ABCDEfgHIDUROVjkLmNOPQRSTUvw-cdEfgHI'