API Reference google_api_chat v0.21.1
Modules
API client metadata for GoogleApi.Chat.V1.
API calls for all endpoints tagged Media
.
API calls for all endpoints tagged Spaces
.
Handle Tesla connections for GoogleApi.Chat.V1.
List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze 1 day, snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.
Parameters that a bot can use to configure how it's response is posted.
Annotations associated with the plain-text body of the message. Example plain-text message body: Hello @FooBot how are you!"
The corresponding annotations metadata: "annotations":[{ "type":"USER_MENTION", "startIndex":6, "length":7, "userMention": { "user": { "name":"users/107946847022116401880", "displayName":"FooBot", "avatarUrl":"https://goo.gl/aeDtrS", "type":"BOT" }, "type":"MENTION" } }]
An attachment in Hangouts Chat.
A reference to the data of an attachment.
A button. Can be a text button or an image button.
A card is a UI element that can contain UI widgets such as texts, images.
A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.
Attributes
-
imageStyle
(type:String.t
, default:nil
) - The image's type (e.g. square border or circular border). -
imageUrl
(type:String.t
, default:nil
) - The URL of the image in the card header. -
subtitle
(type:String.t
, default:nil
) - The subtitle of the card header. -
title
(type:String.t
, default:nil
) - The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each will take up 1 line. If only the title is specified, it will take up both lines.
Google Chat events.
A reference to the data of a drive attachment.
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty
is empty JSON object {}
.
A form action describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.
An image that is specified by a URL and can have an onclick action.
An image button with an onclick action.
A UI element contains a key (label) and a value (content). And this element may also contain some actions such as onclick button.
Attributes
-
nextPageToken
(type:String.t
, default:nil
) - Continuation token to retrieve the next page of results. It will be empty for the last page of results. Tokens expire in an hour. An error is thrown if an expired token is passed. -
spaces
(type:list(GoogleApi.Chat.V1.Model.Space.t)
, default:nil
) - List of spaces in the requested (or first) page.
Media resource.
Represents a membership relation in Hangouts Chat.
A message in Hangouts Chat.
An onclick action (e.g. open a link).
A link that opens a new window.
A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties (e.g. float).
A Slash Command in Hangouts Chat.
Annotation metadata for slash commands (/).
A room or DM in Hangouts Chat.
A button with text and onclick action.
A paragraph of text. Formatted text supported.
A thread in Hangouts Chat.
A user in Hangouts Chat.
Annotation metadata for user mentions (@).
A widget is a UI element that presents texts, images, etc.