Woahai321 / soluify-telegram-copypaste-bot

Python script for automating message forwarding (copy and paste) in Telegram groups and channels
https://soluify.com
13 stars 9 forks source link

Error 10038 #1

Closed ErMutanda20 closed 1 month ago

ErMutanda20 commented 2 months ago

I am having an issue where, after setting everything up and starting up the bot I get the following message:

Successfully connected to Telegram! [2024-08-22 23:03:16] Soluify is on the lookout for new messages... πŸ‘€ Type 'exit' and press Enter to stop forwarding and return to the main menu. 2024-08-22 23:03:16,847 - soluify - ERROR - Unexpected error: [WinError 10038] Tentativo di operazione su un elemento diverso dal socket Unexpected twist in our adventure: [WinError 10038] Tentativo di operazione su un elemento diverso dal socket. Let's regroup and try again!

The error 10038 is described in italian but it means Socket operation on nonsocket.

I have 4GB of RAM, CPU: Intel(R) Pentium(R) Silver N5030 CPU @ 1.10GHz, I have Windows 11 64 bit as operating system and a 118 GB HDD.

As requested I have copy pasted below my terminal. After inserting cd soluify-telegram-copypaste-bot and python SoluifyCopier.py that's what goes on:


/ / / \ | T | T Tl j| || T T ( \ Y Y| | | | | | T | j| | | __ T| O || l | | | | | | l | ~ | / \ || || T| : | | | | ] l, | \ |l !| |l | j l | T | ! _j _/ lj _,_j|jlj l__/


/ \ __ / _ \ | |_ / / / \ | ' \ | | | | / /)/ / ` |/ || | / \ / / | () || |) || || | / __/ | (| |\ | |_ | / _/ \/ | ./ _, | \/ _,_||/ \| \| |_| |___/

Welcome to the Soluify Telegram Copy & Paste Bot!

  1. Log in with your API details (securely, of course!)
  2. List all your Telegram chat IDs. (Note your source and destination IDs)
  3. Set up the bot with the provided prompts.
  4. Add custom filters and signatures to your messages.
  5. Sit back and let us handle the rest!

Enter your password to decrypt credentials: Credentials successfully decrypted! Welcome back! πŸŽ‰

What's your mission for today? πŸ•΅οΈ

  1. List My Chat IDs πŸ“‹
  2. Set Up Message Forwarding βš™οΈ
  3. Edit Profile ✏️
  4. Help ❓
  5. Exit πŸ‘‹ Pick your adventure (1-5): 2 Do you want to use a saved profile? (y/n): y Available profiles: 🎭
  6. Test 1
  7. Test 2 Enter the profile number: 1 Preparing the message wormhole πŸ’‘ Successfully connected to Telegram! βœ… [2024-08-24 12:33:04] Soluify is on the lookout for new messages... πŸ‘€ Type 'exit' and press Enter to stop forwarding and return to the main menu. 2024-08-24 12:33:04,881 - soluify - ERROR - Unexpected error: [WinError 10038] Tentativo di operazione su un elemento diverso dal socket Unexpected twist in our adventure: [WinError 10038] Tentativo di operazione su un elemento diverso dal socket. Let's regroup and try again!

I tried reeboting and changing network, tried no to use a profile and tried to create second one. I tried with multiple chats and nothing worked

Woahai321 commented 2 months ago

Hi, thanks for raising this as an issue.

It looks like you're experiencing a socket-related issue. Lets first explain what a socket is and why it might be causing problems.

What is a Socket?

A socket is an endpoint for sending or receiving data across a computer network. It's a fundamental technology used for communication between devices on a network, including the Internet. Sockets are used in various network protocols, including TCP/IP, which is the backbone of the Internet.

Common Socket Issues

Sometimes, sockets can encounter problems such as being closed unexpectedly or becoming invalid. This can happen for various reasons, including network instability, resource limitations, or issues within the application itself.

Troubleshooting Steps

Let's go through a few steps to troubleshoot and hopefully resolve the problem:

  1. Verify Active Connections:

    • Why?: Sometimes, lingering connections can cause socket issues.
    • How?: Restart your computer to clear any existing socket connections that might be causing the issue.
  2. Update Telethon:

    • Why?: Updating to the latest version can fix known issues and improve compatibility.
    • How?:
      pip install --upgrade telethon
  3. Run with Elevated Privileges:

    • Why?: Running your script with administrative privileges can sometimes resolve permission-related socket issues.
    • How?: Right-click on your terminal or command prompt and select "Run as administrator."
  4. Check Firewall/Antivirus Settings:

    • Why?: Firewalls and antivirus software can block or interfere with socket connections.
    • How?: Ensure that your firewall or antivirus is not blocking the Python executable. You might need to whitelist it or temporarily disable the firewall/antivirus to see if it resolves the issue.

Please try these steps and let me know any change in behaviour.

ErMutanda20 commented 2 months ago

Hey, thanks for the in depth reply. Sadly after having tried all of these steps multiple times I have to say that none of this fixed my issue. I still get the same error 10038. Please let me know if I can try anything else

Woahai321 commented 2 months ago

Hey,

Can you please try running this on a different machine or configure a VM for testing?

It sounds like a device issue, i am unable to replicate the issue you are facing.

Woahai321 commented 1 month ago

Hello! πŸ‘‹

It’s been a while since we last heard from youβ€”nearly 30 days! Just a quick heads-up that we’ll be closing this issue in 5 days if no further activity or response is received.

If you're still having trouble or need additional assistance, feel free to leave a comment and we'll be happy to help out!