telegram-bot-rb / rails_template Goto Github PK
View Code? Open in Web Editor NEWTemplate for tiny Rails app with Telegram bot
Template for tiny Rails app with Telegram bot
I tried to install this template, but these gems versions are not up to date. the puma is 3.6.2 and can't compile. (see puma/puma#1136 and puma/puma#1195)
But I do a fresh install of rails 5.1, the puma is 3.8.2 and install succeeded.
As this app is, when a message is sent to the bot, a message should be sent back to the chat '.hi', correct?
I'm just trying to understand the code for the TelegramWebhooksController
def start(*)
respond_with :message, text: t('.hi')
end
Thanks in advance!
If you want to just view chat updates on one of your web pages(just like getUpdates method), how would you go about doing so?
I set my webhook url to go to my webhooks controller.
I believe I need to post webhooks/webhook
in routes
and my controller has this code def webhook params['webhook'] end
and my view has <% @webhooks %>
I'm new to the rails MVC so I'm not sure where/how I should make my app show me my updates. Thanks in advance!
I'm trying to use some methods from the rails app example in my rails template app.
When I texted "/help" to my bot, my log looks as though everything is fine -
Responded with message
Completed in 263ms
I got the following response on telegram though:
translation missing: en.telegram_webhooks.help.content
what does this mean? I'm guessing the version I'm using of the rails_template is missing some code in order to use those other methods.
I am getting this error due to missing config/database.sample.yml file. Can you update with a existing database sample file? Thanks for now.
== Installing dependencies ==
The Gemfile's dependencies are satisfied
== Copying sample files ==
config/database.sample.yml: not found
config/secrets.sample.yml: OK
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.