Queer European MD passionate about IT
Browse Source

`Bot`s must be instantiated via `get`

Davte 5 years ago
parent
commit
e776792dee
1 changed files with 2 additions and 2 deletions
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -25,8 +25,8 @@ my_other_token = 'token_of_bot2'
 from davtelepot import Bot
 from data.passwords import my_token, my_other_token
 
-my_bot = Bot(token=my_token, db_name='my_db')
-my_other_bot = Bot(token=my_other_token, db_name='my_other_db')
+my_bot = Bot.get(token=my_token, db_name='my_db')
+my_other_bot = Bot.get(token=my_other_token, db_name='my_other_db')
 
 @my_bot.command('/foo')
 async def foo_command(update):