S
S
Samad_Samadovic2021-07-18 23:36:57
Python
Samad_Samadovic, 2021-07-18 23:36:57

How to get the text of a message from a specific user?

Hello, I know the method message.text, but I need to find out the message of a specific user for example by id.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Samad_Samadovic, 2021-07-19
@Samad_Samadovic

Look, the point is to get one message from a specific user, and I had an idea with a dictionary ({message.text:message.chat.id}) - that's what I needed)

S
soremix, 2021-07-19
@SoreMix

Can't get message by ID

S
slikkness, 2021-07-19
@slikkness

Check for id with if...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question