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

Skip to content

refactor: add enum constants #3336

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

Closed
wants to merge 8 commits into from
Closed

refactor: add enum constants #3336

wants to merge 8 commits into from

Conversation

lemontree210
Copy link
Member

@lemontree210 lemontree210 commented Nov 5, 2022

addresses #3107

* add constants for `max_connections`

* expand docstring for `secret_token`
@lemontree210 lemontree210 changed the title refactor(Bot) add enum constants for Bot.set_webhook() refactor(Bot) add enum constants Nov 5, 2022
@lemontree210 lemontree210 changed the title refactor(Bot) add enum constants refactor: add enum constants Nov 5, 2022
@harshil21 harshil21 added the ⚙️ documentation affected functionality: documentation label Nov 5, 2022
* add limits for heading

* add minimum proximity_alert_radius
(as it is non-zero)

* fix docstrings that link to HEADING
constant twice instead of PROXIMITY_ALERT_RADIUS
(and hence 360 was displayed instead of 100000)
@lemontree210
Copy link
Member Author

Question regarding limits for Location and send_location: I know that in Telegram API itself most limits are only listed in sendLocation and not in Location, e.g. live_period and heading.

Should I list all the limits in Location as well or do I stick to what's listed or not listed in Telegram API?

@harshil21
Copy link
Member

Should I list all the limits in Location as well or do I stick to what's listed or not listed in Telegram API?

I think we should stick to TG API docs.

@lemontree210 lemontree210 mentioned this pull request Nov 8, 2022
8 tasks
lemontree210 added a commit that referenced this pull request Nov 8, 2022
as suggested in review for PR #3336,
but in singular (rather than `...Limits`)
to conform with review for #3343
@lemontree210
Copy link
Member Author

closing this PR, all work moved to #3351 (with branches within same repo as opposed to fork)

@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⚙️ documentation affected functionality: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants