from

inline fun from(announcement: Announcement): OfflineAnnouncement

创建 OfflineAnnouncement. 若 announcement 类型为 OfflineAnnouncement 则直接返回 announcement.

若要转发获取到的公告到一个群, 可直接调用 Announcement.publishTo 而不需要构造 OfflineAnnouncement.

See also