Hangouts Chat, is there anyway to show prompts in hangouts chat? - adaptive-cards

Hi I searched a lot for this,
can we create prompt messages in hangouts chat? So far i can create cards, and the actions can be captured inside CARD_CLICKED event.
I need a prompt sort of message to display in hangouts chat so that when a user clicks on it, it should be posted in the chat as the user input.
Or anyway to build custom messages in hangouts bot with html?
Is there anyway to do that or am i going in the wrong direction?
Please help

Related

Is there a way to get the current label name/id of a selected Mail?

I was wondering if its possible to get the current label name/id of the label the user selected in gmail.
I can get all labels a mail thread has, but I want to figure out which label the user currently looks at.
Maybe there is also a posiibility to parse the url of gmail in google app script? I know there is server side and client side but I dont have any other idea...
Thanks for your help
Anne
Google Workspace doesn't have a feature to retrieve what email or label a user is currently looking at in their Gmail. This request can be promoted for future development through the Google Workspace Feature Ideas Community.
What you can do with the Gmail API is list the messages in the user's mailbox and list all labels in the user's mailbox.

How to get Google Chat ID in Apps Script

I am using AppMaker I would like to get the Chat ID of a user so I can open a chat window in a new tab to that user. However, I don't see a way to get it.
To be clear, I want the part at the end of a URL like this:
https://chat.google.com/u/0/dm/pUR6NABBAAE
For some reason this ID is different from the old Hangouts chat ID (which I get from the Person datasource).
Is there a way to do this? I have looked at the docs and searched StackOverflow but do not see anybody trying to do this.
No, there is no way to do what you want as of now.
Google is always receiving Feature Requests for their APIs so you could try submitting it there.
However, since the Hangouts API is directed at Bots and Google has a compromise to not create avenues for spammers, I doubt that will be implemented.

google hangout chat can bots message bots?

I have a use scenario where I'm testing a bot in google hangout. To facilitate testing of multiple users, I'd like to create a series of other bots that replicate the functions of users. But this is all dependent on the bots in the room listening to one another. It also requires that I get the userid of the bots so they can name each other. In Google Scripts I can find no way to retrieve that (the rest API is not an option).
Any suggestions?
The information is documented, but I understand GCP docs aren't the easiest to navigate. According to the Event Format reference: "Only messages from "real", non-bot users are delivered to bots. A bot will never receive messages posted by itself or by a different bot."
So the answer to the question appears to be no. Bots do not appear to be able to talk to each other. When you put the userid in the text property of the bot it does not replace it to an #botname as it does with human users. If anyone can figure out another way to do it I would appreciate it.
But the second question of where to get the bots userid I can now answer and I leave here in case anyone else is curious. This appears only in a message event, when a bot is mentioned as the property event.message.annotations[0].userMention.user.name

In a Gmail add-on is there a reliable way to work with an individually selected message within the conversation?

We're looking into building a Gmail add-on to replace our Gmail contextual gadget and trying to work out a way to provide equivalent features.
Because a contextual gadget is displayed underneath each message in a conversation we used this to display contact details and allow storing a copy of specific messages within a conversation.
For Gmail add-ons the add-on is passed a messsageId in the event object and sometimes the add-on will refresh with a new messageId when clicking or expanding messages in the conversation. However, this does not appear to be consistent and there doesn't appear a clearly explicit action to select a "current" message in a conversation that the add-on should act upon.
In the documentation messageId is described as as the "message ID of the thread open in the Gmail UI so it's not clear if this is meant to refer to a specific message or the overall conversation.
We also took a look at the Android Gmail app and the add-ons only appear to be accessible when scrolling down to the end of the conversation, so similarly I'm unsure if an add-on can be triggered for specific messages in the mobile UI?
We looked at the Trello add-on as an example. This allows creating a Trello card using the first few words from an email message as the description for the card and we noted that the description would sometimes update to reflect a different message in the conversation when clicking the headings or body of messages in the conversation, but again not consistently.
Can anyone from the Gmail add-ons team advise if what we're seeing are just some quirks that are being worked on, or if we're approaching the add-on design with the wrong model in mind and shouldn't be developing around the concept of individual messages in the conversation?

Laravel Check the User Share Telegram Bot Link to other Users

Hi i want to develop the bot , but first i ask users to share the link of my bot to 5 other users then continue and register in my bot , i develop all sections but i cannot handle the first one, how can i detect that the use send share link to other user ?
i user laravel + talageram bot SDK to develop my bot.
i just want to know that user share the link and continue , i search in many docs and site bud i cannot find anythings that useful to me.
please help me to handle this problem in my telegram bot . thanks :)
Basically, you can't find out if your user has sent the link to others. You can only find out when the other user taps on the link and starts your bot. This can be done by Deep Linking. You should create a unique identifier for each user and add it as a query string to the special link made for the user.
Example:
https://telegram.me/my_bot?invitedFrom=user1
You have to check for invitedFrom parameter each time a user starts your bot in order to credit the referrer user.
By using above method, you will only be notified when the other user starts your bot.
However there is a trick you can do in order to see if a special message is forwarded to other users. Here are the steps:
Make a private channel.
Create a message containing your bot link.
Forward the message to your bot user.
Ask your bot user to forward the message to friends.
Check the view count of the message to know if it's seen by others.
By using this trick you can find out how many times the message containing your bot link is seen.