· 4 years ago · Mar 11, 2021, 05:08 PM
1#lib steampy
2from steampy.client import *
3from steampy.models import Currency
4
5bot={
6 'slogin': '_happyer_',
7 'password': 'Hollnik290103',
8 'api_key': 'BB28A4C69A534E12E2462CAECA1B64B3',
9 'sguard_path': 'steam_guard__happyer_.txt',
10 'secret_key': 'S3i69RZaYOcyV9ZP5zStfv34LF8ifQ0'
11
12 }
13
14def acceptTradeOffer():
15 global bot
16 steam_client = login(bot)
17 response = accept_trade_offer(steam_client, request.json.get('trade_offer_id'))
18 return response
19
20def accept_trade_offer(steam_client, offerId):
21 return steam_client.accept_trade_offer(offerId)