Skip to content
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

Closed
avneetsb opened this issue Aug 27, 2016 · 5 comments
Closed

Invalid Token : Telegram ! #4820

avneetsb opened this issue Aug 27, 2016 · 5 comments

Comments

@avneetsb
Copy link

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
Copy link
Contributor

#4816

@askovpen askovpen mentioned this issue Aug 27, 2016
@Gobberwart
Copy link
Contributor

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

@mjmadsen
Copy link
Contributor

Merged

@R2RM
Copy link

R2RM commented Jul 23, 2024

'12345678:ABCDEfgHIDUROVjkLmNOPQRSTUvw-cdEfgHI'

@LilkingNasser10
Copy link

Why not open the links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants