GetChatEventLog class final
Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id)
Returns ChatEvents.
- Inheritance
-
- Object
- TdFunction<
ChatEvents> - GetChatEventLog
Constructors
-
GetChatEventLog({required int chatId, required String query, required int fromEventId, required int limit, ChatEventLogFilters? filters, required List<
int> userIds}) -
Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id)
const
Properties
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - chatId → int
-
Chat identifier
final
- filters → ChatEventLogFilters?
-
The types of events to return; pass null to get chat events of all types
final
- fromEventId → int
-
Identifier of an event from which to return results. Use 0 to get results from the latest events
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit → int
-
The maximum number of events to return; up to 100
final
- query → String
-
Search query by which to filter events
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
userIds
→ List<
int> -
User identifiers by which to filter events. By default, events relating to all users will be returned
final
Methods
-
copyWith(
{int? chatId, String? query, int? fromEventId, int? limit, ChatEventLogFilters? filters()?, List< int> ? userIds}) → GetChatEventLog -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.