Comments (3)
Thanks, @noiob!
I will fix it today.
from telegram-bot.
Okay, so I've found a message from a group being changed into a supergroup:
"message":{"message_id":28164,"from":{"id":28111482,"first_name":"redacted","last_name":"redacted","username":"redacted"},"chat":{"id":-137980893,"title":"test group","type":"group"},"date":1458925136,"migrate_to_chat_id":-1001026227392}},{"update_id":591487127,
So the problem most likely is imho in the function fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error>
(line 410 in mod.rs
):
The only check for supergroup migration (I haven't found a way of directly creating a supergroup in any of the clients I use, btw) is this:
if let Some(true) = try!(d.read_struct_field(
"supergroup_chat_created", 0, Decodable::decode)) {
return Ok(MessageType::SuperGroupChatCreated(GroupToSuperGroupMigration {
from: try_field!(d, "migrate_from_chat_id"),
to: try_field!(d, "migrate_to_chat_id"),
}))
};
However, the message only contains migrate_to_chat_id
, which in turn causes an error.
[This is propably too long and not the right format for an issue, so apologies in advance, thanks for this awesome library!]
from telegram-bot.
Fixed in #38 and in upstream.
from telegram-bot.
Related Issues (20)
- Callback queries inside channels
- It's not possible to get chat by string (username, groupname or channelname) HOT 2
- Confusing terminology for timeouts
- Raw Data from InputFile/MultiPart Value
- How I can get i64 from UserId type?
- error when forward anonymous admin's message
- How to send a bot initiated message? HOT 2
- update tokio to 0.3
- update tokio to 0.3
- Bot stuck on "invalid forward fields combination" error HOT 1
- The same message repeated over and over HOT 3
- Upgrade Tokio to v1.0 HOT 1
- Missing dice support
- Release latest crate version HOT 4
- Issue with self-signed cert in a Docker container HOT 3
- the library started failing (new update types) HOT 4
- Webhook example.
- Frankenstein - new telegram client for Rust HOT 5
- nvm
- Example poll.rs: thread 'main' panicked at 'there is no timer running, must be called from the context of a Tokio 0.2.x runtime' HOT 5
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.