Aliaksei Levin

Results 707 comments of Aliaksei Levin

The photo's width and height must not exceed 10000 in total.

This is unrelated to Bot API. The error 400 for the provided link is absolutely correct.

You can build TDLib for any platform that is supported by React Native. You need just to load and use the prebuilt shared library in React Native project.

You need to just wrap TDLib JSON interface, containing only 5 methods in pure C, using Native module: https://reactnative.dev/docs/native-modules-android.html.

@Ilya93 TDLib JSON interface: https://github.com/tdlib/td/blob/master/td/telegram/td_json_client.h.

You can use our Java example to build the library for Android yourself. It could be used almost without modifications. You can also download prebuilt Android library available at http://core.telegram.org/tdlib/tdlib.zip.

What instructions you have followed?

To build TDLib for Android you need to use [Android NDK](https://developer.android.com/ndk/index.html). You can use JNI bindings from Java example, but CMakeLists.txt should be adopted to build everything using NDK.

We will publish example project later.

You haven't specified databaseDirectory available for writing in setTdlibPatameters.