Telegram Bot: Add action to keyboard button to add text in the chat inputbox - telegram-bot

I have added a Inlinekeyboard button as reply_markup to a chat message, and now as an on click action, i want to add a text in the input box, to make it easy for the user ( the text is part of the input to be given in the conversation).
All I could find is 'switch_inline_query_current_chat', which only supports inline queries

Unfortunately, you can't do it directly at this time. :(
You need to send/edit a message which contains a switch_to_inline_current_chat button, and ask user to click it.
I hope you can make this suggestions to #BotSupport, this would be useful for further developers!

Related

Check some field before opening confirmation box in ODOO

I want to check that if some fields in the form view has been checked or not. If they have been checked then show a confirmation message and if not then a error message saying that those fields must be checked. For this functionality I have created a button which calls a specific function in the model. The button has also attribute confirm which enables the confirmation pop up box. But all the time it first opens the confirmation message and then the checking for the fields. I want to have the other way around how to achieve this. Please help.

YUI3: Re-fire an event that I stopped from propagating?

I've got a form within a tabview with input fields. If the user changes the input fields, doesn't save, and then tries to change the tab I want to ask them if they want to save changes before the tab is changed. I'm preventing the tab-change from occurring using e.stopPropagation(). I then prompt the user to ask if they want to save their changes, discard them, or cancel. If the user chooses save or cancel I'd like to perform the operation and then change them over to the tab they requested.
Is there a way for me to re-fire the event? Or will I have to extract what tab they were requesting from the event and then manually change the active tab?
I would think that the best way to tackle this issue would be to select the tab programmatically instead of trying to "re-fire" the event somehow.
To select a tab programmatically with tabView, you need to use the selectChild(index) method.

PassBook + ios 6

In Pass.Json file, how to write a code for adding button and how to add hyperlink text, which dynamically update the link, after user click the hyperlink text?
Please let me know if someone come across with same requirement.
You cannot add a button or hyperlink to a pass.
There is a fairly clumsy workaround to update a pass based off a user action that takes advantage of the fact the URLs, phone numbers, dates and addresses that appear on the back of the pass are automatically made clickable.
So while you cannot add a button or hyperlink text per-se, you could add a link to a script that when clicked on, triggers a push update that updates the pass with your new content. This pass contains a good example, and the source code is available here.

How to send textfields content via email in the background?

I'm trying to make a simple view based application.
I want to receive information with the content of text fields when user filled text fields and hits the submit button.
The way I do this doesn't matter so much. It can be done by sending information to a web server or sending information to my e-mail in background. Actually it seems easier to do it via e-mail.
I just want to know what the user wrote on text fields when he hit the submit button.

In Sencha-touch, how can I make a form popup when a user clicks on an item in a list?

In Sencha-touch, how can I make a form popup when a user clicks on an item in a list?
I would attach a listener to the 'itemtap' or 'itemdoubletap' events within your Ext.List instance which triggers the display of your form. That's off the top of my head as I haven't touched (rimshot) Sencha Touch since before it came out of beta.
http://dev.sencha.com/deploy/touch/docs/?class=Ext.List
You might want to explore disclosures, which place an arrow on the list item for the user to click, or as Wilhelm says, attach to a regular tap or selection event.
For 'modal' popups, simply create a panel with floating:true. See the docs at http://dev.sencha.com/deploy/touch/docs/?class=Ext.Panel and the examples in the User Interface / Overlays section of http://dev.sencha.com/deploy/touch/examples/kitchensink/
for this i will guide you please go through link which i have give will help You alot
http://www.mysamplecode.com/2012/07/sencha-touch-floating-panel-example.html