Code Monkey home page Code Monkey logo

ruby-telegram-bot-starter-kit's People

Contributors

aaronsama avatar alxekb avatar coolnesss avatar dependabot[bot] avatar maksimabramchuk avatar sergey-alekseev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby-telegram-bot-starter-kit's Issues

Problems with running the bot.

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.

support mysql

I prefer mysql over pg.
It's my mysql version of this project.

Thank you Maxim for made this project. It's very helpful to me.

How do you store state?

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?

How to Commands with arguments

Sorry for my noob question but!

How can i create a command with arguments? example:
/car Honda

and the bot answer a list with all the Honda models?

StandardError: Directly inheriting from ActiveRecord::Migration is not supported.

Hey, thanks for the great boilerplate. Upon setting up the database, I get

StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

  class CreateUsers < ActiveRecord::Migration[4.2]

Running Ruby 2.4.0

This is easily fixed though, by changing the following line

https://github.com/MaximAbramchuck/ruby-telegram-bot-starter-kit/blob/master/db/migrate/001_create_users.rb#L1

to e.g
class CreateUsers < ActiveRecord::Migration[5.0]

for Rails 5

Answers зачем?

Здравствуйте!

Максим, скажите, а зачем используется answers? В коде на гитхабе смотрю и понять не могу.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.