|
|
@ -40,6 +40,7 @@ class Client: |
|
|
|
self.backend = BackendClient() |
|
|
|
self.qiwi_dp = QiwiDispatcher() |
|
|
|
self.wallet = QiwiWallet(api_access_token=os.getenv("QIWI_APIKEY"), phone_number=os.getenv("QIWI_PHONENUMBER")) |
|
|
|
self.build_handler() |
|
|
|
|
|
|
|
def run(self): |
|
|
|
executor.start_polling(self.wallet, self.qiwi_dp, on_startup=self.on_startup) |
|
|
|