| 6 | - Telegram Update Channel: <https://t.me/nagram_channel> |
| 7 | - Releases: <https://github.com/NextAlone/Nagram/releases> |
| 8 | - Issues here: <https://github.com/NextAlone/Nagram/issues> |
| 9 |
| 10 | ## Additional feature over NekoX |
| 11 |
| 12 | 1. Nice icon (thanks to MaitungTM) |
| 13 | 2. Combine message |
| 14 | 3. Editable text style |
| 15 | 4. Forced copy |
| 16 | 5. Invert reply |
| 17 | 6. Quick reply in longClick menu (thanks to @blxueya) |
| 18 | 7. Undo and Redo |
| 19 | 8. Scrollable chat preview (thanks to TeleTux) |
| 20 | 9. Noise suppress and voice enhance (thanks to ) |
| 21 |
| 22 | ---- |
| 23 |
| 24 | ## API and Protocol documentation |
| 25 |
| 26 | Telegram API manuals: <https://core.telegram.org/api> |
| 27 |
| 28 | MTproto protocol manuals: <https://core.telegram.org/mtproto> |
| 29 |
| 30 | ## Compilation Guide(By NekoX-dev) |
| 31 |
| 32 | **NOTE: Building on Windows is, unfortunately, not supported. |
| 33 | Consider using a Linux VM or dual booting.** |
| 34 |
| 35 | **Important:** |
| 36 |
| 37 | 1. Checkout all submodules |
| 38 |
| 39 | ``` |
| 40 | git submodule update --init --recursive |
| 41 | ``` |
| 42 |
| 43 | 2. Install Android SDK and NDK (default location is $HOME/Android/SDK, otherwise you need to specify $ANDROID_HOME for it) |
| 44 |
| 45 | It is recommended to use [AndroidStudio](https://developer.android.com/studio) to install. |
| 46 |
| 47 | 3. Install golang and yasm |
| 48 |
| 49 | ```shell |
| 50 | apt install -y golang-1.16 yasm |
| 51 | ``` |
| 52 |
| 53 | 4. Install Rust and its stdlib for Android ABIs, and add environment variables for it. |
| 54 |
| 55 | It is recommended to use the official script, otherwise you may not find rustup. |
| 56 |
| 57 | ```shell |
| 58 | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y |
| 59 | echo "source \$HOME/.cargo/env" >> $HOME/.bashrc && source $HOME/.cargo/env |
| 60 |
| 61 | rustup install $(cat ss-rust/src/main/rust/shadowsocks-rust/rust-toolchain) |
| 62 | rustup default $(cat ss-rust/src/main/rust/shadowsocks-rust/rust-toolchain) |
| 63 | rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android |
| 64 | ``` |
| 65 |
| 66 | This step can be skipped if you want to build a `mini` release. |
| 67 |
| 68 | 5. Build native dependencies: `./run init libs` |
| 69 | 6. Build external libraries and native code: |
| 70 |
| 71 | For full release: |
| 72 |
| 73 | uncomment lines in settings.gradle |
| 74 |
| 75 | `./run libs update` |
| 76 |
| 77 | For mini release: |
| 78 |
| 79 | ``` |
| 80 | ./run libs v2ray |
| 81 | ./run libs native # libtmessages.so |
| 82 | ``` |
| 83 |
| 84 | 1. Fill out `TELEGRAM_APP_ID` and `TELEGRAM_APP_HASH` in `local.properties` |
| 85 | 2. Replace TMessagesProj/google-services.json if you want fcm to work. |
| 86 | 3. Replace release.keystore with yours and fill out `ALIAS_NAME`, `KEYSTORE_PASS` and `ALIAS_PASS` in `local.properties` if you want a custom sign key. |
| 87 |
| 88 | `./gradlew assemble<Full/Mini><Debug/Release/ReleaseNoGcm>` |
| 89 |
| 90 | ---- |
| 91 |
| 92 | ## Localization |
| 93 |
| 94 | Nagram is forked from Telegram, thus most locales follows the translations of Telegram for Android, checkout <https://translations.telegram.org/en/android/>. |
| 95 |
| 96 | Is Nagram not in your language, or the translation is incorrect or incomplete? Get involved in the translations on our [Weblate](https://hosted.weblate.org/engage/nekox/). |
| 97 |
| 98 | ## Thanks |
| 99 |
| 100 | - [NekoX](https://github.com/NekoX-Dev/NekoX) |
| 101 | - [Nekogram](https://gitlab.com/Nekogram/Nekogram) |
| 102 | - [Pigeongram](https://gitlab.com/JasonKhew96/Nekogram) |
| 103 | - [Nullgram](https://github.com/qwq233/Nullgram) |
| 104 | - [TeleTux](https://github.com/TeleTux/TeleTux) |
| 105 | - [OwlGram](https://github.com/OwlGramDev/OwlGram) |
| 106 |
| 107 |