Hi,
First of all i want to say that you have been doing great work, Maxim!
I don't know why in my case when i'm trying to run the bot i've got this error:
bin/bot
D, [2016-03-04T11:20:54.449126 #13049] DEBUG -- : Starting telegram bot
/home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:344:in validate': HTTP redirects too deep (HTTParty::RedirectionTooDeep) from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:113:inperform'
from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:291:in handle_response' from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:131:inperform'
from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:291:in handle_response' from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:131:inperform'
from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:291:in handle_response' from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:131:inperform'
from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:291:in handle_response' from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:131:inperform'
from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:291:in handle_response' from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty/request.rb:131:inperform'
from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httparty-0.13.7/lib/httparty.rb:545:in perform_request' from /home/torq07/.rvm/gems/ruby-2.2.1/gems/httmultiparty-0.3.16/lib/httmultiparty.rb:124:inpost'
from /home/torq07/.rvm/gems/ruby-2.2.1/gems/telegram-bot-ruby-0.4.1/lib/telegram/bot/api.rb:45:in call' from /home/torq07/.rvm/gems/ruby-2.2.1/gems/telegram-bot-ruby-0.4.1/lib/telegram/bot/api.rb:40:inmethod_missing'
from /home/torq07/.rvm/gems/ruby-2.2.1/gems/telegram-bot-ruby-0.4.1/lib/telegram/bot/client.rb:34:in fetch_updates' from /home/torq07/.rvm/gems/ruby-2.2.1/gems/telegram-bot-ruby-0.4.1/lib/telegram/bot/client.rb:29:inlisten'
from bin/bot:17:in block in <main>' from /home/torq07/.rvm/gems/ruby-2.2.1/gems/telegram-bot-ruby-0.4.1/lib/telegram/bot/client.rb:22:inrun'
from /home/torq07/.rvm/gems/ruby-2.2.1/gems/telegram-bot-ruby-0.4.1/lib/telegram/bot/client.rb:10:in run' from bin/bot:16:in
'
I thought it' because of old version of telegram-ruby-bot, so i'm updated gem to v0.4.1 but it not help.
Hi! If we want the bot to reply differently while in different states, how should we store state, given this starter kit? Do we use the database to associate the state and the telegram uid?
Hello,
Thank you Maxim for made this project.
When I do bundle exec rake db:migrate it does not create the schema.rb file nor the table in the database.
Also, how could I get all the rake commands to generate the migration files.
Thank you