Git Product home page Git Product logo

Comments (6)

Onefivefournine avatar Onefivefournine commented on May 8, 2024 2

@delivrance Unfortunatetly, I'm not so good at python, so take it as a wish 😄
Also it would be great to have a configuration option of session file placement, because it has the same issue - it creates in execution root

from pyrogram.

delivrance avatar delivrance commented on May 8, 2024

Hi, don't name your project folder pyrogram in the first place, as it can cause some weird issues.
Rename it to something else and let me know if the problem persists.

from pyrogram.

Onefivefournine avatar Onefivefournine commented on May 8, 2024

@delivrance Well, I already use other name, just took it here as example
P.S. Issue updated 'pyrogram' => 'MyFancyPythonModule'

from pyrogram.

delivrance avatar delivrance commented on May 8, 2024

@Onefivefournine Good, this is indeed some unwanted behaviour. Instead of __file__ you probably want to look at sys.argv to extract the correct dir. Want to open a PR?

from pyrogram.

delivrance avatar delivrance commented on May 8, 2024

@Onefivefournine Noted. There is actually #4 open for that, but I'm still unsure how to make it nicer (without messing too much with Client parameters).

Regarding this issue, I'm labeling it as enhancement.

from pyrogram.

delivrance avatar delivrance commented on May 8, 2024

As a temporary workaround for this you can use the api_key parameter instead: https://docs.pyrogram.ml/start/ProjectSetup#configuration
There is also a proxy parameter as well.

from pyrogram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.