S
S
shuzzixd2021-08-09 12:33:11
Python
shuzzixd, 2021-08-09 12:33:11

I'm checking the number. How to fix something like this?

I'm checking the number. At startup, there is a confirmation button that, when pressed, sends the user's contact. But this can be bypassed simply by sending any contact from the telegram. How can this be fixed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-08-09
@shuzzixd

The Contact object has a field user_id. Accordingly, check that user_idfrom the contact is equal user_idto the user who sent you the message.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question