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

the library started failing (new update types) #237

Open
ayrat555 opened this issue Mar 9, 2021 · 4 comments
Open

the library started failing (new update types) #237

ayrat555 opened this issue Mar 9, 2021 · 4 comments

Comments

@ayrat555
Copy link

ayrat555 commented Mar 9, 2021

Today the library started failing with :

Mar 09 10:28:22 vps695005 bash[29083]: [2021-03-09T09:28:22Z ERROR telegram_bot::api] error=no variant of enum UpdateKind found in flattened data at line 2 column 766
Mar 09 10:28:22 vps695005 bash[29083]: [2021-03-09T09:28:22Z ERROR telegram_bot::stream] request error error=no variant of enum UpdateKind found in flattened data at line 2 column 766

I think it's happening because telegram added two new update types (https://core.telegram.org/bots/api-changelog#march-9-2021)

@ayrat555
Copy link
Author

ayrat555 commented Mar 9, 2021

in my case, the new events were causing failures. I added new enum variants like https://github.com/telegram-rs/telegram-bot/pull/221/files to my fork. It solved the issue

@mann-ed
Copy link

mann-ed commented Mar 17, 2021

TLDR; I added these updates to my fork as well. My fork has the fixes from Master. Not sure if it's worth a pull-request. master...mann-ed:master

I created this my fork over a year ago to get inline response working, And i was just starting out learning RUST, so that is why there are several commits with same statement. I finally got it to work and went on to other things. Just recently my bot broke, and this is the fix.

@fxwiegand
Copy link

fxwiegand commented Mar 27, 2021

Using telegram-bot = { git = "https://github.com/ayrat555/telegram-bot", branch = "ayrat555/api-fixes-10" } worked for me! Thanks a lot @ayrat555 for the fix. It'd be great to have that merged somehow! 😄

@ayrat555
Copy link
Author

ayrat555 commented May 9, 2021

I wrote a new telegram library for rust - https://github.com/ayrat555/frankenstein. It's easy to use and have a minimal number of dependencies. You can even use an HTTP client of your choice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants