Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from SimpleQIWI import *
- import telebot
- from time import sleep
- bot = telebot.TeleBot('10447#########################LqFDs')
- mainKeyboard = telebot.types.ReplyKeyboardMarkup(True, True)
- mainKeyboard.row('Балансы киви кошельков')
- mainKeyboard.row('Перевести все деньги на один кошелек')
- qiwiBalances = telebot.types.ReplyKeyboardMarkup(True, True)
- qiwiBalances.row('узнать баланс киви +7960####16')
- qiwiBalances.row('узнать баланс киви +7999####53')
- qiwiBalances.row('узнать баланс киви +796#####00')
- qiwiBalances.row('Узнать общий баланс всех кошельков')
- login = "79############3"
- api_access_token = "9140################24e"
- api = QApi(token=api_access_token, phone=login)
- def sending_toQiwi():
- token = "ae#################5a2"
- phone = "7###########16"
- api = QApi(token=token, phone=phone)
- sendingAmout = int(api.balance[0]) * 0.98
- print(api.balance)
- api.pay(account="7999#####53", amount=1, comment='Перевод всех бабок на 1 кивас')
- print(api.balance)
- def sending_toQiwi2():
- token = "ae5######################a2"
- phone = "796######600"
- api = QApi(token=token, phone=phone)
- sendingAmout = int(api.balance[0]) * 0.98
- print(api.balance)
- api.pay(account="799######53", amount=1, comment='Перевод всех бабок на 1 кивас')
- print(api.balance)
- @bot.message_handler(commands=['start'])
- def start_message(message):
- user_id_get = message.from_user.id
- if user_id_get == 6##########2:
- bot.send_message(message.chat.id,
- 'Приветствую, мой господин!',
- reply_markup=mainKeyboard)
- @bot.message_handler(content_types=['text'])
- def send_message(message):
- user_id_get = message.from_user.id
- if message.text == 'Балансы киви кошельков':
- bot.send_message(message.chat.id, 'Выбирай то, что тебе нужно',
- reply_markup=qiwiBalances)
- if message.text == 'узнать баланс киви +79#######6' and user_id_get == 6#####2:
- login = "79########16"
- api_access_token = "ae5023###########225a2"
- api = QApi(token=api_access_token, phone=login)
- theFirst_balance = api.balance[0]
- print('Баланс киви кошелька 7###############6: ' + str(theFirst_balance))
- bot.send_message(message.chat.id, 'Баланс киви кошелька : ' + str(theFirst_balance) + ' Рублей ',
- reply_markup=mainKeyboard)
- if message.text == 'узнать баланс киви +799#######453':
- login = "7############53"
- api_access_token = "9140##################b24e"
- api = QApi(token=api_access_token, phone=login)
- theSecond_balance = api.balance[0]
- print('Баланс киви кошелька 7#################6: ' + str(theSecond_balance))
- bot.send_message(message.chat.id, 'Баланс киви кошелька : ' + str(theSecond_balance) + ' Рублей',
- reply_markup=mainKeyboard)
- if message.text == 'узнать баланс киви +7#############0' and user_id_get == 6###########2:
- login = "79###########0"
- api_access_token = "f85e853#############f9e2"
- api = QApi(token=api_access_token, phone=login)
- the3th_balance = api.balance[0]
- print('Баланс киви кошелька 79##############0: ' + str(the3th_balance))
- bot.send_message(message.chat.id, 'Баланс киви кошелька : ' + str(the3th_balance) + ' Рублей',
- reply_markup=mainKeyboard)
- if message.text == 'Узнать общий баланс всех кошельков' and user_id_get == ##########:
- login = "7##############0"
- api_access_token = "f8############9e2"
- api = QApi(token=api_access_token, phone=login)
- the3th_balance = api.balance[0]
- print('Баланс киви кошелька 7#############0: ' + str(the3th_balance))
- login = "7##############3"
- api_access_token = "914########################24e"
- api = QApi(token=api_access_token, phone=login)
- theSecond_balance = api.balance[0]
- print('Баланс киви кошелька 79############16: ' + str(theSecond_balance))
- login = "7######6"
- api_access_token = "ae50################5a2"
- api = QApi(token=api_access_token, phone=login)
- theFirst_balance = api.balance[0]
- print('Баланс киви кошелька 7################6: ' + str(theFirst_balance))
- AllBalances = theFirst_balance + theSecond_balance + the3th_balance
- bot.send_message(message.chat.id, 'Общий баланс : ' + str(AllBalances) + ' Рублей ',
- reply_markup=mainKeyboard)
- if message.text == 'Перевести все деньги на один кошелек' and user_id_get == 6############2:
- sending_toQiwi()
- sending_toQiwi2()
- bot.send_message(message.chat.id, 'Деньги были переведены!', reply_markup=mainKeyboard)
- else:
- pass
- bot.polling()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement