我正在尝试启动一个客户端,但它给出了“数据库已关闭”错误。我应该怎么办?
from telethon import TelegramClient
api_id = 12345
api_hash = '##################'
phone_number = '+##########'
channel_username = 'tehrandb'
client = TelegramClient('session_name', api_id, api_hash)
assert client.connect()
if not client.is_user_authorized():
client.send_code_request(phone_number)
me = client.sign_in(phone_number, input('Enter code: '))