J
J
James_Obry2022-01-03 00:33:19
Python
James_Obry, 2022-01-03 00:33:19

How to find out what machine state a particular user is in?

The bottom line is, I need to find out in what machine state a particular user of the telegram bot is, tell me how this can be done, but not through the database

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
James_Obry, 2022-01-03
@James_Obry

storage = MemoryStorage()

async def function():
        interest_data = await storage.get_state(user=user_id, chat=chat_id)
        print(interest_data)

In user and chat, you need to insert the telegram id of the user whose machine state you need to know

D
Dimonchik, 2022-01-03
@dimonchik2013

requests by user_id, obviously

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question