Giter VIP home page Giter VIP logo

telegram's Introduction

Telegram S Edition Android App

This is second version of Telegram app.

Telegram S

This version based on open-source telegram-api, mtproto and tl-core libraries.

Building project

Build variants

There are multiple configurations of building app, some of them:

  1. gradle assembleDevDebug - Development build for IDE, recomended for daily usage
  2. gradle assembleCommonRelease - Release version for Google Play. Release versions need additional configuration for signing keys.
  3. gradle assembleCommonDebuggable - Release version with debugging enabled for testing
  4. gradle assembleBetaRelease - Builds beta-version of an app. Includes russian translations.
  5. gradle assembleMdpiRelease - Release version for MDPI devices
  6. gradle assembleHdpiRelease - Release version for HDPI devices
  7. gradle assembleXhdpiRelease - Release version for XHDPI devices
  8. gradle assembleXxhdpiRelease - Release version for XXHDPI devices
  9. gradle dist - Building release distributive
  10. gradle lightDist - Building release light version of distributive

Build from Sources

  1. Checkout sources with all submodules
  2. Select required build configuration and run required gradle command

Using from IDE

This sources are prepared for IntelliJ IDEA and Android Studio. Unfortunately IntelliJ IDEA has some bugs with gradle android projects, but i can't do something with this.

More information

####Telegram project

http://telegram.org/

Telegram api documentation

English: http://core.telegram.org/api

Russian: http://dev.stel.com/api

MTProto documentation

English: http://core.telegram.org/mtproto

Russian: http://dev.stel.com/mtproto

Type Language documentation

English: http://core.telegram.org/mtproto/TL

Russian: http://dev.stel.com/mtproto/TL

Licence

Project uses MIT License

telegram's People

Contributors

abomayar avatar alexgreg avatar ex3ndr avatar expectfun avatar nicogig avatar telegram-messenger avatar vitocovader avatar yener90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

telegram's Issues

Share receiver not working.

I'm using Telegram S 1.3.1010 on Android 4.4.2.

When using Android's share feature (ACTION_SEND, I believe) from any app Telegram's receiver doesn't work. It does appear on the applications list and opens Telegram to select the conversation, I select the conversation and it does nothing but opens that conversation. This behavior applies to any kind of content.

Gradle assembleDevDebug change signing key

Hey!

When I enter Gradle assembleDevDebug in command line and get the app built, it says that my signing key is soon going not to be valid anymore.

How can I Change the signing key?

Thanks

TelegramApi class occupies the RAM – (Memory Optimization)

Actually, when I create a new object from TelegramApi previous one does not close while even I call system.gc() and when I create many objects from that it occupies much memory (until more than 1gb depends on number of objects). Is there any way to close and release used memory of previous object when I want create new one? Or use just one object but change the ApiState? (I tried to do that, but it didn't work…)
thanx in advance..

Feature request: Search chat text

It would be great to have basic search/highlight functionality on the conversation window; it can come in really handy when you need to find bits of information on chat logs.

Separate contact groups

For example, I have over 100 contacts, I want to set a tone for family, one for work, etc. now have to do one, if you could put together different groups and assign a tone to each group would be much easier

Call and send SMS actions from Contact Details view.

The Contact details view shows contact's number and 'message' icon, just like Whatsapp, but unlike Whatsapp they don't trigger Call and Send SMS actions (to be handle by another app).

This feature is quite useful (so useful that Whatsapp includes the Call action directly from the chat Spinner), it would be cool to have this feature in Telegram. :D

Zipalign the APK

Hello!

How can I zipalign the APK when I use gradle build?

Thanks

Gradle 1.11 Configuration with name 'default' not found

I tried building Telegram S in Gradle, but with Gradle 1.8, 1.9 and 1.10 I got an "Could not create plugin of type AppPlugin" error, but with Gradle 1.11, I got a Configuration with Name 'default' not found.

I tried gradle assembleCommonRelease, gradle dist and gradle assembleDevDebug but nothing worked. Where is the error?

[BUG] to delete messages

If the last message of a chat is cleared, this still appears in the preview window of the general

Can we use this code source for P2P app ?

Hello Stepan @ex3ndr ,
First of all , congrats for the nice job based on Telegram.
Can one use this source code to build an APP for P2P ? Imagine that i want to build a P2P community where people can find other people to help them fix things : eg. i am looking for a plumber , i need community members to advice one who is already member of the community?

Also, could this app use SMS gateway to notify users with urgent messages if they are not online?

How can we also build an open source app for hospitals to connect doctors togother and have notifications when they have patients...

I hope that my questions are clear enough :).
Many thanks

android.view.InflateException: Binary XML file line #44: Error inflating class Button

when i click on "Start messaging" it it shows edit number dialog. from dialog when i click "Edit" it gives me error as "unfortunately telegram has stopped". please find log cat error as...

E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.telegram.android.beta, PID: 9347
android.view.InflateException: Binary XML file line #44: Error inflating class Button
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at org.telegram.android.fragments.AuthFragment.onCreateView(AuthFragment.java:94)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1500)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:927)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:440)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/st_btn_grey.xml from drawable resource ID #0x7f0200f0
at android.content.res.Resources.loadDrawable(Resources.java:2096)
at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
at android.view.View.(View.java:3554)
at android.widget.TextView.(TextView.java:623)
at android.widget.Button.(Button.java:107)
at android.widget.Button.(Button.java:103)
at org.telegram.android.ui.FontController.loadButtonView(FontController.java:123)
at org.telegram.android.ui.FontController$ViewFactory.onCreateView(FontController.java:140)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
at org.telegram.android.fragments.AuthFragment.onCreateView(AuthFragment.java:94) 
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1500) 
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:927) 
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104) 
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682) 
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467) 
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:440) 
at android.os.Handler.handleCallback(Handler.java:733) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5001) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
at dalvik.system.NativeStart.main(Native Method) 
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f0200f2
at android.content.res.Resources.getValue(Resources.java:1123)
at android.content.res.Resources.getDrawable(Resources.java:698)
at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:176)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:937)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
at android.content.res.Resources.loadDrawable(Resources.java:2092)
at android.content.res.TypedArray.getDrawable(TypedArray.java:602) 
at android.view.View.(View.java:3554) 
at android.widget.TextView.(TextView.java:623) 
at android.widget.Button.(Button.java:107) 
at android.widget.Button.(Button.java:103) 
at org.telegram.android.ui.FontController.loadButtonView(FontController.java:123) 
at org.telegram.android.ui.FontController$ViewFactory.onCreateView(FontController.java:140) 
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
at org.telegram.android.fragments.AuthFragment.onCreateView(AuthFragment.java:94) 
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1500) 
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:927) 
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104) 
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682) 
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467) 
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:440) 
at android.os.Handler.handleCallback(Handler.java:733) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5001) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
at dalvik.system.NativeStart.main(Native Method) 
I/GAV3: Thread[GAThread,5,main]: No campaign data found.
D/T|ContactsSync: User not logged in, delaying sync: contactsPreSync
I/Crashlytics: Crashlytics report upload complete: 592D6444007D-0001-2483-A9A3D71BB69D.cls
W/T|BackgroundSync: Sync failure: sendLog
W/T|BackgroundSync: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at org.telegram.android.core.background.sync.BaseSync.performSync(BaseSync.java:180)
at org.telegram.android.core.background.sync.BaseSync$SyncHandler.handleMessage(BaseSync.java:265)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: org.telegram.api.engine.TimeoutException
at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:369)
at org.telegram.api.engine.TelegramApi.doRpcCallNonAuth(TelegramApi.java:428)
at org.telegram.api.engine.TelegramApi.doRpcCallNonAuth(TelegramApi.java:420)
at org.telegram.android.core.background.sync.BackgroundSync.sendLog(BackgroundSync.java:337)
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at org.telegram.android.core.background.sync.BaseSync.performSync(BaseSync.java:180) 
at org.telegram.android.core.background.sync.BaseSync$SyncHandler.handleMessage(BaseSync.java:265) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.os.HandlerThread.run(HandlerThread.java:61) 

I checked all xml resources all are there in project drawable
Please help me out...

delete

delete, accidentally posted on wrong repo

TLConfig Missing

hi
i have some problem
i cant find some package like
import org.telegram.api.TLConfig;
or
import org.telegram.api.TLAbsUpdates;
import org.telegram.api.TLConfig;
import org.telegram.api.TLInputPeerChat;
import org.telegram.api.TLInputPeerContact;
import org.telegram.api.TLUpdateShortChatMessage;
import org.telegram.api.TLUpdateShortMessage;
import org.telegram.api.auth.TLAuthorization;
import org.telegram.api.auth.TLSentCode;

where can i download them

Service not startable from Notifications.java

Hello!

I would like to build the App in Android Studio. I added the V4 Support Librarys in the Projects which Needed it but the main package requires ActionBarSherlock. How can I add ActionBarSherlock into the Project?

Thanks for your help

Florent1510

Send Broadcast Message Error

Hi
i want to send broadcast message but every time i call api.doRpcCallSide or api.doRpcCall, i get NO_CONTACT error! contacts contains at least 4 numbers.

This is the code :

TLVector vector = new TLVector();
for(TContact c:contacts){
TLInputUserContact vvv = new TLInputUserContact(c.get_uid());
vector.add(vvv);
}
TLAbsInputMedia media = new TLInputMediaEmpty();
TLRequestMessagesSendBroadcast broadcast = new TLRequestMessagesSendBroadcast(vector, msg, media);
api.doRpcCallSide(broadcast, 10000);

"No network connection. Please try again." activation issue

Hi, thanks for your sharing this project. I downloaded and built the lasted master branch. However, after installing to a phone, I can not register. When trying to register a new phone number, it always complains "No network connection. Please try again.". My phone network connection on all other apps is just fine.

Any help?

IS TELEGRAM S DEAD?

I've followed the development of Telegram N (Official client) and Telegram S (this one) since early this year, and I thought both projects got abandoned by their respective developers, but some weeks ago @DrKLO updated Telegram N's dev branch and now we have the new update (version 1.5.4) ready to use in the Market.

I thought @ex3ndr will do the same and users of Telegram S (me included) would get some update, but I really don't see any movement here since April, in none of the different branches.

So, my question is: Is Telegram S' development dead? Or is @ex3ndr taking his time to release a big update? Is it gonna be continued?

I think everyone here involved with this project is asking himself that question as well. So, what's gonna be?

The possible answers leads me to some new questions:

  1. If Telegram S is not gonna be developed, is there any chance that community here takes the lead left by ex3ndr?
  2. If Telegram S is going to receive updates, is there any way we can help in order to release the developers from some loads of work?

Thank you.

API_ID_INVALID in new update telegram

hi dear
new api_id in https://my.telegram.org/auth is 6 digit when set in project
error is
Method: auth.sendCode
Url: N/A
Result: {"_":"rpc_error","error_code":400,"error_message":"API_ID_INVALID"}
but old api_id (5 digit and low ) is ok and not problem
plz help me to set new api_id?!!
for example this hash and id
33dcb8a2f5081aa3515dc59753ddbabb
152072

Several things on UI

Hi first I want to thank you. This app is much better than the official.

Just a few things:

  • The appearance menu entry is redundant and could be omitted for a more clean UI
  • "Revoke sessions" is more relevant to the paragraph "ACCOUNT"
  • I miss the search web photos feature claimed to be implemented in the store: "you can [...], send multiple photos from the web, [...]". This feature is incredible. iOS has it. Unbelievable how much fun this is.
  • I miss the cool cyan/white theme showed in the pictures in the play store.
  • You could make the initial directory for the document search to the sd card and include ".." in the list. I guess 99.9% of users wont send systemfiles around.
  • Thumbnails in this list would be cool.
  • A confirmation for sending photos from gallery would be fine.
  • It would be fine to have the choice on where to save documents. Generally a folder "Telegram" at the root of the sdcard with all media in it would be fine.

If that's fine for you I would like to contribute some things in the beginning of april.

Further things will follow. 😄

Greater control groups

There are two important issues that are not being given:
1_ the creator (or designee) is the only one with permission to change name and avatar of a group
2_ the creator (or designee) is the only one with permission to add a bot to the group

Grouped notifications

Would it be possible to have grouped notifications for more than one active conversation?
At the moment, the notification for Telegram only shows the latest message, rather than alerting that there is more than one message across multiple conversations.

Maybe something like this:

12 new messages

  • 1 new message from Bob
  • 10 new messages from Dave
  • 1 new photo from Hot Chick

Sync Session Notifications

Hello, is it possible to have synced notifications between devices? I mean for example tdesktop and android. It makes me pretty sad to have my phone receiving a notify for every message i get on desktop client :(
Btw thank you for the great app!

connecting error

How to solved connecting error when first registration in telegram app. I write my phone number for get code, but i don't get it. Message show "connection error"

Login

Hi, I can't understand the login process the second time that the user does it.
Wich API call should I do when the user has already signin with the sms code?

[Improvement] Ask confirmation before share contact info

Hi there! Something that happened to me a couple of times is that, when I talk to people who I don't have their numbers through Telegram, I accidentally tap over Share contact info button, sharing my number with extrangers. So it would be a good thing that Telegram ask for your confirmation before doing it.

What do you think? 😄

[BUG] Audio notes

When sending audio notes the end is cut
Tested in S3 mini (CM11), Galaxy Chat B5330 (stock) and Motorola PRO (stock)

Feature request: geo intent on location click

At the moment the app starts its own map view when a user clicks on a location message. This is not very useful. How about sending a geo intent that users can use other maps apps (like Google maps/navigation or whatever)?
The own map view could be part of the intent receivers list, for example.

Copy message from other channel

Hi
Sorry,I have a question about your project(telegram).
Can I get the message channels that I'm not their admin?
I want write a script that read message from other chanel and write to
my chanel.
I can do it?
best regards
thanks

Update beta version

It would be good to update the beta version with the corrections to be doing

Add to F-Droid

Could you please distribute this app in the F-Droid repository?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.