skip to Main Content

Telethon – The server closed the connection error – Telegram API

I'm unable to connect to Telegram using Telethon. from telethon import TelegramClient import logging api_id = 1111111 api_hash = 'd0111111111111111111111111111111' client = TelegramClient('session_name', api_id, api_hash) logging.basicConfig(level=logging.DEBUG) client.start() Judging by the log, it seems it will connect and immediately disconnect. Telegram…

VIEW QUESTION

i am gettin an error "[Errno 5] Input/output error" while running an api on django – CentOS

Django API Code: def post(self,request)-> JsonResponse: try: self.email = request.data['email'] self.mobile = request.data['mobile'] self.password = request.data['password'] except Exception as e: return JsonResponse(create_failure('400',f"invalid payload {e}","fail")) try: res = {} jwt_token = '' if self.email: password = Customer.objects.get(email=self.email).password username = Customer.objects.get(email=self.email).username print(password)…

VIEW QUESTION
Back To Top
Search