How can I modify telegram SMS verification text content to MyAppName code xxxxx instead of Telegram code xxxxx?
This is not Possible. The SMS is sent by Telegram Servers to your prospective users mobile phone.
You're Telegram Client/ Telegram code simply initiates this interaction via the following request:
https://core.telegram.org/method/auth.sendSms
auth_sendSms#da9f3e8 phone_number:string phone_code_hash:string = Bool
Notice that there is no room for customizing this.
Although this does not solve the problem directly, I think it is an okay workaround.
Intercept incoming SMS and check if it is from Telegram.
If it is read the SMS and delete it right there if it is not let it pass by the default SMS app.
Parse the SMS for the verification code and input it automatically to your verification text field.
You probably thought of this already :)
PS: If you like this approach you can learn more about implementing it with this awesome tutorial.
Related
Im just wondering, it is possible send sms to gmail without internet and action send like gmail. i want is when user input the data . then click the "SEND" button
it will automatically send. skip the action using like GMAIL,etc.
then when receive data from gmail, it will automatically generated/inserted from my excel.
I need is SMS only consume to send data, not INTERNET.
You cant sorry:(
Email work on the internet that's the whole point :P
You could do it if your on an Intranet having your own email network, but that wont work with gmail because you have to talk to that guy who isn't really present there, like making a call on a landline unless there is a connection between the two of you, you cant make the call :)
My idea: have an hook to force Android to call a function of my App before an SMS will be sent.
What I want to do is to ask the user (that wrote the SMS using an arbitrary App or the standard App) if he wants to send the SMS using GSM (= normal way) or an other provider over Internet.
Is it possible? I found some information about ContentObserver, but I'm not sure how I can cancel the send of the "normal GSM send" after I sent the SMS via Internet...
Thanks for any help!
Luca
There is no such hook available to call your app function before sending the SMS. You may have to customise Android framework to achieve this.
I am trying to get my app id from Telegram API by using the method register.saveDeveloperInfo, but I cannot find the way to do it.
I'm using de MTProto Java library.
This is what I had done by now:
I made my own register.saveDeveloperInfo implemmentation in Java.
I call the method with the corrects params (https://core.telegram.org/api/obtaining_api_id)
The method returns a true boolean but I have not received the sms with my app_id.
When I enter in my app section of the telegram web (https://core.telegram.org/myapp) shows the "Your app is not ready yet" message.
Anyway, I'm trying to use the app_id from the source code of the official client but I can't send or receive message.
Does anyone know how to do it or where can I find more information?
You can get your app api_id and app api_hash from your Telegram app page. This is what you'll be using as of this writing. If you are asked a password, provide the mobile phone number you'll be using to develop and Telegram will send you the password.
If you are asked a password and Telegram didn't send it to you, try to provide the mobile phone number without "+".
Try disabling any anti-spam software or VPN. Disabling ABP for https://my.telegram.org/apps helped me
I am writing an Android application that needs to communicate via sms. So for example application will send a message "Hi" to number 123, when number 123 receives the message it will be parsed on their phone by my application and acted on if it was determined to have been sent by my app.
Now I have the sending and receiving/parsing of messages working perfectly but I need a way to identify that the message was sent by my app. I could easily semd the message as "appName:hi" and check to see if the body contains 'appName' but the problem is if the user who receives my message doesn't have my app I would prefer if they just saw "Hi". So I was wondering if theres a way for example to send invisible characters or set some other identifying information either in the sms body or as part of the sms itself ie header. I would like to avoid data sms if possible and my app is intended to be offline.
Any ideas how I could accomplish this?
You can specify port when sending SMS. I do not know how to do this with Android API but since this feature has being supported for years by J2ME Android must support it too.
Your application should listen to this port and send to the same port. So, if user already has your application I think he even will not see the message in his inbox. At least this was the behavior in J2ME. If however he does not have the application yet he will either see it in inbox or will not see it at all. Check this with android. As far as I remember in J2ME it depends on the phone model.
I’ve built an app for a client that basically sends a standard pre written SMS to the client of my client’s phone asking for them to get in contact. Now the client would like to be able to send a pre recorded voice message to an answering service with the touch of a button, can this be done, firstly from an Android phone.
I’m guessing it can be done because when I search for an answer all I can find are apps that someone else has written that do just that.
Sometimes development tutorials can be hard to find when it comes to apps as you just get a long list of people trying to sell their apps…lol.
Does anyone know of such a tutorial?r
This is not an answer but maybe could help
I once wrote an application like that for a particular answering service for a particular provider in my country. To leave a message on their device I was basically required to compose an e-mail with a message recorded as an mp3 file and included as an attachment to the mail. I then send such mail to a specific mail address of their answering service. I had to supply credentials for the mail to be accepted. Such credentials (login/password) I obtained first by sending a specific port SMS to their service.
For composing mails with attachment I used an opensource IMAP client for Android (as a jar library added to my project). Don't rememeber which client it was but can find out.
I guess there's no common standard for that but basically all the answering services should do something similar.
Sorry if this info is too vague, I was just given the protocol of how that particular answering service was working and implemented accordingly.