Giter Site home page Giter Site logo

Comments (9)

shelomentsevd avatar shelomentsevd commented on August 24, 2024

Hi, @amir-abbas!
Pull request #7 should have fix this bug.
Do you still get error?

from mtproto.

amir-abbas avatar amir-abbas commented on August 24, 2024

Hi @shelomentsevd
thank you for fix this bug but when change dc in auth_sentCode we get Phone_registered:false
not support switchDC.

from mtproto.

savely-krasovsky avatar savely-krasovsky commented on August 24, 2024

@amir-abbas we are working on it. You can use directly necessary DC right now.

from mtproto.

amir-abbas avatar amir-abbas commented on August 24, 2024

Hi @shelomentsevd @Lord-Protector
I fixed this issue(switchDC ) but we have a new issue in reconnect function, we should disconnect first but we stuck at this <-m.allDone

from mtproto.

amir-abbas avatar amir-abbas commented on August 24, 2024

@shelomentsevd @Lord-Protector
thanks for your effort but please check disconnect function.this function does not work correctly.

from mtproto.

shelomentsevd avatar shelomentsevd commented on August 24, 2024

Hi, @amir-abbas!
I'll check it on Monday. I am too busy this week.
Sorry for the inconvenience.

from mtproto.

shelomentsevd avatar shelomentsevd commented on August 24, 2024

@amir-abbas I refactored Disconnect function and replaced allDone channel with WaitGroup, I think it should fix your problem. Let me know if you still have problem.

from mtproto.

amir-abbas avatar amir-abbas commented on August 24, 2024

@shelomentsevd
Hi there, in demo application, when we get EOF error and Reconnect process begin, this function
func (cli *TelegramCLI) Run() error {
log.Println("CLI Update cycle started")
UpdateCycle:
for {
select {
case <-cli.stop:
log.Println("Update cycle stoped")
break UpdateCycle
case <-time.After(updatePeriod):
cli.processUpdates()
}
}

log.Println("CLI Update cycle finished")
return nil

}

does not work

from mtproto.

shelomentsevd avatar shelomentsevd commented on August 24, 2024

@amir-abbas I think this is a telegramgo problem, not a mtproto lib.

from mtproto.

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.