Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot parse an update with boost link #944

Open
studentenherz opened this issue Sep 27, 2023 · 4 comments
Open

Cannot parse an update with boost link #944

studentenherz opened this issue Sep 27, 2023 · 4 comments
Labels
A-tba-types Area: representation of telegram bot API types A-tba-update Area: new Telegram Bot API version C-core crate: teloxide-core K-bug Kind: bug

Comments

@studentenherz
Copy link
Contributor

I got this logs that told me to report this as a bug:

Sep 25 13:05:31 oracle2-emwave dlebot[2422322]:  ERROR teloxide::dispatching::dispatcher > Cannot parse an update.
Sep 25 13:05:31 oracle2-emwave dlebot[2422322]: Error: Object {"channel_post": Object {"chat": Object {"id": Number(-1001237520732), "title": String("👨\u{200d}🏫 Buen Idioma 📚"), "type": String("channel"), "username": String("BuenIdioma")}, "date": Number(1695647130), "message_id": Number(7335), "pinned_message": Object {"chat": Object {"id": Number(-1001237520732), "title": String("👨\u{200d}🏫 Buen Idioma 📚"), "type": String("channel"), "username": String("BuenIdioma")}, "date": Number(1695517711), "edit_date": Number(1695520388), "message_id": Number(7331), "sender_chat": Object {"id": Number(-1001237520732), "title": String("👨\u{200d}🏫 Buen Idioma 📚"), "type": String("channel"), "username": String("BuenIdioma")}}, "sender_chat": Object {"id": Number(-1001237520732), "title": String("👨\u{200d}🏫 Buen Idioma 📚"), "type": String("channel"), "username": String("BuenIdioma")}}, "update_id": Number(548195478)}
Sep 25 13:05:31 oracle2-emwave dlebot[2422322]: This is a bug in teloxide-core, please open an issue here: https://github.com/teloxide/teloxide/issues.

That is in response to this pinned message that contains a boost link.

Is this the right way to report this issue?

Meta

  • teloxide version: 0.12.2
@studentenherz studentenherz added the K-bug Kind: bug label Sep 27, 2023
@studentenherz
Copy link
Contributor Author

I'm sorry, now I can't add/remove labels, but I guess this is not a bug but rather a C-core.

@WaffleLapkin
Copy link
Member

@studentenherz since recently, you actually can, try posting a comment with @teloxidebot label +C-core (you could also -bug in the same line, but I'd argue that is a bug).

@WaffleLapkin
Copy link
Member

WaffleLapkin commented Sep 27, 2023

A bit cleaned-up, the json looks like this:

{
    "channel_post":{
        "chat":{
            "id":-1001237520732,
            "title":"👨\u{200d}🏫 Buen Idioma 📚",
            "type":"channel",
            "username":"BuenIdioma"
        },
        "date":1695647130,
        "message_id":7335,
        "pinned_message":{
            "chat":{
                "id":-1001237520732,
                "title":"👨\u{200d}🏫 Buen Idioma 📚",
                "type":"channel",
                "username":"BuenIdioma"
            },
            "date":1695517711,
            "edit_date":1695520388,
            "message_id":7331,
            "sender_chat":{
                "id":-1001237520732,
                "title":"👨\u{200d}🏫 Buen Idioma 📚",
                "type":"channel",
                "username":"BuenIdioma"
            }
        },
        "sender_chat":{
            "id":-1001237520732,
            "title":"👨\u{200d}🏫 Buen Idioma 📚",
            "type":"channel",
            "username":"BuenIdioma"
        }
    },
    "update_id":548195478
}

I don't immediately see what could be the problem here. Probably something wrong with our structures / deserialize impls, someone will have to investigate this. (and yes, this is the right way to report such issues)

@studentenherz
Copy link
Contributor Author

@teloxidebot label +C-core

@teloxidebot teloxidebot added the C-core crate: teloxide-core label Sep 27, 2023
@WaffleLapkin WaffleLapkin added A-tba-update Area: new Telegram Bot API version A-tba-types Area: representation of telegram bot API types labels Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tba-types Area: representation of telegram bot API types A-tba-update Area: new Telegram Bot API version C-core crate: teloxide-core K-bug Kind: bug
Projects
None yet
Development

No branches or pull requests

3 participants