Comments (9)
Hi, @amir-abbas!
Pull request #7 should have fix this bug.
Do you still get error?
from mtproto.
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.
@amir-abbas we are working on it. You can use directly necessary DC right now.
from mtproto.
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.
@shelomentsevd @Lord-Protector
thanks for your effort but please check disconnect function.this function does not work correctly.
from mtproto.
Hi, @amir-abbas!
I'll check it on Monday. I am too busy this week.
Sorry for the inconvenience.
from mtproto.
@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.
@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.
@amir-abbas I think this is a telegramgo problem, not a mtproto lib.
from mtproto.
Related Issues (20)
- output order
- slice bounds out of range
- Handle File_Migrate_x error
- Configuration is anti-pattern.
- Split MTProto into two objects: network and mtproto HOT 1
- Unknown constructor: 1cb5c415
- Write new example tool or fix current HOT 1
- server error code -404 HOT 1
- how to get photo from message with Media type TL_Photo ? HOT 7
- MTProto 2.0
- How to send media? HOT 1
- Fatal Error on AuthSendCode: use of closed network connection HOT 2
- How do I search for channels and subscribe to them? HOT 1
- connection Error HOT 2
- Handle multiple sessions
- How to add scheduled_date HOT 2
- Library doesn't handle correctly connection closed by server HOT 1
- Invoke Method HOT 1
- Encode error on TL_auth_checkPassword
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtproto.