OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Telethon TelegramClient leads to exit code -1073741819 (0xC0000005)

  • Thread starter Thread starter starsnpixel
  • Start date Start date
S

starsnpixel

Guest
Using PyCharm 2023.2.5, Python 3.11.1 and the following code

Code:
from telethon import TelegramClient, sync, events
class telegram_messenger:
    def __init__(self):
        api_id = '123'
        api_hash = 'ABC'
        bot_token = 'ZZZ'
        client = TelegramClient('bot', api_id, api_hash).start(bot_token=bot_token)

I am getting the response Process finished with exit code -1073741819 (0xC0000005). If I uncomment the line client = ..., the code runs perfectly fine. What's going on here?
<p>Using PyCharm 2023.2.5, Python 3.11.1 and the following code</p>
<pre><code>from telethon import TelegramClient, sync, events
class telegram_messenger:
def __init__(self):
api_id = '123'
api_hash = 'ABC'
bot_token = 'ZZZ'
client = TelegramClient('bot', api_id, api_hash).start(bot_token=bot_token)
</code></pre>
<p>I am getting the response <code>Process finished with exit code -1073741819 (0xC0000005)</code>. If I uncomment the line <code>client = ...</code>, the code runs perfectly fine. What's going on here?</p>
I have found how to fix this.
 

Latest posts

B
Replies
0
Views
1
Blundering Ecologist
B
Top