Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Minor changes to README to ensure a streamlined setup expierience#5066

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
PLePort wants to merge3 commits intopython-telegram-bot:master
base:master
Choose a base branch
Loading
fromPLePort:master

Conversation

@PLePort
Copy link

Installing: Added another comment before $ pip install python-telegram-bot --upgrade that reinforces the need for Python 3.10+. I know this was stated at the beginning of the README, but adding it here would just act as another safety right before install in case it was glossed over. Also, I added a short note that building PTB from source requires Python headers and a C compiler.

Optional Dependencies: Added -U to the pip installs just in case there are outdated dependencies.

Copy link
Member

@Bibo-JoshiBibo-Joshi left a comment

Choose a reason for hiding this comment

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

Hey. Thanks for taking the time to PR! I've left some comments below


..code::shell
#Requires Python 3.10+.
Copy link
Member

Choose a reason for hiding this comment

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

Instead of having this as comment in the shell, I suggest moving it up to line 100, i.e.… ptb on Python 3.10+ via …

Comment on lines +170 to +171
* ``pip install-U"python-telegram-bot[all]"`` installs all optional dependencies.
* ``pip install-U"python-telegram-bot[ext]"`` installs all optional dependencies that are related to ``telegram.ext``, i.e. ``[rate-limiter, webhooks, callback-data, job-queue]``.
Copy link
Member

Choose a reason for hiding this comment

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

TBH I'd prefer not to have the upgrade option here. It's likely that people get to this section if they already have PTB installed but need an additional optional dependency. In that case, upgrading PTB might not actually be desired.

To install a pre-release, use the ``--pre`` `flag<https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-pre>`_ in addition.

You can also install ``python-telegram-bot`` from source, though this is usually not necessary.
You can also install ``python-telegram-bot`` from source, though this is usually not necessary. Before building from source, check that Pything headers and a C compiler are installed.
Copy link
Member

Choose a reason for hiding this comment

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

PTB is a pure-python package and doesn't have any C-bindings. What do you thnik Python headers & C compilers are required for?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Bibo-JoshiBibo-JoshiBibo-Joshi requested changes

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@PLePort@Bibo-Joshi

[8]ページ先頭

©2009-2025 Movatter.jp