I want add the buttons in rasa chat bot for integrating with telegram but whenevr i add this buttion they are comming in one line only I want to it in for each line only one button and it should take the width of title of button. Also how to pass only button as parameter in utter_message function in rasa This is code for buttons and
This is output in telegram window where buttons title is not visible completly and also all they are in one line
I tried to change the parametres of utter_message function but its not working
It seems there is a typo in your code. You have set "button_type":"verticle" while it should be "button_type":"vertical". Try changing that and see if it works.
Related
I have created a bot using the Microsoft Bot Framework that is integrated with a Slack channel and when I send buttons like "yes" or "no" through the bot in Slack, the button title and button are replaced with "null (edited)" after clicked. How can I prevent the button title and button from being deleted or replaced by "null (edited)"?
I'm doing a text quest in a discord bot, who knows how to make several buttons to go to different embed texts with a return function. I only know how to make embed text, but I don't understand about buttons and return function.
Examples related to views can be found here.
I am currently working on a python selenium bot that chats on discord servers automatically. But I am facing a problem. It works fine but after sometimes in discord, it shows "You are viewing old messages Jump to present". So I figured out to periodically move the scroll bar down to end of the page. But I tried everything the scroll bar doesn't move down to end of the page. Can you guys help me figure out the code?
Here is what all I tried to move scrollbar down but it doesn't work.
1. driver.find_element_by_tag_name('body').send_keys(Keys.END)
2. driver.find_element_by_class_name('scrollbar-element').send_keys(Keys.END)
3. driver.execute_script("window.scrollTo(0, document.body.scrollHeight-1000);")
I already know how to setup the custom keybord layout but so far I haven't found a way to show different "text" on the buttons than what is send if you push it. E.g.:
kb = [
[telegram.KeyboardButton(text='/new')],
[telegram.KeyboardButton(text='Edit')],
]
kb_markup = telegram.ReplyKeyboardMarkup(kb)`
It returns the text given and there doesnt seem to be an option to specify what should be returned/shown on screen upon clicking. Upon starting conversation with a bot it says "Start" but sends /start, is there a way to achieve this?
For KeyboardButton it is always returning the button text as messages sent from the user, if you want the data sent back to the bot not being shown/different from the button text, try using InlineKeyboardButton
And as for the /start button, it is on telegram's side, we cannot change that.
I am new to Odoo 8 and I work on a module, I create a view with a button to send an appeal and I want that when I click the button it prints me a PDF or use it opens a box sends message I want to know what is the easiest solution and if possible send me some examples that I can use the two solutions ..
Thank you again to you