SHARE
TWEET

Untitled

a guest Feb 21st, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Сначала скачиваешь библиотеку:
  2. #pip install SimpleQIWI
  3.  
  4. from SimpleQIWI import *
  5.  
  6.  
  7. token = "токен киви"
  8. phone = "телефон"
  9. api = QApi(token = token, phone = phone)
  10.  
  11. #Это в начало, перед авторизацией токена вк
  12. #Щас команду
  13.  
  14. if ms == "мой баланс":
  15.     try:
  16.       vk.messages.send(
  17.       user_id = event.user_id,
  18.       message = "Ваш баланс: " + str(api.balance).replace('[', '').replace(']', '') + " рублей.",
  19.       random_id = 0)
  20.     except:
  21.       pass
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top