Comments (6)
Hello, sorry for pushing you, just interesting if there are any updates for that issue?
from mtproto.
Hey @blez! Thanks for asking and ping for inactivity!
I researched this issue, Here is whats happen:
So, TL schema has preeeety few types, including only bytestream and a few types of integers and floats (int32, uint32, int64, int128 and int256). Also it support custom crc codes for defining specific objects with specific decoding. See something wrong?
Yyyyeup, no single type for boolean, arrays, nulltype, etc. So, in TL, bool true and false are objects!
What's the problem? bool type cant implement Object
interface in any case in go. We try to fix it with adding specific struct InterfacedObject
in near future updates (until new year), which contains only interface{}
parameter and Unwrap
method, which is getting you native object (bool, slice, ar what you want)
P.S. If you want for faster responses, write us in telegram chat.
from mtproto.
@blez i'll tried to fix this bug, tests passed out, but in real life result ma be different, so i'll not close this issue yet.
If you have a few time, your feedback will be appreciated
from mtproto.
No, does not work
panic: got invalid response type: bool
goroutine 1 [running]:
github.com/xelaj/mtproto/telegram.(*Client).UploadSaveBigFilePart(0xc0001ef340, 0x47c3f6d0649b4e9, 0x7f00000000, 0xc000380000, 0x80000, 0x3f5e19a, 0x0, 0x0, 0x0)
/home/paval/go/pkg/mod/github.com/xelaj/[email protected]/telegram/methods_gen.go:9078 +0x20d
main.main()
exit status 2
from mtproto.
@blez could you please share your code in playground? Just want to understand in which context client panics
from mtproto.
@quenbyako
Something like this https://play.golang.org/p/zv6WaheNR_Y
But I'm not sure my code is an issue. Your lib can't "parse" bool
response
panic: got invalid response type: bool
goroutine 1 [running]:
github.com/xelaj/mtproto/telegram.(*Client).UploadSaveBigFilePart(0xc0001cf380, 0x6ce07ec8745d7a83, 0x7f00000000, 0xc000300000, 0x80000, 0x3f5e19a, 0x0, 0x0, 0x0)
exit status 2
from mtproto.
Related Issues (20)
- Recommend getting latest commit? HOT 1
- [BUG]: Cant Auth, seems like it's trying to make a IPv6 connection on IPv4 network/internet. HOT 20
- Should remove the panic? HOT 3
- misprint[BUG]: HOT 1
- [BUG]: Tdlib updated their public keys
- [BUG]: ban phone number during get_updates exaple
- [BUG]: Auth example error HOT 2
- [BUG]: AuthSignIn is not login to system
- [BUG]: sending AuthSendCode: UPDATE_APP_TO_LOGIN (code 406) HOT 3
- Error: Client doesn't have method HOT 2
- Function doesn't exist HOT 1
- [FEAT]: Move file /internal/session/interface.go from folder /internal
- [BUG]: Wrong comments in generated code HOT 1
- [BUG]: UserID is int64, not int32. updating to layer 133 HOT 4
- [BUG]: Non-working example. HOT 2
- IP white list method - amazon changer & checker - local server tunnel
- [FEAT]: telegram.NewClient not working HOT 2
- [BUG]: Unable to authenticate HOT 8
- [BUG]: Error on making auth key (Can't find fingerprint) HOT 2
- Error when using the GetDialog function
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.