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

Add required type field to reactions #716

Merged
merged 2 commits into from
Aug 10, 2024
Merged

Add required type field to reactions #716

merged 2 commits into from
Aug 10, 2024

Conversation

megum1n
Copy link
Contributor

@megum1n megum1n commented Jul 12, 2024

https://core.telegram.org/bots/api#reactiontype
type field is required for setting reaction to a message. Telegram API will return 400 Bad Request if this field is missing.

React(c.Bot(), c.Chat(), c.Message(), react.React(react.ThumbUp))

Changes

  • Added Type property validation
  • Added constants with available reaction types

@SantiiRepair
Copy link

default should be "emoji"

@demget demget added this to the v3.4 milestone Aug 9, 2024
@demget demget added the bug label Aug 9, 2024
@demget demget changed the base branch from v3 to v3.4 August 9, 2024 13:08
@demget demget merged commit 08f2e85 into tucnak:v3.4 Aug 10, 2024
1 check passed
@SantiiRepair
Copy link

@demget when will these changes be released to the new version, the current version is 3.3.8.

@demget
Copy link
Collaborator

demget commented Aug 11, 2024

@demget when will these changes be released to the new version, the current version is 3.3.8.

Currently it's v3.4.1-beta.

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

Successfully merging this pull request may close these issues.

3 participants