I used to get the posts from a public telegram channel using telethon and everything works fine until today that the channel became private and although I am a subscriber to the channel I can not retrieve the channel messages with the message-id like before and I get an error that the channel is private and you can not access the messages. I should mention that I am a subscriber to the channel. I try different things and find out that telethon sign in as a bot and for that reason, the channel does not give it permission to read the channel messages. one other thing that I find out is that to make this work like before any bot should be added to the channel as an administrator to let telethon read messages like before. does anyone know any way to retrieve messages from a private channel that we are subscribed to without adding bot as an administrator to the channel?
client = TelegramClient('session', api_id, api_hash, proxy=("socks5", 'server', port))
# connecting and building the session
client.connect()
# in case of script ran first time it will
# ask either to input token or otp sent to
# number or sent or your telegram id
if not client.is_user_authorized():
client.send_code_request(phone)
# signing in the client
client.sign_in(phone, input('Enter the code: '))
this is the way I use to sign in to my account but it signs in as a bot this way, is there any workaround not to sign in as a bot?