Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Notifier] [Telegram] Add support to answer callback queries #48374

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

Merged
merged 1 commit into from
Dec 4, 2022

Conversation

alexsoft
Copy link
Contributor

@alexsoft alexsoft commented Nov 28, 2022

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #47213
License MIT
Doc PR -

Example

$options = new TelegramOptions();
$options->answerCallbackQuery('123456', $showAlert = true, $cacheTime = 1);

$chatMessage->options($options);

I've intentionally omitted url parameter as that would only work in case of game which does not fit into notifier use case.
Telegram Bot Api doc for answerCallbackQuery - https://core.telegram.org/bots/api#answercallbackquery

@carsonbot
Copy link

Hey!

To help keep things organized, we don't allow "Draft" pull requests. Could you please click the "ready for review" button or close this PR and open a new one when you are done?

Note that a pull request does not have to be "perfect" or "ready for merge" when you first open it. We just want it to be ready for a first review.

Cheers!

Carsonbot

@alexsoft alexsoft force-pushed the telegram-answer-callback-query branch from a680016 to f4ee6aa Compare November 28, 2022 20:29
@alexsoft alexsoft marked this pull request as ready for review November 28, 2022 20:29
@alexsoft alexsoft requested a review from OskarStark as a code owner November 28, 2022 20:29
@carsonbot carsonbot added this to the 6.3 milestone Nov 28, 2022
@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.3 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@alexsoft alexsoft force-pushed the telegram-answer-callback-query branch 2 times, most recently from 486b417 to 6134571 Compare November 28, 2022 20:50
Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your first contribution 🎉

@OskarStark OskarStark changed the title [Notifier] Added support to answer Telegram callback queries [Notifier][Telegram] Add support to answer callback queries Nov 30, 2022
@alexsoft
Copy link
Contributor Author

Should I squash commits?

@carsonbot carsonbot changed the title [Notifier][Telegram] Add support to answer callback queries [Notifier] [Telegram] Add support to answer callback queries Dec 4, 2022
@OskarStark OskarStark force-pushed the telegram-answer-callback-query branch from 901abe4 to 77f19f5 Compare December 4, 2022 21:06
@OskarStark
Copy link
Contributor

Thanks for your work on this new feature!

@OskarStark
Copy link
Contributor

Should I squash commits?

I squashed them while merging.

Can you please open a PR in the symfony-docs repo about the new feature? Thank you

symfony/symfony-docs#1750

@fabpot fabpot mentioned this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Notifier][Telegram] Add the ability to use answerCallbackQuery API method
3 participants