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 options request_{username, name, photo } for KeyboardButtonReques… #312

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

denvic1
Copy link

@denvic1 denvic1 commented Sep 5, 2024

…tUsers

Copy link
Contributor

@AlexWayfer AlexWayfer left a comment

Choose a reason for hiding this comment

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

Should not you update the type_attributes.yml?

lib/telegram/bot/version.rb Outdated Show resolved Hide resolved
@@ -5,7 +5,8 @@ module Bot
module Types
class UsersShared < Base
attribute :request_id, Types::Integer
attribute :user_ids, Types::Array.of(Types::Integer)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have you done this as an optional attribute?

Copy link
Author

Choose a reason for hiding this comment

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

This attribute is filled in in the current version. Left for compatibility

module Types
class SharedUser < Base
attribute :user_id, Types::Integer
attribute :first_name, Types::String
Copy link
Contributor

Choose a reason for hiding this comment

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

This is an optional too, according to spec

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

Successfully merging this pull request may close these issues.

2 participants