V
V
Villian_Os2021-03-06 10:14:20
Django
Villian_Os, 2021-03-06 10:14:20

How in django to send a telegram message to a user by his login?

I have already created a bot and the user who needs to send a message has already clicked Start. My bot only knows the username of the user who wants to receive the message. In what ways can a bot send a message to a user using python django?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nozzy, 2021-03-06
@nozzy

And why does your bot know only the login (as I understand it, you call username that way) of the user?
Your bot also knows the user id, you can and should also send a message using it.
The user may not have a username, but an id is required.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question