Comments (8)
@Arman92 As far as I can see, code is generated only for td_api.tl and not for telegram_api.tl.
Is there any workaround to call a method from telegram_api?
from go-tdlib.
As far as I know, you can only call methods from tdlib api, not the legacy telegram api (i.e. mtproto protocol).
Why would you want to use the legacy methods? Telegram Tdlib has a complete set of methods for every use case.
from go-tdlib.
all wrong.
tdlib is high-level wrapper over low-level mtproto.
So mtproto is not legacy.
from go-tdlib.
all wrong.
tdlib is high-level wrapper over low-level mtproto.
So mtproto is not legacy.
Ok, I misunderstood. but I don't think you can call low level mtproto methods over tdlib.
from go-tdlib.
Ok, I misunderstood. but I don't think you can call low level mtproto methods over tdlib.
sure
from go-tdlib.
@Arman92, @zelenin Please take a look at tdlib's GetContactsStatusesQuery
class. It is used to get statuses by tdlib's ContactsManager using contacts.getStatuses
method from telegram_api.tl
.
tdlib automatically generate code from both td_api.tl
and telegram_api.tl
. Generated code can be found in your ./td/generate/auto/td/telegram/
.
So I think it should be possible to use this api too. Any thoughts?
from go-tdlib.
So I think it should be possible to use this api too.
Why do you think so?
from go-tdlib.
Tdlib json bindings library offers only the methods it declares in td_api.tl.
I'm closing this issue, if you think otherwise please do share with us.
from go-tdlib.
Related Issues (20)
- Is it possible to save session to string
- TDLib v1.8.0 support? HOT 1
- Struct member User.ID should be int64, not int32
- README building instruction does not work for latest tdlib HOT 2
- gcc and tdlib build on windows ( instruction ) HOT 1
- addProxy timeout
- Can't get past auth stage HOT 1
- Is it possible to use .session + .json?
- Valid api_id must be provided. Can be obtained at https://my.telegram.org
- send photo or video question
- Unable to download files > 17MB HOT 1
- Build in docker HOT 7
- Implicit declaration of function
- error /usr/bin/ld: cannot find -lc++ HOT 10
- Where should I clone and build the Tdlib repo?
- "Library not found" error on macos system HOT 1
- ChatMember problem
- cannot unmarshal object into Go struct field .last_message of type tdlib.MessageSender
- Missing -lstdc++ in sources
- UPDATE_APP_TO_LOGIN error when i try to register new session
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 go-tdlib.