msg property

Message? get msg

The effective message from the update.

This returns the first non-null message from the various message types, including business messages and callback query messages.

Implementation

Message? get msg {
  if (_msgCached) {
    return _cachedMsg;
  }
  _cachedMsg ??= _computeMsg();
  _msgCached = true;
  return _cachedMsg;
}