Telethon: OperationalError: database is locked

后端 未结 3 1741
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-16 18:13

Apologies if it is a silly question.

I am trying telethon for the first time and it fails to synchronize with my telegram API.

I get an IP address when I ty

3条回答
  •  难免孤独
    2021-01-16 18:41

    Referring to the Telethon documentation, The database will be locked if you don't close it properly.

    You are using the same session file from many TelegramClient's at once.

    First

    In [9] client.start()
    

    TelegramClient started

    Second

    In [13] client.connect()
    

    TelegramClient's already active

    This also causes database is locked error. More info:

提交回复
热议问题