M
M
madk1nd2019-01-03 20:15:22
Email
madk1nd, 2019-01-03 20:15:22

How to authorize a Telegram bot in a mail service?

I am making a Telegram bot to manage mail. Authorization issue. I would like the bot to be able to specify an email address and then manage incoming/outgoing messages through communication with this bot. View, delete messages, etc. I am writing a python application for this, which connects to mail using the imap protocol. For such a connection, you must specify the username and password of the user. So far, I can’t think of anything better than simply asking the user for a username and password through a bot. Accordingly, you will have to store user passwords on your backend (of course, in encrypted form).
The problem is that I myself would think twice before passing the login and password to a third-party application, especially the Telegram bot. This approach does not seem reliable for most users.
Is it normal to ask the user for a username and password? Doesn't this violate the law on the protection of personal data? Are there any other, perhaps more correct options for authorization in mail services (for example, for Yandex mail or gmail)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-01-03
@madk1nd

Are there any other, perhaps more correct options for authorization in mail services (for example, for Yandex mail or gmail)?

is, but in
no
helps 2xx factorial in Gmyl and Yandex
https://yandex.ru/support/passport/authorization/a...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question