> For the complete documentation index, see [llms.txt](https://docs.rainybot.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainybot.dev/api/appmessage.md).

# 类: AppMessage

[(返回目录)](/api.md)

**继承自:** [Message](/api/message.md)

RainyBot的App消息类，通常代表一个对应实例，此类消息常见于某些特殊App调用聊天软件进行分享的场景

## 描述

这是RainyBot的App消息类，通常代表一个对应实例，此类消息常见于某些特殊App调用聊天软件进行分享的场景\
此类实例中储存了App消息的代码原文本，你也可以基于指定APP消息代码文本来构建一个此类实例

## 方法

* static [AppMessage](/api/appmessage.md) **init (** [String](https://docs.godotengine.org/en/latest/classes/class_string.html) text **)**

基于指定的App消息代码文本来手动构造一个AppMessage类的实例

***

* static [AppMessage](/api/appmessage.md) **init\_meta (** [Dictionary](https://docs.godotengine.org/en/latest/classes/class_dictionary.html) dic **)**

通过机器人协议后端的元数据字典构造一个AppMessage类的实例，仅当你知道自己在做什么时才使用

***

* [String](https://docs.godotengine.org/en/latest/classes/class_string.html) **get\_app\_text ( )**

获取实例中储存的App消息代码文本

***

* void **set\_app\_text (** [String](https://docs.godotengine.org/en/latest/classes/class_string.html) text **)**

更改实例中储存的App消息代码文本

***

* [String](https://docs.godotengine.org/en/latest/classes/class_string.html) **get\_as\_text ( )**

将此实例获取为字符串的形式

***
