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

[Notifier] added telegram options #36496

Merged
merged 1 commit into from Aug 9, 2020

Conversation

krasilnikovm
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
License MIT

I have added TelegramOptions model for sending a telegram message with options like the example I have used SlackOptions.

Testing notes:

  1. Create telegram bot https://core.telegram.org/bots#creating-a-new-bot
  2. Open telegram and join to the created chat
  3. Send a message to telegram
    for testing, I used the scripts
    scripts.zip

@krasilnikovm krasilnikovm force-pushed the add-telegram-options branch 2 times, most recently from 2629d9a to 8b80798 Compare April 24, 2020 17:02
*
* @see https://core.telegram.org/bots/api#inlinekeyboardbutton
*/
class InlineKeyboardButton extends AbstractKeyboardButton
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
class InlineKeyboardButton extends AbstractKeyboardButton
final class InlineKeyboardButton extends AbstractKeyboardButton

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

*
* @see https://core.telegram.org/bots/api#keyboardbutton
*/
class KeyboardButton extends AbstractKeyboardButton
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
class KeyboardButton extends AbstractKeyboardButton
final class KeyboardButton extends AbstractKeyboardButton

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

*
* @see https://core.telegram.org/bots/api#forcereply
*/
class ForceReply extends AbstractTelegramReplyMarkup
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
class ForceReply extends AbstractTelegramReplyMarkup
final class ForceReply extends AbstractTelegramReplyMarkup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

*
* @see https://core.telegram.org/bots/api#inlinekeyboardmarkup
*/
class InlineKeyboardMarkup extends AbstractTelegramReplyMarkup
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
class InlineKeyboardMarkup extends AbstractTelegramReplyMarkup
final class InlineKeyboardMarkup extends AbstractTelegramReplyMarkup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

*
* @see https://core.telegram.org/bots/api#replykeyboardremove
*/
class ReplyKeyboardRemove extends AbstractTelegramReplyMarkup
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
class ReplyKeyboardRemove extends AbstractTelegramReplyMarkup
final class ReplyKeyboardRemove extends AbstractTelegramReplyMarkup

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

Copy link
Member

@fabpot fabpot left a comment

Choose a reason for hiding this comment

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

LGTM. Anything else needs to be done before merging?

@fabpot
Copy link
Member

fabpot commented Aug 9, 2020

Thank you @krasilnikovm.

@fabpot fabpot merged commit f4668b5 into symfony:master Aug 9, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
@fabpot fabpot mentioned this pull request Oct 5, 2020
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.

None yet

6 participants