Comments (9)
Bot API 7.2 introduces "Mixed-Format Sticker Packs". This change removes is_animated
and is_video
from StickerSet
.
I think it's enough to just remove this line:
teloxide/crates/teloxide-core/src/types/sticker_set.rs
Lines 22 to 26 in 384811a
from teloxide.
I think this is a result of a missing #[serde(default)]
on StickerKind::Regular::premium_animation
:
teloxide/crates/teloxide-core/src/types/sticker.rs
Lines 64 to 67 in fb2865b
from teloxide.
But Option should have Default trait impl with None as default value? https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=ceaea5c407a5d5eb826aa6b5c3efcf92
from teloxide.
@Avimitin this is mostly irrelevant. We use serde
via macros, which do not have access to the type information and can't change Deserialize
implementation depending on if type implements Default
or not. That's why #[serde(default)]
annotation exists -- to tell the macros to use the Default
impl.
from teloxide.
Is this being worked on? If not I could try to do it
from teloxide.
I don't think anyone is working on this, you may go ahead
from teloxide.
It seems that the maintainers did not pay attention to this issue 🤔
from teloxide.
Fixed by #1040 (right, @syrtcevvi?).
from teloxide.
all right
from teloxide.
Related Issues (20)
- teloxide::dispatching::dispatcher: Cannot parse an update HOT 6
- I wanted to read examples of bot migration of Python code to Rust. However, the links are not working. HOT 2
- Feature Request: allow &Message in handlers HOT 7
- Unknown Error: Bad Gateway HOT 12
- Animations can't be sent in media group, but teloxide thinks they can HOT 6
- Unknown error type
- `markdown::escape` doesn't escape backslashes HOT 3
- Parse Error: data did not match any variant of untagged enum TelegramResponse HOT 2
- Incorrect message type sent by .send_video_note() to telegram client HOT 1
- panic on replying to message with photo HOT 5
- Add support for TBA 7.3
- Add support for TBA 7.2 HOT 1
- Feature Request: Add some syntactic sugar HOT 8
- Stackoverflow on Windows when send Location as a reply HOT 3
- thread 'main' has overflowed its stack HOT 18
- Bincode serializer can't serialize json-like objects
- Changing the State enum breaks it completely if using persistent state
- Add support for TBA 7.4
- Feature Request: Add Skytable support for dialogue storage HOT 1
- Feature Request: Multiple dialogues or multiple states HOT 3
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 teloxide.