Error out when click Google Chat Bot interactive button with NET.CORE - google-hangouts

I am creating a bot for the hangout chat via C#, I was able to create simple messages and messages on cards, but I am not able to work with CARD_CLICKED.
It displays the message that could not connect to the bot, try later.
Retrieving the error message, I noticed this message:
Google.Apis.Requests.RequestError Unsupported path name in update message field mask.
How can I get this to work in C#?

Related

Can't get Google Chat messages with Gmail API

What are the details of your problem?
Until recently, in my own web application, I used the Gmail API to retrieve Google Chat messages as follows.
I was able to get it from "Label: CHAT" by executing as follows.
(1) Acquisition of thread ID belonging to CHAT label
https://gmail.googleapis.com/gmail/v1/users/me/messages?labelIds=CHAT
(2) Get message information from thread ID
https://gmail.googleapis.com/gmail/v1/users/me/threads/[Thread ID]
However, it seems that it has been impossible to obtain it since around December 2022, and when I searched for "in: chats" in Gmail, the messages after December 10th were not displayed.
Any method is fine, so I would like to be able to get Google Chat messages as before.
Anyone know the cause and solution?
Please check.
I also tried using the Google Chat API to see if it was possible to get messages, but I could only get messages in the space, and I couldn't get direct messages, so I wasn't able to use it.
I checked all the messages in the labels that can be obtained at "https://gmail.googleapis.com/gmail/v1/users/me/labels", but it seems that chat messages are not included.
Also, in another answer, there was a description that the state included in the Gmail API was a bug, so it is possible that this bug was adapted and it was not displayed, but in that case, there is another way to deal with it. Are you there?
Access CHATS label with Gmail API

Facebook Message Webhook Event : How to identify that the message is a reply/comment of a Page Story?

I have a bot running well receiving messages through the Facebook message webhook event. Everything works well when the user sends messages through the messenger app.
But When a user replies to the page story, it generates an incoming message as if it was a standard one and it's not possible to handle this context which is completely different form a user initiated conversation.
Any idea how to receive to differentiate a "standard" message from a "reply to page story" one ? Thx
There is no way to differentiate between these two entry points/sources. Both will trigger a regular message event with no specific attributes added that would allow you to differentiate the source/entry point.

Parsing messages sent with Rocket Chat

I am trying to develop an application which parses the text entered in the rocketChat box. I have checked the RocketChat Api: https://rocket.chat/docs/developer-guides/rest-api/ and there is not any way to catch this event (message sent in box). The only way to do it is to obtain all the messages sent with the method channels.history. https://rocket.chat/docs/developer-guides/rest-api/
Any idea on how to do it?
You may checkout rocket chat node js sdk. Use driver.reactToMessages function to listen to any messages in a channel

How to trigger message without messaging bot first

I am learning the facebook api and I am curious how to do this.
On this website(https://botacademy.com/), they use manychat and you can click the opt in button (on web) and it automatically accesses your messenger inbox without prompts or auth.
It then sends you a programatic message. All of the tutorials I follow require the user to send a message first..
Do you know what endpoint of the API they are using to accomplish this?
Obviously I do not know what their code looks like, but:
that is a send to messenger button, which allows you to authenticate with a bot and an app, and sends your information to the webhook.
This counts as interacting with the bot, because you clicked the button and opted into the experience.
FBM Platform Policies have this to say about opting into messages and send to messenger:
How messaging is triggered:
...
Person requests a message from a business via a plugin, such as Send to Messenger

capture json message sent by facebook to bot framework

How can i track the response that was received to bot framework from facebook or any another social network ?
For example , I am sending the location on facebook ( which is not available on framework ) and i am not able to know where it's sent .
Is there any tracker on the bot framework site that can help me do that ?
There are several ways to get information about the messages sent to your bot.
Create an Azure App Insights instance and register it with the bot framework portal and the Bot Framework will send traces to your bot including exceptions, errors, etc.
Run NGROK locally on your machine and point it to your local bot in debug, and you can use the NGROK console to see the rest calls.
Inspect the post as it comes into your bot and log the message from the message context.
--jim
The message from facebook, including the location sent by user, is available from:
var facebookJson = activity.ChannelData;