Authorization in telegram bot by code fails
I am writing a telegram bot with telethon which gets access to several chats in the account and parses messages from it into the database.
When I try to use this bot I try to login, Telegram sends me authentication code. When I send this authentication code to the bot, authentication fails and telegram sends me such a message: