205 lines
9.6 KiB
Markdown
205 lines
9.6 KiB
Markdown
# NekoX
|
|
|
|
NekoX is an **free and open source** third-party Telegram client, based on Telegram-FOSS with features added.
|
|
|
|
[![Get it on F-Droid](https://i.imgur.com/HDicnzz.png)](https://f-droid.org/packages/nekox.messenger)
|
|
|
|
We are no longer able to update versions on the Play Store, check https://telegra.ph/So-they-solved-the-person-who-asked-the-question-04-28 .
|
|
|
|
- [Update News Telegram](https://t.me/NekogramX)
|
|
- [GitHub Feedback](https://github.com/NekoX-Dev/NekoX/issues)
|
|
- [Group Chat (English / Chinese)](https://t.me/NekoXChat)
|
|
- [Group Chat (Persian)](https://t.me/NekogramX_Persian)
|
|
- [Group Chat (Indonesia)](https://t.me/NekoxID)
|
|
- [Group Chat (Russian)](https://t.me/NekoXRussia)
|
|
- [Group Chat (Hindi)](https://t.me/NekoXHindi)
|
|
- [Group Chat (Turkish)](https://t.me/NekoXTurkish)
|
|
|
|
## NekoX Changes
|
|
|
|
- Most of Nekogram's features
|
|
- Unlimited login accounts
|
|
- OpenCC Chinese Convert
|
|
- Built-in VMess, Shadowsocks, SSR, Trojan-GFW proxies support
|
|
- Built-in public proxy list / Proxy subscription support
|
|
- Ipv6 MTProxy support
|
|
- Able to parse all proxy subscription format: SIP008, ssr, v2rayN, vmess1, shit ios app formats, clash config and more
|
|
- Proxies import and export, remarks, speed measurement, sorting, delete unusable nodes, etc
|
|
- Scan the QR code (any link, can add a proxy)
|
|
- The ( vmess / vmess1 / ss / ssr / trojan ) proxy link in the message can be clicked
|
|
- Built-in WebSocket relay support (Connect via Cloudflare CDN)
|
|
- Allow auto-disabling proxy when VPN is enabled
|
|
- Proxy automatic switcher
|
|
- Add stickers without sticker pack
|
|
- Allow disabling vibration
|
|
- Allow clicking on links in self profile
|
|
- Sticker set list backup / restore / share
|
|
- Full InstantView translation support
|
|
- Translation support for selected text on input and in messages
|
|
- Delete all messages in group
|
|
- Dialog sorting is optional "Unread and can be prioritized for reminding" etc
|
|
- Allow to skip "regret within five seconds"
|
|
- Unblock all users support
|
|
- Login via QR code
|
|
- Scan and confirm the login QR code directly
|
|
- Allow clearing app data
|
|
- Option to not send comment first when forwarding
|
|
- Option to use nekox chat input menu: replace record button with a menu which contains an switch to control link preview (enabled by default)
|
|
- Option to disable link preview by default: to prevent the server from knowing that the link is shared through Telegram.
|
|
- Option to ignore Android-only content restrictions (except for the Play Store version).
|
|
- OpenKeychain client (sign / verify / decrypt / import)
|
|
- Google Cloud Translate / Yandex.Translate support
|
|
- Custom cache directory (supports external storage)
|
|
- Custom app ID and Hash (optional NekoX / Android / Android X or Manual input)
|
|
- Custom server (official, test DC)
|
|
- Keep the original file name when downloading files
|
|
- View the data center you belong to when you don't have an avatar
|
|
- Proxies, groups, channels, sticker packs are able to shared as QR codes
|
|
- Force English emoji keywords to be loaded
|
|
- Add "@Name" when long-pressing @user option
|
|
- Enhanced notification service, optional version without Google Services
|
|
- Don't alert "Proxy unavailable" for non-current account
|
|
- Option to block others from starting a secret chat with you
|
|
- Allow creation of group without invite
|
|
- Option to upgrade group to supergroup
|
|
- Mark dialogs as read using tab menu
|
|
- Improved session dialog
|
|
- Improved link long click menu
|
|
- Improved hide messages from blocked users feature
|
|
- Text replacer
|
|
- Persian calendar support
|
|
- Option to disable trending
|
|
- Telegram X style menu for unpinning messages
|
|
- Built-in Material Design themes / Telegram X style icons
|
|
- Enabled set auto delete timer option for private chats and private groups
|
|
- Don't process cleanup draft events after opening chat
|
|
- Support saving multiple selected messages to Saved Messages
|
|
- Support unpinning multiple selected messages
|
|
- View stats option for messages
|
|
- And more :)
|
|
|
|
## Compilation Guide
|
|
|
|
**NOTE: Building on Windows is, unfortunately, not supported.
|
|
Consider using a Linux VM or dual booting.**
|
|
|
|
**Important:**
|
|
|
|
0. Checkout all submodules
|
|
```
|
|
git submodule init
|
|
git submodule update
|
|
```
|
|
|
|
1. Install Android SDK and NDK (default location is $HOME/Android/SDK, otherwise you need to specify $ANDROID_HOME for it)
|
|
|
|
It is recommended to use [AndroidStudio](https://developer.android.com/studio) to install.
|
|
|
|
2. Install golang ( 1.16 ).
|
|
```shell
|
|
# debian sid
|
|
apt install -y golang-1.16
|
|
```
|
|
|
|
3. Install Rust and its stdlib for Android ABIs, and add environment variables for it.
|
|
|
|
It is recommended to use the official script, otherwise you may not find rustup.
|
|
|
|
```shell
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
|
|
echo "source \$HOME/.cargo/env" >> $HOME/.bashrc && source $HOME/.cargo/env
|
|
|
|
rustup install $(cat ss-rust/src/main/rust/shadowsocks-rust/rust-toolchain)
|
|
rustup default $(cat ss-rust/src/main/rust/shadowsocks-rust/rust-toolchain)
|
|
rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
|
|
```
|
|
|
|
This step can be skipped if you want to build a `mini` release.
|
|
|
|
4. Build native dependencies: `./run init libs`
|
|
5. Build external libraries and native code:
|
|
|
|
For full release:
|
|
|
|
`./run libs update`
|
|
|
|
For mini release:
|
|
```
|
|
./run libs v2ray
|
|
./run libs native # libtmessages.so
|
|
```
|
|
|
|
9. Fill out `TELEGRAM_APP_ID` and `TELEGRAM_APP_HASH` in `local.properties`
|
|
10. Replace TMessagesProj/google-services.json if you want fcm to work.
|
|
11. 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.
|
|
|
|
`./gradlew assemble<Full/Mini><Debug/Release/ReleaseNoGcm>`
|
|
|
|
## FAQ
|
|
|
|
#### What is the differences between NekoX and Nekogram?
|
|
|
|
Developed by different developers, read the feature list above to understand the differences.
|
|
|
|
#### What is the difference between the Full and Mini version?
|
|
|
|
The full version comes with built-in proxy support for v2ray, shadowsocks, shadowsocksr, and trojan, which is usually provided to advanced users to help friends who have no computer knowledge in mainland China to bypass censorship. Don't complain about imperfect functions or ask to add other rare proxy types, you can use their clients directly.
|
|
|
|
#### What if I don't need a proxy?
|
|
|
|
Then it is recommended to use the `Mini` version.
|
|
|
|
#### What is the noGcm version?
|
|
|
|
Google Cloud Messaging, also known as gcm / fcm, message push service by google used by original Telegram android app, it requires your device to have Google Service Framework (non-free) installed.
|
|
|
|
#### I've encountered a bug!
|
|
|
|
First, make sure you have the latest version installed (check the channel, Play store versions usually have a delay).
|
|
|
|
Then, if the issue appears in the official Telegram client too, please submit it to the officials, (be careful not to show NekoX in the description and screenshots, the official developers doesn't like us!).
|
|
|
|
Then, please *detail* your issue, create an issue or submit it to our [group](https://t.me/NekoXChat) with #bug.
|
|
|
|
If you experience a *crash*, you also need to click on the version number at the bottom of the settings and select "Enable Log" and send it to us.
|
|
|
|
## Localization
|
|
|
|
Is NekoX 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/).
|
|
|
|
[![Translation status](https://hosted.weblate.org/widgets/nekox/-/horizontal-auto.svg)](https://hosted.weblate.org/engage/nekox/)
|
|
|
|
### Adding a new language
|
|
|
|
First and foremost, Android must already support the specific language and locale you want to add. We cannot work with languages that Android and the SDK do not support, the tools simply break down. Next, if you are considering adding a country-specific variant of a language (e.g. de-AT), first make sure that the main language is well maintained (e.g. de). Your contribution might be useful to more people if you contribute to the existing version of your language rather than the country-specific variant.
|
|
|
|
Anyone can create a new language via Weblate.
|
|
|
|
### Adding unofficial translations for Telegram
|
|
|
|
Current built-in language packs:
|
|
|
|
* 简体中文: [moecn](https://translations.telegram.org/moecn)
|
|
* 正體中文: [taiwan](https://translations.telegram.org/taiwan)
|
|
* 日本語: [ja_raw](https://translations.telegram.org/ja_raw)
|
|
|
|
You can [open an issue to](https://github.com/NekoX-Dev/NekoX/issues/new?&template=language_request.md) request to amend the built-in translation.
|
|
|
|
## Credits
|
|
|
|
<ul>
|
|
<li>Telegram-FOSS: <a href="https://github.com/Telegram-FOSS-Team/Telegram-FOSS/blob/master/LICENSE">GPLv2</a></li>
|
|
<li>Nekogram: <a href="https://gitlab.com/Nekogram/Nekogram/-/blob/master/LICENSE">GPLv2</a></li>
|
|
<li>v2rayNG: <a href="https://github.com/2dust/v2rayNG/blob/master/LICENSE">GPLv3</a></li>
|
|
<li>AndroidLibV2rayLite: <a href="https://github.com/2dust/AndroidLibV2rayLite/blob/master/LICENSE">LGPLv3</a></li>
|
|
<li>shadowsocks-android: <a href="https://github.com/shadowsocks/shadowsocks-android/blob/master/LICENSE">GPLv3</a></li>
|
|
<li>shadowsocksRb-android: <a href="https://github.com/shadowsocksRb/shadowsocksRb-android/blob/master/LICENSE">GPLv3</a></li>
|
|
<li>HanLP: <a href="https://github.com/hankcs/HanLP/blob/1.x/LICENSE">Apache License 2.0</a></li>
|
|
<li>OpenCC: <a href="https://github.com/BYVoid/OpenCC/blob/master/LICENSE">Apache License 2.0</a></li>
|
|
<li>opencc-data: <a href="https://github.com/nk2028/opencc-data">Apache License 2.0</a></li>
|
|
<li>android-device-list: <a href="https://github.com/pbakondy/android-device-list/blob/master/LICENSE">MIT</a> </li>
|
|
<li>JetBrains: for allocating free open-source licences for IDEs</li>
|
|
</ul>
|
|
|
|
[<img src=".github/jetbrains-variant-3.png" width="200"/>](https://jb.gg/OpenSource)
|