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
Related
Im trying to connect my java project to my phone number, i already have the app_id and the hash generated by Telegram.
Im using https://github.com/rubenlagus/TelegramApi this library imported to my pom project, but im not understanding how can i use the app_id, ip and hash that telegram generated for me to authenticate and send a simple "hi" message.
AppInfo appInfo = new AppInfo(appId,"devicemodel","systemversion","appversion","langcode");
TelegramApi api = new TelegramApi(AbsApiState, AppInfo, ApiCallback);
I can initialize the variable AppInfo , i have de app_id, do i need to put real data(devicemodel,systemversion,appversion,langcode) to the rest of the required fields?
How can i intialize the Variables AbsApiState and ApiCallback ?
I searched many documentation and examples on the Internet, it is really simple to create a bot to communicate but i want to send message user to user, not bot to user in the future.
Thank you !
The library you have mentioned is for sending messages from bots you own. On the other hand api_id and api_hash are used for client apps for real users. It seems that you want to send a message as user, not a bot. You can't do it with this library.
I suggest using Telethon which is the best library I've ever used for your use case.
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.
I am developing a game app where I am using Facebook SDK login button to retrieve the friend list. I want to send an invite to challenge their peers on the app. So the app receives a request from someone that they want to be challenged.
I do not want to use the request Dialog that uses facebook notifications. I want my own app to receive the notification and notify the user for incoming challenge.
I did some research and I could use the NSD but unfortunately it only allows you to connect to people on the same network. I want to be able to connect to friends from far away. I heard you can use emails but I have not found any documentation.
If you can point me to the right direction I really appreciate it.
ok i suggest the below approach for what you are trying to achieve, use facebook sdk to get the user friend data, there will be an id and name in the response. you can use this facebook id to give people a unique id in your system. when people are wanting to challenge their friends you use their id from facebook friendlist and lookup in your system if these friends have registered/ install your application. if so you send a notification to them if not may be you suggest them to send them a email or sms with a uri to ask them to install the application. Try the Graph API Explorer to play around with the data you can get from the Graph API.
I want to send a User an email or SMS to his SmartPhone when an Alert happens on his desktop App.
How can I send an email WITHOUT supplying my log-in credentials within the App?
using smtp I need to provide my credentials, but as this is for a published application that does not sound like a good idea.
I understand this is a very general question, but I am having trouble finding a solution on the web.
I'm sorry, but you will not be able to do this, as the smtp server requires some sort of authentication, from which to send from
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.