How to share contact by telegram bot via query string - share

It is possible to send message via query string to any user by telegram bots, but i want to share a contact replace of sending a text message.
is it possible?
how can i do it?
thanks

Do you mean let bot send phone contacts to user?
If you mean that, you can try sendContact method instead of sendMessage.

Related

How can I send a form by email with titanium

I have seen the email dialog example and also the email dialog example, but I am not looking for an email client interface.
I also took a look at the pizza ordering app, and I couldn't find any method for the send button.
I have custom text fields and in the end I want to send the whole form to an email recipient. I can't find the way to do that.
That is, I would appreciate your help.
For sending E-mail from your app , you have these options :-
1- Using Titanium.UI.EmailDialog .
The Email Dialog is created with the Titanium.UI.createEmailDialog method. The user needs to register an e-mail account on the device in order to open the dialog. The dialog will not open when there is not a registered e-mail account.
Ex : Android
Read more http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.EmailDialog
But As you said you don`t want like this ! and if you want to send direct messages from your app please see these other options :-
2- Make any backend service like #PHP to send email
for ex:- http://www.w3schools.com/php/func_mail_mail.asp, and using Titanium.Network.HTTPClient to connect with your backend service .
3- Using ArrowDB
Enjoy !
Follow these steps,
1) Create webservice method to send email.
2) Call particular email method in the button click.
Note :
Apple will not approve if you don't provide valid reason to send email via webservice. They might think you are trying to spam users.
Create a web service (e.g. a PHP script) that receives POST data and send an email based on it.
In your app, clicking the button simply collects all the data and POST it to your web service.
You can not check this on emulator/simulator only can check on device. And in device you need to configure any email account like gmail or outlook mail.
var emailDialog = Ti.UI.createEmailDialog();
emailDialog.subject = "Hello from Titanium";
emailDialog.toRecipients = ['foo#yahoo.com'];
emailDialog.messageBody = '<b>Appcelerator Titanium Rocks!</b>';
var f = Ti.Filesystem.getFile('cricket.wav');
emailDialog.addAttachment(f);
emailDialog.open();

How to retrieve email address after the recipient click on a button inside email

I am working on a web apps with Asp.Net (C#) and I have a problem like this:
I will sent out an email for more than one person and there is a link in the email. If user click on the link I want to retrieve the email address of the respondent (as query string or whatever).
Is it possible?
How should I do?
Thanks in advance.
If you generate the emails dynamically, you can add a token to the url that is unique to each email address you send to. Your landing page will use the tokens to register a hit to a database.
On another note, please remember to handle information like email addresses with great care (i.e. securely), for example when storing them in a database.

how can I send emails from facebookmail to my app users?

i would like to send my app users an email from Facebookmail, i have received such email from another app and i would like to do the same for my app users.
the email I have received was from this sender
"apps+kr4m4XXXXX5x#facebookappmail.com"
can someone please advise how it can be done? ( I'm aware that i can send them email directly but im looking to send them directly from facebookmail..?)
* another point to mention is by clicking "unsubscribe" link on the email - this is the link :
http://www.facebook.com/n/?editaccount.php&notifications&block=376XXXXXX2389556&t=1366XXXXX53&l=b&mid=7ddd6d3G5af3eff255b6G0G27&bcode=1.136XXXXX853.AbkyMvZyA7-3FDDD&n_m=my_email#url.com
therefore I'm pretty sure it can be done....
anyone???
** ( the XXXXX i added in order not to recognize the sender )
Thanks
You Can use the REST API which will be deprecated. Unfortunately it's not possible to send emails via Facebook through GRAPH API.
https://developers.facebook.com/docs/reference/rest/notifications.sendEmail/
the link above is broken
it looks like this
https://api.facebook.com/method/notifications.sendEmail?recipients=USER_ID&subject=YOUR_SUBJECT&text=YOUR_EMAIL_BODY&callback=YOUR_CALLBACK_URL&access_token=YOUR_ACCESS_TOKEN_HERE

How send messages to the contact list numbers

I am working in new application and I am new to iphone.
I want to send a message to the person whom I have added from the contact list.
Is it possible?
Can you please give me some sample code or links.
For sending SMS through iPhone, it is required to have user authentication. So programmatically without and user interaction you cannot send an SMS
You need to see this to get a better idea:
How to programmatically send SMS on the iPhone?
also see:
MFMessageComposeViewController

Send email with content without using webservice in iPhone app

In my app I need to send the email to the mail id provided by the user with predefined content.
This has to be done internally without the interaction of the user i.e, as soon as user enters email id in the provided textfield and clicks send button, the mail with content has to sent to that mail-id.
Can this be done without using any webservice. Please help me out in this.
Thanks in advance,
Hanu
I have achieved this with SMKSMTPMessage - a library that allows you to send an email with attachments if required from code, without any user interaction required