-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix telegram message update #8719
Conversation
Thanks for submitting a pull request 🚀 @kedz will take a look at it as soon as possible ✨ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @IzidoroBaltazar thank you for your contribution 🚀 I'd like to ask you to:
- add more context in the proposed changes (details of the error causing bot to crash) or link to GH issue if it exists
- add a test for this added functionality: you can either create a new file in
tests.core.channels.
astest_telegram.py
or you can add test in moduletests.core.test_channels.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if it's worth adding an extra assert
in the test to check that the message received by calling GET to the same route is the same as the edited_message
which was posted?
I don't understand this requirement. Have a look at the @telegram_webhook.route("/webhook", methods=["GET", "POST"])
async def message(request: Request) ->; Any:
if request.method == "POST": ^ there is only |
If the |
@IzidoroBaltazar I've checked with the team and the way GET |
Hi @IzidoroBaltazar could you please check if you have to update your branch with |
Hello @ancalita can you check now? I have updated my branch. |
you might either have to push a |
Hey @IzidoroBaltazar! Could you please check it and make sure your PR contains only the required changes? You might need to sync your fork using the instructions from here: https://docs.github.com/en/github/collaborating-with-pull-requests/working-with-forks/syncing-a-fork |
Is it correct now? I'm bit confused with github upstream system at the moment. |
Proposed changes:
When receiving edited message telegram channel connector crashes:
Status (please check what you already did):
black
(please check Readme for instructions)