2022-02-07 15:53:20 +00:00
# Nagram
Nagram is a third-party Telegram client based on [NekoX ](https://github.com/NekoX-Dev/NekoX ) with some modifications.
- Official Site: < https: // nextalone . xyz >
- Telegram Update Channel: < https: // t . me / nagram_channel >
- Releases: < https: // github . com / NextAlone / Nagram / releases >
- Issues here: < https: // github . com / NextAlone / Nagram / issues >
## Additional feature over NekoX
2022-03-18 10:38:02 +00:00
1. Nice icon
2022-02-07 15:53:20 +00:00
1. Combine message
2022-03-18 10:38:02 +00:00
1. Editable text style
1. Forced copy
1. Invert reply
1. Quick reply in longClick menu
1. Undo and Redo
2022-02-07 15:53:20 +00:00
----
## API and Protocol documentation
Telegram API manuals: < https: / / core . telegram . org / api >
MTproto protocol manuals: < https: / / core . telegram . org / mtproto >
## Compilation Guide(By NekoX-dev)
2013-10-25 15:55:11 +00:00
2020-11-04 12:43:49 +00:00
**NOTE: Building on Windows is, unfortunately, not supported.
Consider using a Linux VM or dual booting.**
**Important:**
2022-02-07 15:53:20 +00:00
1. Checkout all submodules
2021-10-30 12:48:17 +00:00
```
2022-02-28 13:40:41 +00:00
git submodule update --init --recursive
2021-10-30 12:48:17 +00:00
```
2022-02-07 15:53:20 +00:00
2. Install Android SDK and NDK (default location is $HOME/Android/SDK, otherwise you need to specify $ANDROID_HOME for it)
2020-11-04 12:43:49 +00:00
2021-03-05 09:44:33 +00:00
It is recommended to use [AndroidStudio ](https://developer.android.com/studio ) to install.
2020-11-04 12:43:49 +00:00
2022-02-07 15:53:20 +00:00
3. Install golang and yasm
2020-11-04 12:43:49 +00:00
```shell
2022-02-28 13:40:41 +00:00
apt install -y golang-1.16 yasm
2020-11-04 12:43:49 +00:00
```
2022-02-07 15:53:20 +00:00
4. Install Rust and its stdlib for Android ABIs, and add environment variables for it.
2020-11-04 12:43:49 +00:00
It is recommended to use the official script, otherwise you may not find rustup.
```shell
2021-01-16 16:25:30 +00:00
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
2020-11-04 12:43:49 +00:00
echo "source \$HOME/.cargo/env" >> $HOME/.bashrc && source $HOME/.cargo/env
2021-01-16 16:25:30 +00:00
2021-03-20 04:22:12 +00:00
rustup install $(cat ss-rust/src/main/rust/shadowsocks-rust/rust-toolchain)
2021-04-10 18:15:12 +00:00
rustup default $(cat ss-rust/src/main/rust/shadowsocks-rust/rust-toolchain)
2020-11-04 12:43:49 +00:00
rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
```
2022-02-07 15:53:20 +00:00
This step can be skipped if you want to build a `mini` release.
2020-06-26 04:54:48 +00:00
2022-02-07 15:53:20 +00:00
5. Build native dependencies: `./run init libs`
6. Build external libraries and native code:
2020-06-26 04:54:48 +00:00
2022-02-07 15:53:20 +00:00
For full release:
2020-06-26 04:54:48 +00:00
2022-02-07 15:53:20 +00:00
uncomment lines in settings.gradle
2020-06-26 04:54:48 +00:00
2022-02-07 15:53:20 +00:00
`./run libs update`
2020-06-26 04:54:48 +00:00
2022-02-07 15:53:20 +00:00
For mini release:
2020-06-26 04:54:48 +00:00
2022-02-07 15:53:20 +00:00
```
./run libs v2ray
./run libs native # libtmessages.so
```
2021-02-04 11:20:05 +00:00
2022-02-07 15:53:20 +00:00
1. Fill out `TELEGRAM_APP_ID` and `TELEGRAM_APP_HASH` in `local.properties`
2. Replace TMessagesProj/google-services.json if you want fcm to work.
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.
2021-02-04 11:20:05 +00:00
2022-02-07 15:53:20 +00:00
`./gradlew assemble<Full/Mini><Debug/Release/ReleaseNoGcm>`
2021-02-04 11:20:05 +00:00
2022-02-07 15:53:20 +00:00
----
2021-02-04 11:20:05 +00:00
2021-03-05 09:44:33 +00:00
## Localization
2020-01-09 21:04:13 +00:00
2022-02-07 15:53:20 +00:00
Nagram is forked from Telegram, thus most locales follows the translations of Telegram for Android, checkout < https: / / translations . telegram . org / en / android / > .
2014-03-13 18:21:38 +00:00
2022-02-07 15:53:20 +00:00
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/ ).
2014-03-13 18:21:38 +00:00
2022-02-07 15:53:20 +00:00
## Thanks
2021-04-05 20:15:31 +00:00
2022-02-07 15:53:20 +00:00
- [NekoX ](https://github.com/NekoX-Dev/NekoX )
2022-03-20 10:56:54 +00:00
- [Nekogram ](https://gitlab.com/Nekogram/Nekogram )
2022-02-07 15:53:20 +00:00
- [Pigeongram ](https://gitlab.com/JasonKhew96/Nekogram )
- [Nullgram ](https://github.com/qwq233/Nullgram )
2022-03-20 10:56:54 +00:00
- [OwlGram ](https://github.com/OwlGramDev/OwlGram )