Skip to content

Troubleshooting

Eugenio Turano edited this page Aug 22, 2016 · 23 revisions

Here we post some of the more common asked questions regards problems with the bot:

1. Can't see the commands list of the bot while writing:

I know, write some command on the phone is not the best, the command list is on our command wiki, you can add the command list using this format:

CODE

copy that and paste it to the @botfather after stat you writed to him /setcommands

2. Token Invalid Syntax

That's usually because the token inside the config-bot.json file is not added inside the quotation marks, example:

right: { "TELEGRAM_TOKEN": "11.....bvesj", "DEFAULT_LANG": "en" }

wrong: { "TELEGRAM_TOKEN": 11.....bvesj, "DEFAULT_LANG": "en" }

3. sqlite3.OperationalError: unable to open database file

That's usually because the pogomBOT files were not moved to the pogom folder or because the database had a different user than the pogobot script, example: output of ls -lah:

OUTPUT

In this case the pogom.db is owned root (means that you usuallu run sudo runserver.py while the pogobot.py is run without the sudo, the best is not to run anything with sudo, it usually messes things up)

Solutions:

  1. chown user:user pogom.db* config.json and run runservery.py without root (better solution!)
  2. run pogobot.py with sudo

ImportError: No module named 'telegram'

Traceback (most recent call last): File "pogobot.py", line 19, in from telegram.ext import Updater, CommandHandler, Job ImportError: No module named 'telegram'

That happens when you either run the requirements only with pip instead of pip3 or you forgot to install the requirements

Something else?

If it's a bug please open an Issue If you want to contact the creators write to our telegram group: http://telegram.me/pogomBOTgroup

Clone this wiki locally