Closed thebravoman closed 3 months ago
Hi @thebravoman,
In dry-struct attribute?
means attribute is optional.
Ah, makes sense.
On Wed, 28 Feb 2024, 10:13 Alexander Tipugin, @.***> wrote:
Hi @thebravoman https://github.com/thebravoman,
In dry-struct attribute? means attribute is optional https://dry-rb.org/gems/dry-struct/1.6/recipes/#tolerance-to-missing-keys .
— Reply to this email directly, view it on GitHub https://github.com/atipugin/telegram-bot-ruby/issues/303#issuecomment-1968443345, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKAGBKP4CBS5L7MMTQ34U3YV3RK7AVCNFSM6AAAAABD5O2RLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRYGQ2DGMZUGU . You are receiving this because you were mentioned.Message ID: @.***>
And it's also optional in the official documentation, we have checks for this: https://core.telegram.org/bots/api#message
I think, we can close this issue.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
When sending a message that is just an attached photo the Message.text is nil
results in
How come the attribute is of type
but the message.text is nil?