Comments (8)
Same here. Sending photos does not work anymore. This happened after updating all gems.
Output of bundle show
below:
$ bundle show
Gems included by the bundle:
* axiom-types (0.1.1)
* bundler (1.7.4)
* coercible (1.0.0)
* descendants_tracker (0.0.4)
* equalizer (0.0.11)
* gene_pool (1.4.1)
* httmultiparty (0.3.16)
* httparty (0.13.7)
* ice_nine (0.11.1)
* json (1.8.1)
* mimemagic (0.3.1)
* multi_xml (0.5.5)
* multipart-post (2.0.0)
* persistent_http (1.0.6)
* persistent_httparty (0.1.2)
* telegram-bot-ruby (0.4.0)
* thread_safe (0.3.5)
* virtus (1.0.5)
from telegram-bot-ruby.
Same here. I'm getting a different error but it happens when sending photo/documents.
/usr/local/share/gems/gems/persistent_http-1.0.6/lib/persistent_http.rb:335:in
rescue in block in request': too many connection resets (due to end of file reached - EOFError)`
Every gem is up-to-date.
EDIT: just to be sure, same behavior happens with example code and on two different machines on two far away networks.
from telegram-bot-ruby.
I solved the problem for myself (telegram-bot-ruby 0.4.0) as follows:
class Telegram::Bot::Api
private
def jsonify_inline_query_results(value)
return value unless value.class == Array
return value unless Array(value).all? { |i| INLINE_QUERY_RESULT_TYPES.include?(i.class) }
value.map { |i| i.to_h.select { |_, v| v } }.to_json
end
end
from telegram-bot-ruby.
@zeracode yeah, the issue was exactly here, thanks. I've released 0.4.1 with fix. Please update the gem.
from telegram-bot-ruby.
Same issue here, I have v0.5.2
from telegram-bot-ruby.
Please show your code.
from telegram-bot-ruby.
Alright after looking for other closed issue it appears that we have to use now the Faraday::UploadIO.new instead of File.new which caused the issue in a code that was running just fine before.
Maybe it would be a good idea if this change was highlighted with few details in the changelog. Thanks.
from telegram-bot-ruby.
It is highlighted in README.
from telegram-bot-ruby.
Related Issues (20)
- Telegram new launch: Web_app HOT 9
- AnswerInlineQuery not work correctly HOT 2
- undefined method `from' for nil:NilClass (NoMethodError) HOT 3
- How to read channel messages?
- Forward message with images HOT 1
- User chats HOT 1
- Get list of join request to channel
- ArgumentError if message is not a string HOT 3
- Question. How do i listen only new message after bot was started? HOT 2
- How to receive Voice messages? HOT 1
- Periodic Net::ReadTimeout errors causing restart for 24/7 Bot HOT 3
- Support for ChatMember types HOT 4
- Add VCR for specs HOT 1
- `ForceReply#force_reply` type and optionality HOT 1
- Return defined types (Ruby objects) HOT 3
- Update `thumb` fields to `thumbnail`
- Webhooks empty ChatMember HOT 2
- TERM trap does not work anymore as in README HOT 5
- Uploading large files with local API causes Net::ReadTimeout with #<TCPSocket:(closed)> HOT 1
- Message.text is nil even thought the schema says it can not be HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-bot-ruby.