Telegram bot method SendContact not have add button - telegram-bot

I use the telegram bot api method SendContact for sharing contacts to user.
Telegram.Bot.Api Bot = GetTelegramBot();
Bot.SendContact(chatID, phone, "FirstName");
The message with contact is sent, but it hasn't an add button. Is it possible to realize an add button in this process and when user press it, then the recieved contact would be added to his contacts list?

Related

Hello Bar webhook Integration with coldfusion

I am using hellobar popup on my website. Hello bar popup has a contact form with email field. A user comes to site and provide its email to subscribe. Then hello bar sends that information of user to the owner of using email tools and webhook. I have created a webhook URL which triggers nicely when a user submits the form but it never sent any data. I am supposed to have JSON response but it is always empty.

Telegram send message with clickable bot command

I'm writing a bot in telegram (using c#).
I want the bot to send message to a user with a list of clickable links. When user presses such a link, the client should post this command back to the bot. It should look like this (example from #pollbot):
I tried:
sendMesage method with parse_mode=HTML and tg:\ links. Problem:
telegram renders them as unsafe and navigates away from the chat. Or shows no link.
/sendMessage?chat_id=xxxxxxxx&parse_mode=HTML&text=CommandText
etc...
sendMessage with markdown - same result or no link
/sendMessage?chat_id=xxxxxxxxx&parse_mode=markdown&text=[\CommandText](\Command)
inline keyboard works OK, but I need a link, not a button
Any advice on how to implement this is higly appreciated.
Words starting with a "/" in a text are automatically made clickable as a link. You can just use sendMessage without a parse_mode and send the text /newpoll.

Button payload / callback?

I want to be able to reply to a user with my bot based on a button they pressed. So far, the only property I can find for button.onClick is "openUrl", but it doesn't seem possible to assign the button a value or a payload / callback URL. Additionally, there is no "Button Tapped" event.
How can I use buttons to allow my user to interact with my bot?
There are multiple ways to add a button response to Hangouts Chat. The primary one seems to be via using Cards with either KeyValue, or ActionResponse.
https://developers.google.com/hangouts/chat/how-tos/cards-onclick
You can use:
buttons.onClick.parameters.keyValue to pass unique Parameters
textButton.onClick.openLink to open a link with a text button
ActionResponse to update a card with a custom card when a Click event occurs.

Notification on new user sign up

In Shopify, is it possible to receive an email notification when a new user signs up (just like I get a notification when an order is placed)?
I have checked under Settings > Notifications but could not find anything. If this is not a default option provided by Shopify, is it possible to implement this using any app?
You can create a webhook to send a notification to a particular URL when the Customer creation event gets fired. Go to your Shopify admin, click on Settings, then on Notifications, scroll down and click on Create a webhook. Once the popup shows, from the dropdown, choose Customer creation Event, JSON or XML format and the url where you want to recieve the notification.
Once you have this setup, look for a webservice which reads webhooks and converts them into an email. Zapier would be a good nominee.

Adding a button to a contact in iOS

I have an app that registers a new URL scheme ('myapp://').
I want to have the address book keep track of addresses for contacts with the URL scheme like it does to e-mail, SMS, Facetime, phone, etc.
I want to have the contact info page have a button on it to launch my app and pass the 'myapp://' URL from the contact info page.
Is there a way to add a button to a contact in the Address Book like the 'Send Message' or 'Facetime' button?
No. In general one application can't change another; everything is sandboxed.
But you can add a URL and your URL scheme is just a normal URL, albeit one that doesn't work outside your iPhone. So it would appear as a link rather than a button, but it would work the same way.