Class: Telegram::Bot::Types::WebhookInfo

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/webhook_info.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#allowed_updatesArray[String]? (readonly)

Returns the value of attribute allowed_updates.

Returns:

  • (Array[String], nil)


16
17
18
# File 'sig/telegram/bot/types/webhook_info.rbs', line 16

def allowed_updates
  @allowed_updates
end

#has_custom_certificateBoolean (readonly)

Returns the value of attribute has_custom_certificate.

Returns:

  • (Boolean)


9
10
11
# File 'sig/telegram/bot/types/webhook_info.rbs', line 9

def has_custom_certificate
  @has_custom_certificate
end

#ip_addressString? (readonly)

Returns the value of attribute ip_address.

Returns:

  • (String, nil)


11
12
13
# File 'sig/telegram/bot/types/webhook_info.rbs', line 11

def ip_address
  @ip_address
end

#last_error_dateInteger? (readonly)

Returns the value of attribute last_error_date.

Returns:

  • (Integer, nil)


12
13
14
# File 'sig/telegram/bot/types/webhook_info.rbs', line 12

def last_error_date
  @last_error_date
end

#last_error_messageString? (readonly)

Returns the value of attribute last_error_message.

Returns:

  • (String, nil)


13
14
15
# File 'sig/telegram/bot/types/webhook_info.rbs', line 13

def last_error_message
  @last_error_message
end

#last_synchronization_error_dateInteger? (readonly)

Returns the value of attribute last_synchronization_error_date.

Returns:

  • (Integer, nil)


14
15
16
# File 'sig/telegram/bot/types/webhook_info.rbs', line 14

def last_synchronization_error_date
  @last_synchronization_error_date
end

#max_connectionsInteger? (readonly)

Returns the value of attribute max_connections.

Returns:

  • (Integer, nil)


15
16
17
# File 'sig/telegram/bot/types/webhook_info.rbs', line 15

def max_connections
  @max_connections
end

#pending_update_countInteger (readonly)

Returns the value of attribute pending_update_count.

Returns:

  • (Integer)


10
11
12
# File 'sig/telegram/bot/types/webhook_info.rbs', line 10

def pending_update_count
  @pending_update_count
end

#urlString (readonly)

Returns the value of attribute url.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/webhook_info.rbs', line 8

def url
  @url
end

Class Method Details

.new(url:, has_custom_certificate:, pending_update_count:, ip_address:, last_error_date:, last_error_message:, last_synchronization_error_date:, max_connections:, allowed_updates:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(url:, has_custom_certificate:, pending_update_count:, ip_address:, last_error_date:, last_error_message:, last_synchronization_error_date:, max_connections:, allowed_updates:) ⇒ instance

    Parameters:

    • url: (String)
    • has_custom_certificate: (Boolean)
    • pending_update_count: (Integer)
    • ip_address: (String)
    • last_error_date: (Integer)
    • last_error_message: (String)
    • last_synchronization_error_date: (Integer)
    • max_connections: (Integer)
    • allowed_updates: (Array[String])

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/webhook_info.rbs', line 6

def self.new: (url: String, has_custom_certificate: bool, pending_update_count: Integer, ?ip_address: String, ?last_error_date: Integer, ?last_error_message: String, ?last_synchronization_error_date: Integer, ?max_connections: Integer, ?allowed_updates: Array[String]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance