git clone https://github.com/linksplatform/Bot.git
cd Bot
pip3 install -r requirements.txt
- Enable VK Long Poll API with
5.103version for your bot's group.
- Set bot group id in config.py.
- Add tokens into
python/tokens.pyfileBotToken(an access token of your VK group). This token should have two access settingscommunity managementandcommunity messages. This token is required.
UserToken(an access token to your VK user via KateMobile). This token is used to delete messages in the chats where your user is administrator. This token is optional.
cd python
python3 __main__.pyTo tell git to ignore this file:
git update-index --assume-unchanged python/tokens.py
To see the bot in action you can join the chat with this bot.