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

Added 3 more requests #412

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

DontforgetAntaiku
Copy link

Added 3 more button requests:

  • RequestChat
  • RequestUser
  • RequestUsers

def __init__(
self,
text: Text,
RequestButton: KeyboardButtonRequestChat,
Copy link
Owner

Choose a reason for hiding this comment

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

pep8?

Copy link
Author

Choose a reason for hiding this comment

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

Not exactly. Ruff

Copy link
Owner

Choose a reason for hiding this comment

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

Fix naming according to pep8

[
KeyboardButton(
text=await self.text.render_text(data, manager),
request_user=self.RequestButton,
Copy link
Owner

Choose a reason for hiding this comment

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

I am not sure it is good idea to have static request_id`

Copy link
Author

Choose a reason for hiding this comment

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

What do you mean? If I'm not mistaking, there're no static request_id. We provide RequestButton above which was set up earlier by developer.

Copy link
Owner

Choose a reason for hiding this comment

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

I mean once you declare widget in dialog, it will have same request id here.

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.

None yet

2 participants