Comments (3)
Hey @AlexWayfer
Sounds interesting. Could you make some POC branch/PR for this? Just to play around and understand if it's convenient or not.
Another detail about I'm not sure: should I check response['ok'] or response.status == 200 is enough? Can there be a response with status 200, but without result (with error)? I haven't found any info about this in the documentation.
Docs don't mention anything about status code, so i'd not rely on it and keep using ok
flag.
from telegram-bot-ruby.
Sounds interesting. Could you make some POC branch/PR for this? Just to play around and understand if it's convenient or not.
Yeah, I think about it. I don't think it'd take a lot of change lines. I'd like to do this with specs, but right now I have issues with logging into test environment…
Docs don't mention anything about status code, so i'd not rely on it and keep using
ok
flag.
I wouldn't like to do so: any 4xx or 5xx error can have no ok
field, even not JSON. We should have a double check there, or just rely on 200 — that's my quesiton.
from telegram-bot-ruby.
Docs don't mention anything about status code, so i'd not rely on it and keep using
ok
flag.I wouldn't like to do so: any 4xx or 5xx error can have no
ok
field, even not JSON. We should have a double check there, or just rely on 200 — that's my quesiton.
I've tested simple 400 errors — there is correct HTTP status, so I'd rely on it for now, and let's monitor. If we will catch cases with HTTP 200 and ok => false
— it'd be very strange and we can investigate and fix it more proper.
from telegram-bot-ruby.
Related Issues (20)
- 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
- 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
- Getting a Missing attribute: "result" (Dry::Struct::MissingAttributeError) HOT 1
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.