New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow stopping poller #192

Open
wants to merge 3 commits into
base: master
from
File filter...
Filter file types
Jump to file or symbol
Failed to load files and symbols.
+7 −5
Diff settings

Always

Just for now

Copy path View file
@@ -20,10 +20,12 @@ def run

def listen(&block)
logger.info('Starting bot')
running = true
Signal.trap('INT') { running = false }
fetch_updates(&block) while running
exit
@running = true
fetch_updates(&block) while @running
end

def stop
@running = false
end

def fetch_updates
Copy path View file
@@ -1,5 +1,5 @@
module Telegram
module Bot
VERSION = '0.8.6.1'.freeze
VERSION = '0.8.7.0'.freeze
end
end
ProTip! Use n and p to navigate between commits in a pull request.