userId property

int? get userId

Gets the user ID if available.

Implementation

int? get userId => ctx?.from?.id;