I do this:
Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_STREAM, uriSound); sendIntent.setType("audio/*"); startActivity(Intent.createChooser(sendIntent, "Отправить:")); It is sent as an audio recording, not as a voice message. I tried to dig into the source code of the Android telegram client, but it never came to anything. I understood that judging by AndroidManifest.xml , LaunchActivity.java understands the intent that came, and is written to the documentsPathsArray variable. Perhaps the telegram determines the type of some flag?
whatsapphas a difference between an audio file and a voice message, and inTelegramhow do you distinguish between the two? Any telegram audio files look the same, don't they? - McDaggenTelegram, but also inWhatsappandFacebook. I wonder if this is possible in android? - Tim