andrew-ld / PWRTelegram

PWRTelegram 5.10 - a client for bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PWRTelegram - a client for bot

Bitcoin 18FFke142Ppvt3xPgQA1MJjkkKznAhTuYy

Current Maintainers

Building

NOTE: Building on Windows is, unfortunately, not supported. Consider using a Linux VM or dual booting.

  1. You need the Android NDK (r19c), Go(Golang) and Ninja to build the apk.

  2. Don't forget to include the submodules when you clone:

    • git clone --recursive https://github.com/andrew-ld/PWRTelegram.git
  3. Build native dependencies:

    • Go to the TMessagesProj/jni folder and execute the following (define the paths to your NDK and Ninja):
    export NDK=[PATH_TO_NDK]
    export NINJA_PATH=[PATH_TO_NINJA]
    ./build_ffmpeg_clang.sh
    ./patch_ffmpeg.sh
    ./patch_boringssl.sh
    ./build_boringssl.sh
    
  4. If you want to publish a modified version of Telegram:

    • You should get your own API key here: https://core.telegram.org/api/obtaining_api_id and create a file called API_KEYS in the source root directory. The contents should look like this:
      APP_ID = 12345
      APP_HASH = aaaaaaaabbbbbbccccccfffffff001122
      
    • Do not use the name Telegram and the standard logo (white paper plane in a blue circle) for your app — or make sure your users understand that it is unofficial
    • Take good care of your users' data and privacy
    • Please remember to publish your code too in order to comply with the licenses

The project can be built with Android Studio or from the command line with gradle:

./gradlew assembleAfatRelease

About

PWRTelegram 5.10 - a client for bot

License:GNU General Public License v2.0


Languages

Language:Java 57.1%Language:C 32.4%Language:C++ 9.8%Language:Objective-C 0.5%Language:Assembly 0.2%Language:Makefile 0.0%Language:Shell 0.0%Language:Perl 0.0%