LuvLetter / Moegram-Plus

System Emoji characters and built-in proxy for Telegram.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moegram Plus

Telegram with native emoji and built-in proxy.

Download Moegram from Google Play

Visit releases page

Moegram channel: https://telegram.me/moegram

Thanks


Build Instructions

These instructions apply to both this repository (Moegram) and official Telegram for Android sources.

Dependencies

  • Android SDK
  • Android NDK
  • Android Studio

When on an OS X with Homebrew and Homebrew Cask, it's easy to install them:

brew install android-sdk android-ndk
brew cask install android-studio

DO NOT let Android SDK or Android Studio to install NDK on OS X, or you will end up in a mess of file permissions and build errors. DO install them using Homebrew or any package manager.

Create Project

  1. git clone Telegram repository to some path;
  2. Launch Android Studio, select "Import" from welcome page and select that path;
  3. Config code signing keys if needed;
  4. If Android Studio needs a Gradle sync, sync it;
  5. Android Studio will ask if you want to install missing dependencies (maybe once or twice). Install as instructed.

Build NDK Libraries

  1. Fire up a terminal;
  2. cd to project_root/TMessagesProj/jni;
  3. run ndk-build.

On build success, you will see the following files:

project_root/TMessagesProj/libs
├── armeabi
│   └── libtmessages.xx.so
├── armeabi-v7a
│   └── libtmessages.xx.so
└── x86
    └── libtmessages.xx.so

where xx is a version number.

Customize APK

Fill API keys

Find project_root/TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java.sample, copy it to BuildVars.java in the same folder, and fill all the API keys. That file is self-explainary.

Note:

  • If you need a debug version, set DEBUG_VERSION to be true. This will enable various debugging and logging functions.
  • Visit https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java for the most recent value of BUILD_VERSION. Telegram servers use this value to determine if certain type of messages are supported and send a fallback value if not. A wrong value may cause fatals since message types change day by day.
  • For HOCKEY_APP_HASH and HOCKEY_APP_HASH_DEBUG, you can use any random 32 digit HEX number (for example, the MD5 of any sentence you like) in string format if you don't want to use Hockey. A wrong length will cause fatal error.
  • Do not change GCM_SENDER_ID, or GCM will be completely unusable.

Edit Package Identifier and Version

Open project_root/TMessagesProj/build.gradle, add the following content before last }:

    productFlavors {
        some_name {
            applicationId "com.example.some_name"
            versionCode 123
            versionName '0.0.1'
        }
    }

then modify it on your needs.

Edit Name

Edit all string.xml in project_root/TMessagesProj/src/main/res/values*, modify the following line:

<string name="AppName">some_name</string>

Note: it may be faster using Translation Editor of Android Studio.

Build APK

  1. Ensure you have built NDK libraries;
  2. Select Build -> Generate Signed APK… from Android Studio.

Once you see a log entry like APK(s) generated successfully, find your APK under project_root/TMessagesProj/TMessagesProj-your_flavor_name-release.apk.


Telegram messenger for Android

Telegram is a messaging app with a focus on speed and security. It’s superfast, simple and free. This repo contains the official source code for Telegram App for Android.

##Creating your Telegram Application

We welcome all developers to use our API and source code to create applications on our platform. There are several things we require from all developers for the moment.

  1. Obtain your own api_id for your application.
  2. Please do not use the name Telegram for your app — or make sure your users understand that it is unofficial.
  3. Kindly do not use our standard logo (white paper plane in a blue circle) as your app's logo.
  4. Please study our security guidelines and take good care of your users' data and privacy.
  5. Please remember to publish your code too in order to comply with the licences.

API, Protocol documentation

Telegram API manuals: http://core.telegram.org/api

MTproto protocol manuals: http://core.telegram.org/mtproto

Usage

Beware of using the dev branch and uploading it to any markets, in many cases it not will work as expected.

First of all, take a look at src/main/java/org/telegram/messenger/BuildVars.java and fill it with correct values. Import the root folder into your IDE (tested on Android Studio), then run project.

Localization

We moved all translations to https://www.transifex.com/projects/p/telegram/. Please use it.

About

System Emoji characters and built-in proxy for Telegram.

License:GNU General Public License v2.0


Languages

Language:C 55.0%Language:Java 27.2%Language:C++ 11.8%Language:Perl 4.9%Language:Assembly 0.5%Language:CMake 0.4%Language:Objective-C 0.1%Language:Makefile 0.1%Language:Go 0.0%Language:Shell 0.0%