Class: Telegram::Bot::Client
- Inherits:
-
Object
- Object
- Telegram::Bot::Client
- Defined in:
- sig/telegram/bot/core.rbs
Instance Attribute Summary collapse
-
#api ⇒ Api
readonly
Returns the value of attribute api.
-
#logger ⇒ Logger
Returns the value of attribute logger.
-
#options ⇒ Hash[Symbol, untyped]
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #fetch_updates {|arg0| ... } ⇒ void
- #handle_update ⇒ Types::Base?
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #listen {|arg0| ... } ⇒ nil
- #run ⇒ void
- #stop ⇒ false
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
25 |
# File 'sig/telegram/bot/core.rbs', line 25
def initialize: (String token, ?Hash[Symbol, untyped] options) -> void
|
Instance Attribute Details
#api ⇒ Api (readonly)
Returns the value of attribute api.
20 21 22 |
# File 'sig/telegram/bot/core.rbs', line 20 def api @api end |
#logger ⇒ Logger
Returns the value of attribute logger.
22 23 24 |
# File 'sig/telegram/bot/core.rbs', line 22 def logger @logger end |
#options ⇒ Hash[Symbol, untyped] (readonly)
Returns the value of attribute options.
21 22 23 |
# File 'sig/telegram/bot/core.rbs', line 21 def @options end |
Class Method Details
.run ⇒ void
This method returns an undefined value.
24 |
# File 'sig/telegram/bot/core.rbs', line 24
def self.run: [T] (String token, ?Hash[Symbol, untyped] options) { (Client) -> T } -> T
|
Instance Method Details
#fetch_updates {|arg0| ... } ⇒ void
This method returns an undefined value.
29 |
# File 'sig/telegram/bot/core.rbs', line 29
def fetch_updates: () { (Types::Base?) -> void } -> void
|
#handle_update ⇒ Types::Base?
30 |
# File 'sig/telegram/bot/core.rbs', line 30
def handle_update: (Types::Update update) -> Types::Base?
|
#listen {|arg0| ... } ⇒ nil
27 |
# File 'sig/telegram/bot/core.rbs', line 27
def listen: () { (Types::Base?) -> void } -> nil
|
#run ⇒ void
This method returns an undefined value.
26 |
# File 'sig/telegram/bot/core.rbs', line 26
def run: [T] () { (Client) -> T } -> T
|
#stop ⇒ false
28 |
# File 'sig/telegram/bot/core.rbs', line 28
def stop: () -> false
|