-
Notifications
You must be signed in to change notification settings - Fork 223
Open
Description
I can not start the client with examples in the README.
Below is my simple code and two examples that I have tried.
Please explain the correct way to start the client in polling mode.
Thatnk your in advance!
My code
class ChatBot
def initialize(token:)
@token = token
end
def start
Telegram::Bot::Client.run(token) do |client|
client.listen do |message|
# code
end
end
end
private
attr_reader :token
end
Error: _undefined method 'listen' for an instance of Telegram::Bot::Client (NoMethodError)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels