-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Token : Telegram ! #4820
Comments
Merged
Until this PR is merged, you can avoid the error by removing the TelegramTask from config.json (not disable, remove the task entirely) |
Merged |
'12345678:ABCDEfgHIDUROVjkLmNOPQRSTUvw-cdEfgHI' |
Why not open the links |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
}
},
The text was updated successfully, but these errors were encountered: