title: Telethon Issue: OperationalError: database is locked
body: <p>The issue was appearing because we're connecting the client twice in the code.</p>
  <pre><code>client = TelegramClient(phone, api_id, api_hash)
  
  client.connect()
  if not client.is_user_authorized():
      client.send_code_request(phone)
      client.sign_in(phone, input('Enter the code: '))
  </code></pre>