+ Fix transfer error
+ Add telegram /3
This commit is contained in:
parent
88f42223ec
commit
45f33a046d
@ -16,7 +16,8 @@ async def menu_cmd_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) -
|
|||||||
menu = [
|
menu = [
|
||||||
'MENU',
|
'MENU',
|
||||||
'/1 - Get Acc',
|
'/1 - Get Acc',
|
||||||
'/2 <link> - Set Security Pin'
|
'/2 <link> - Set Security Pin',
|
||||||
|
'/3 <agent username> <agent password> <player username> <player password>'
|
||||||
]
|
]
|
||||||
await update.message.reply_text('\n'.join(menu))
|
await update.message.reply_text('\n'.join(menu))
|
||||||
|
|
||||||
|
|||||||
@ -15,9 +15,9 @@ max_threading = 1
|
|||||||
|
|
||||||
def transfer(data: dict):
|
def transfer(data: dict):
|
||||||
bot = CM_BOT_HAL()
|
bot = CM_BOT_HAL()
|
||||||
logger.info(f'[Start] Transfer Credit from {data['f_username']} to {data['t_username']}')
|
logger.info(f"[Start] Transfer Credit from {data['f_username']} to {data['t_username']}")
|
||||||
bot.transfer_credit_api(data['f_username'], data['f_password'], data['t_username'], data['t_password'])
|
bot.transfer_credit_api(data['f_username'], data['f_password'], data['t_username'], data['t_password'])
|
||||||
logger.info(f'[DONE] {data['f_username']} transfer done!')
|
logger.info(f"[DONE] {data['f_username']} transfer done!")
|
||||||
del bot
|
del bot
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user