Class: TD::Types::ChatEvent

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/chat_event.rb

Overview

Represents a chat event.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#actionTD::Types::ChatEventAction

Action performed by the user.

Returns:



8
9
10
# File 'lib/tdlib/types/chat_event.rb', line 8

def action
  @action
end

#dateInteger

Point in time (Unix timestamp) when the event happened.

Returns:

  • (Integer)

    the current value of date



8
9
10
# File 'lib/tdlib/types/chat_event.rb', line 8

def date
  @date
end

#idInteger

Chat event identifier.

Returns:

  • (Integer)

    the current value of id



8
9
10
# File 'lib/tdlib/types/chat_event.rb', line 8

def id
  @id
end

#user_idInteger

Identifier of the user who performed the action that triggered the event.

Returns:

  • (Integer)

    the current value of user_id



8
9
10
# File 'lib/tdlib/types/chat_event.rb', line 8

def user_id
  @user_id
end