Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
On the main question: if you do not know Python or Ruby, just take any, learn and make a bot.
On the second: where do you need the speed for a telegram bot? I can now talk for a long time about asynchrony in Python and the possibility of horizontal scaling with the right architecture - but for now I’ll just repeat the first answer: just take any, learn and make a bot. Well, if we consider bare languages - well, what kind of performance can an interpreted language with GIL on one machine produce in inept hands? And Python and Ruby are both interpreted and limited to the global lock. Even here, everything can be solved through interprocess communication and any kind of asynchronism - but a person who had experience with these approaches would hardly have asked such questions.
Well, I can not resist: what's the difference in syntax? Especially such trifles as indents with spaces. What's the difference between limiting code blocks - indented, through begin-end, just through end, or curly braces? Yes, even through XXX and YYY - this DOES NOT CHANGE ANYTHING.
In short: take Python, it's trendy right now. If you want to write a bot for a telegram, this gentleman at groosh-code.tumblr.com wrote a bunch of good articles about it, and even in Russian.
There is a tutorial on telegram bot on Ruby
www.sitepoint.com/quickly-create-a-telegram-bot-in-ruby
It looks like both languages are about the same in terms of performance.
ruby language. Is it worth learning the Ru programming language...
Ruby has many gems for working with various protocols and systems, especially for the web.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question