id property

ChatID get id

The Chat ID quick getter.

Implementation

ChatID get id {
  final id = _getChatId();
  if (id == null) {
    throw TeleverseException(
      'The current Context does not have a Chat.',
      type: TeleverseExceptionType.updateTypeDoesNotHaveChat,
    );
  }
  return id as ChatID;
}