[python] AYOGRAM and PYROGRAM
How could I account save to:
waiting state.update_data(account=account)
account = Client(name=f'{phone}', api_id=api_id, api_hash=api_hash, in_memory=True)
sc = pending account.send code(phone)
standby status.update_data(account =account) # This causes an error, as I understand it, due to the fact that the account contains
a waiting state Object.update_data(phone=phone)
standby status.update_data(phone_code_hash=sc.phone_code_hash)
So that in the next State() (FSM from AIOGRAM) I could get this account and use? (it's not possible to just pass it, since it contains a Object)
(I would like to transmit using FSM technology, it would save me a lot of time)
Thank you in advance!
I try:
import pickle
client_data = pickle.dumps(client)
await state.update_data(client=client_data)
But this also caused an error, although the usual data on the type of rows, lists and others are transmitted perfectly