lblb23 / telegram-top-posts-bot

Telegram bot for get top N posts and videos by likes and views from Instagram account
1 stars 0 forks source link

No module named 'base_message' #1

Open Strannik74 opened 4 years ago

Strannik74 commented 4 years ago

❯ python3 main.py Traceback (most recent call last): File "main.py", line 7, in from chatbase import Message File "/usr/local/lib/python3.8/dist-packages/chatbase/init.py", line 18, in from chatbase.facebook_agent_message import * File "/usr/local/lib/python3.8/dist-packages/chatbase/facebook_agent_message.py", line 19, in from base_message import Message ModuleNotFoundError: No module named 'base_message'

lblb23 commented 4 years ago

@Strannik74 Try to install chatbase from repo: pip install git+git://github.com/google/chatbase-python.git

Strannik74 commented 4 years ago

Thanks The error has disappeared Another appeared ❯ python3 main.py Traceback (most recent call last): File "main.py", line 140, in main() File "main.py", line 64, in main updater = Updater(config["telegram_token"], use_context=True) File "/usr/local/lib/python3.8/dist-packages/telegram/ext/updater.py", line 160, in init self.bot = Bot(token, File "/usr/local/lib/python3.8/dist-packages/telegram/bot.py", line 133, in init self.token = self._validate_token(token) File "/usr/local/lib/python3.8/dist-packages/telegram/bot.py", line 200, in _validate_token raise InvalidToken() telegram.error.InvalidToken: Invalid token

lblb23 commented 4 years ago

@Strannik74 you need to create own telegram bot and insert token to config.yml Manual: https://core.telegram.org/bots#generating-an-authorization-token