vasusen-code / SaveRestrictedContentBot

Stable telegram bot to save Restricted content with custom thumbnail support.
GNU Affero General Public License v3.0
1.66k stars 2.89k forks source link

Userbot Error ! Have you added SESSION while deploying?? #151

Open luxikakashi opened 7 months ago

luxikakashi commented 7 months ago

✔ Network saverestrictedcontentbot_default Created 0.1s ✔ Container srcbot Created 0.1s Attaching to srcbot srcbot | starting Bot ~@DroneBots srcbot | Userbot Error ! Have you added SESSION while deploying?? srcbot exited with code 1 what's wrong with this?

timgahmen commented 7 months ago

✔ Network saverestrictedcontentbot_default Created 0.1s ✔ Container srcbot Created 0.1s Attaching to srcbot srcbot | starting Bot ~@DroneBots srcbot | Userbot Error ! Have you added SESSION while deploying?? srcbot exited with code 1 what's wrong with this?

try delete *session files in the bot folder...

luxikakashi commented 7 months ago

image there no *session files

✔ Network saverestrictedcontentbot_default Created 0.1s ✔ Container srcbot Created 0.1s Attaching to srcbot srcbot | starting Bot ~@DroneBots srcbot | Userbot Error ! Have you added SESSION while deploying?? srcbot exited with code 1 what's wrong with this?

try delete *session files in the bot folder...

timgahmen commented 7 months ago

image there no *session files

✔ Network saverestrictedcontentbot_default Created 0.1s ✔ Container srcbot Created 0.1s Attaching to srcbot srcbot | starting Bot ~@DroneBots srcbot | Userbot Error ! Have you added SESSION while deploying?? srcbot exited with code 1 what's wrong with this?

try delete *session files in the bot folder...

First check again:

If still not work... Second check:

luxikakashi commented 7 months ago

image there no *session files

✔ Network saverestrictedcontentbot_default Created 0.1s ✔ Container srcbot Created 0.1s Attaching to srcbot srcbot | starting Bot ~@DroneBots srcbot | Userbot Error ! Have you added SESSION while deploying?? srcbot exited with code 1 what's wrong with this?

try delete *session files in the bot folder...

First check again:

  • refresh the directory -> now a session file there?
  • then also delete the "__pycache__" folders:
  • /pycache/
  • download/pycache/
    • in every folder (refresh always the folder befor)
  • ==> then for me it works to 99 % again ....

If still not work... Second check:

  • "First check" (delete all session files + pycache)
  • rename the userbot:
  • not "srcbot" .... anyt other name "srcbot123" maybe

problem solved,in the pysession part,i miss a ",so it cannot be recognized``thanks