integrations.web.parser module

integrations/web/parser.py

class integrations.web.parser.MessageParser

Bases: MessageParserDataMixin, MessageParserInterface

メッセージ解析クラス

__init__()
Return type:

None

property check_updatable: bool

DB操作の許可チェック

Returns:

真偽値

  • True: 許可

  • False: 禁止

Return type:

bool

data: MsgData
property ignore_user: bool

ignore_useridに存在するユーザかチェック

Returns:

真偽値

  • True: 存在する(操作禁止ユーザ)

  • False: 存在しない

Return type:

bool

property in_thread: bool

元メッセージへのリプライとなっているか

Returns:

真偽値

  • True: リプライの形(リプライ/スレッドなど)

  • False: 通常メッセージ

Return type:

bool

property is_bot: bool

botのポストかチェック

Returns:

真偽値

  • True: botのポスト

  • False: ユーザのポスト

Return type:

bool

parser(body)

メッセージ解析

Parameters:

body (Any) – 解析データ

Return type:

None

post: PostData
status: StatusData