René's URL Explorer Experiment


Title: Roles by Bibo-Joshi · Pull Request #1789 · python-telegram-bot/python-telegram-bot · GitHub

Open Graph Title: Roles by Bibo-Joshi · Pull Request #1789 · python-telegram-bot/python-telegram-bot

X Title: Roles by Bibo-Joshi · Pull Request #1789 · python-telegram-bot/python-telegram-bot

Description: This PR adds the functionality of restricting access to handlers to specified users (by id) specified chats (by id) chat admins chat creators Builds upon #1757 (see below) Closes #1151, #1562 Example usage: updater = Updater('TOKEN') dp = updater.dispatcher roles = updater.dispatcher.roles roles.add_admin('authors_user_id') roles.add_role(name='my_role_1') my_role_1 = roles['my_role_1'] roles.add_role(name='my_role_2', parent_roles=roles['my_role_1']) my_role_2 = roles['my_role_2'] def add_to_my_role_2(update, context): user = update.effective_user context.roles['my_role_2'].add_member(user.id) def add_to_my_role_1(update, context): user_id = update.message.text context.roles['my_role_1'].add_member(user_id) .... # Anyone can add themself to my_role_2 dp.add_handler(TypeHandler(Update, add_to_my_role_2)) # Only the admin can add users to my_role_1 dp.add_handler(MessageHandler(Filters.message, add_to_my_role_1, roles=roles.ADMINS)) # This will be accessable by my_role_2, my_role_1 and the admin dp.add_handler(SomeHandler(..., roles=my_role_2)) # This will be accessable by my_role_1 and the admin dp.add_handler(SomeHandler(..., roles=my_role_1)) # This will be accessable by anyone except my_role_1 and my_role_2 dp.add_handler(SomeHandler(..., roles=~my_role_1)) # This will be accessable by users, who are in my_role_2 bot not in my_role_1 dp.add_handler(SomeHandler(..., roles=~my_role_1 & my_role_2)) # This will be accessable only by the admins of the group the update was sent in dp.add_handler(SomeHandler(..., roles=roles.CHAT_ADMINS)) # This will be accessable only by the creator of the group the update was sent in dp.add_handler(SomeHandler(..., roles=roles.CHAT_CREATOR)) # You can compare the roles regarding hierarchy: roles.ADMINS >= roles['my_role_1'] #True roles.ADMINS >= roles['my_role_2'] #True roles['my_role_1'] < roles['my_role_2'] #False roles.ADMINS >= Role(...) #False, since neither of those is a parent of the other How does it work Added Classes Role Inherits from Filters.user (This is, where #1757 comes in. Can be changed to inherinting from BaseFilter if the reviewer want that) Can be combined by bitwise operations (This is why I'm Inheriting from Filters) Can be compared w.r.t. hierarchy. E.g. in above example: my_role_1 > my_role_2 Dynamically add/kick members Roles A container for multiple roles Inherits from dict to allow accessing the roles by roles['role_name'] Roles.ADMINS is parent to every role Roles.CHAT_ADMINS, Roles.CHAT_CREATOR as shortcuts for restricting acces in group chats Dynamically add/remove admins and roles Integration with handlers The base class Handler now has a __new__ method that makes sure, that check_update is called only, if the roles checked out. Alternatives approaches would be Make Handler.check_update check the roles directly and call super().check_updater in all the specific handlers. This means that custom handlers would have to change their check_update implementation. Then again, they may have to be adjusted to accept the roles argument anyway Add a metho Handler.check_update_with_roles that calles Handler.check_update after checking the roles. In the current code base, replace all calls to check_update with check_update_with_role. This would leave current implementation of check_update untouched. Integration with dispatcher Dispatcher.roles is the Roles instance managing the roles Dispatcher.roles is available as context.roles to allow editing roles in callbacks store_roles is added to persistence to allow keeping track of roles over restarts. I know that adding stuff to persistence should be done with care. But if we want dynamic access control (and I do), we need persistence here. ToDo Add roles to new PollAnswerHandler. As Poll updates have neither user nor chat, we don't need roles with PollHandler Cache chat admins and creators (timeout is customizable via roles.CHAT_ADMINS.timeout = ...) Handle private chats correctly with roles.CHAT_ADMINS/CHAT_CREATOR (this is as easy if checking chat.id == user.id) When merged, we should create a wiki page. Important points to mention there: Hard coding dp.roles.add_admin(id) will always add the user to admins on start up with persistence, even if they are removed by dynamic access control. Thus, only the author of the bot should be hard coded as admin. Admins should only be in roles.ADMINS, else they might be excluded by roles=~roles['my_role'], if they are in my_role Hard coding dp.roles.add_role(name='my_group') will lead to ValueError on restart with persistence because after restoring the data, the role my_group will already be set. Use 'my_group' in dp.roles to check for that before adding the group. Depending on how long it will take to merge this: Don't use all in persistence (see #1766) Use tempfile module in persistence tests (see #1765) Add type hinting (see #1373)

Open Graph Description: This PR adds the functionality of restricting access to handlers to specified users (by id) specified chats (by id) chat admins chat creators Builds upon #1757 (see below) Closes #1151, #1562 Exa...

X Description: This PR adds the functionality of restricting access to handlers to specified users (by id) specified chats (by id) chat admins chat creators Builds upon #1757 (see below) Closes #1151, #1562 Exa...

Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/pull/1789

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4d8cf8be-d5a6-f3b6-4dd1-264730739a7e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8590:2E7EBB:500AF4F:64FB2F2:6B026015
html-safe-nonce2372e30b66da9d563237b57b58cb94f3ec46094cf859f6adf83d69a91f1d7598
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTkwOjJFN0VCQjo1MDBBRjRGOjY0RkIyRjI6NkIwMjYwMTUiLCJ2aXNpdG9yX2lkIjoiMjczNzU1MDE0OTgyMjg2NTQyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacff36dc39525aa670846f42d02f10cbe7e3cd7e8a31eaf6132a0fa4521b6d838a
hovercard-subject-tagpull_request:378498595
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
twitter:imagehttps://avatars.githubusercontent.com/u/22366557?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/22366557?s=400&v=4
og:image:altThis PR adds the functionality of restricting access to handlers to specified users (by id) specified chats (by id) chat admins chat creators Builds upon #1757 (see below) Closes #1151, #1562 Exa...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git
octolytics-dimension-user_id16178365
octolytics-dimension-user_loginpython-telegram-bot
octolytics-dimension-repository_id38696925
octolytics-dimension-repository_nwopython-telegram-bot/python-telegram-bot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38696925
octolytics-dimension-repository_network_root_nwopython-telegram-bot/python-telegram-bot
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-telegram-bot%2Fpython-telegram-bot%2Fpull%2F1789%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-telegram-bot%2Fpython-telegram-bot%2Fpull%2F1789%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-telegram-bot%2Fpython-telegram-bot
Reloadhttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
Reloadhttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
Reloadhttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
python-telegram-bothttps://github.com/python-telegram-bot
python-telegram-bothttps://github.com/python-telegram-bot/python-telegram-bot
Codehttps://github.com/python-telegram-bot/python-telegram-bot
Issues23 (23)https://github.com/python-telegram-bot/python-telegram-bot/issues
Pull requests19 (19)https://github.com/python-telegram-bot/python-telegram-bot/pulls
Discussionshttps://github.com/python-telegram-bot/python-telegram-bot/discussions
Actionshttps://github.com/python-telegram-bot/python-telegram-bot/actions
Projectshttps://github.com/python-telegram-bot/python-telegram-bot/projects
Wikihttps://github.com/python-telegram-bot/python-telegram-bot/wiki
Security and qualityhttps://github.com/python-telegram-bot/python-telegram-bot/security
Insightshttps://github.com/python-telegram-bot/python-telegram-bot/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-telegram-bot%2Fpython-telegram-bot%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-telegram-bot%2Fpython-telegram-bot%2Fissues%2Fnew%2Fchoose
Bibo-Joshihttps://github.com/Bibo-Joshi
masterhttps://github.com/python-telegram-bot/python-telegram-bot/tree/master
roleshttps://github.com/python-telegram-bot/python-telegram-bot/tree/roles
Conversation 6 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789
Commits 22 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits
Checks 0 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/checks
Files changed https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
Please reload this pagehttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
Roles https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#top
Show all changes 22 commits https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
b9d271a Make Filters.user attrs mutable Bibo-Joshi Feb 6, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/b9d271a9ef0d8dc1c9cc8a844b25925866ef545e
8b9c977 Add test_filters_user_empty_args Bibo-Joshi Feb 6, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/8b9c977979297a455a763c602280f21e43704655
67ac027 Add test_filters_user_empty_args Bibo-Joshi Feb 6, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/67ac0272bdbe401ceaf94a2de39e3b00bac991d7
cc7ead6 fix locks Bibo-Joshi Feb 6, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/cc7ead65665a8c2dae7443fe8f00ee9a4b95c6b3
eab517f Make codecov happy Bibo-Joshi Feb 6, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/eab517f65a38fae32e6bf6c20c9099d1b457cb5f
cdf202a First go on roles Bibo-Joshi Feb 16, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/cdf202a086758d2646b6502925d03e594df5c286
242b9ce Make user_ids and usernames sets Bibo-Joshi Feb 17, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/242b9ce60f6bd9eee6d95b210b220979fd64dba7
4e08848 Adjust equality for roles, override deepcopy Bibo-Joshi Feb 17, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/4e088489e082b51847a31041f3615f2bebf77ec0
9b0658f Improve equality handling Bibo-Joshi Feb 21, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/9b0658f7f2ac17f5a7d3be41c9aa006388b52ed5
41eb8fb Add JSON encoding to Roles Bibo-Joshi Feb 21, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/41eb8fbfb4d9533243514cca5ed1c9a5ffaf7f4f
2b23091 Allow chat ids in role Bibo-Joshi Feb 21, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/2b2309108da016734f2503b697c33b137d8c3b90
0b8b346 Add set_bot to roles Bibo-Joshi Feb 21, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/0b8b346889224abd62d6c7ceb4225019a9754096
f769b13 Add Roles to dispatcher and persistence Bibo-Joshi Feb 21, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/f769b134d200f607c157e39af04481519bb466b7
a4ed899 Add tests to messagehandler Bibo-Joshi Feb 21, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/a4ed899b10b258ee56895c1ca70b59c67a4479e4
6453074 Improve negation of roles, elaborate docs Bibo-Joshi Feb 21, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/64530742eccaad3cd8f722672bdbd65ea16d79da
0cc09c3 Readd child_roles, improve equals() and hierarchy, adjust tests Feb 26, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/0cc09c338ac3ddcb9d0eaa105ebb5581e488a73c
f3c98e9 cache chat admins and creators Bibo-Joshi Mar 5, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/f3c98e995b480e23a25f62f8338866fc68e051f3
cf4bee9 Improve codecoverage Bibo-Joshi Mar 5, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/cf4bee9d5581ad81f9544f4cdb671da2d6870df6
402916c Enhance ChatAdmins/CreatorRole Bibo-Joshi Mar 9, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/402916c6e63fdf63c01a5b49a2d814364afa4d47
4e942fb Roles for PollAnswerHandler Apr 7, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/4e942fbeb524eb758fcd5222afe5023b49cb62d6
d87ee38 Make Codacy happier Apr 7, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/d87ee38e246c55426cfb891458a4fe3ef932b16d
7c58a01 Merge branch 'master' into roles Bibo-Joshi Apr 10, 2020 https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/commits/7c58a011eed1a28b7e272e42b0f7d4a3952186a4
Clear filters https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
Please reload this pagehttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
Please reload this pagehttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
telegram.ext.chatadminsrole.rst https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-2a29015f95f85579477652efd915465b054d556649c06781ec1cbc36f80ed7ff
telegram.ext.chatcreatorrole.rst https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-5ddac733361daa882c4c8a0c62023b71d612c9b3ca9cab222633bcda360c598e
telegram.ext.role.rst https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-346363dee09324aeddbb1b4e9790a90756d4355bc271e5172eb63ebcfff8f304
telegram.ext.roles.rst https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-546dcea983d348c38ca96973a8ac264e9b0052caaa94ee0ea8c49e2b7b6350a0
telegram.ext.rst https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-ff001bb81d18e38762a8c6c6815249230e877a992e016474a7a9b974cf343f55
__init__.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-a2540ae3258b51edd104b57321ec5cf175d07674b907609900ba296eec12c600
basepersistence.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-66273af16d9dbb58e6758351318d8629d075979b82d8f6e0ad0f3f33f213f58d
callbackcontext.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-6ea94637f214d031dad75e17c46996104b42bddce09e9152811f12277c889303
callbackqueryhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-fcd0121353e8adc4932824742154029ea466dbe2eeefb011d2922a67d2c2bfd9
choseninlineresulthandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-b9b2b3979b2f94c6a992fbfd59df9e5fae154c29832beb89664688452ef38fe8
commandhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
conversationhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-3cf4d94165ed37bda70d563d48c8d22f2252dfd1753b86a86958e20622a15d53
dictpersistence.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-685fbb03e9542afcfaa368fcd606e194d684d8dab9c38265102bbed89e5f0b7c
dispatcher.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-f88ded2bad521b4f29f6581172da343e5767e97d243abe871cd4edb5ad9c9ebe
filters.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-6260592e9e0d28a464b383edf7c50a882910ff6d502f609313dc44e3cbfdae6c
handler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-0e7004c0674bf6efa17b7e8a739ee75291477e0e84c508e52bea0f93a530e880
inlinequeryhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-5a42014c14adfedb2469c92e0f0df6ebc417f4196c3e4b9e07b1f9190b7b37c0
messagehandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-779dd6103ae2b10c4dc6140cbf1f55334998699e8b2c00113a5ffdf71255680b
picklepersistence.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-69b5504b9c00565b26b73f0fc6c026108c0eaf1dab90a570986388e2d4c96f4c
pollanswerhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-8ce3c2745d6ab25d2668eec2edc15915822b3f625471f3a1127e310d7c8d9751
precheckoutqueryhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-d4a87cb85e59c65ab8a4b7b55f1f28c83f6109dd8e0ccf5490ef719a69d026e4
regexhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-554cc483740f586f1fddea1455d754bb8a09690c93be6955cd1b1493e565bea1
roles.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-b0c09935f5fabc61188c55eb379c2513cb75b2491906b2fae4631731f34fff93
shippingqueryhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-167d0970c469b2da90f0e0c76e399aa8b0361d1b9698f65235084ff5c488098a
conftest.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
test_callbackcontext.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-0ff6e926d687132ae997e435dd1b6908fadc8e36498cdca7f0e38279477fee7a
test_callbackqueryhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-8ce4f8b282b57884a036d3d12477769271c9f49ef48372b48fb6faef6e808b45
test_choseninlineresulthandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-6e5c4459476cd00da3f2e125d06e192514f5ccaffdcd5f7422f98a6e1d2c0ed4
test_commandhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-7c3c540313e3e99786458c431276f7ca557069eb3e6da02a35e59b2ea7d33875
test_conversationhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-966893359766932a3cfd1f019efada68f8f9eae6b79651fe1be42da405da8f8f
test_dispatcher.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-925124c40367a246099963cd86fc8cd86ffde0423866e4f7a5e53b44cb007752
test_filters.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-c42c96171310ba36a50fc20ad759507f08aa8212df793d97e33579522ffb39c4
test_inlinequeryhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-3162277d924fcd4ce20a00874bc01f3a7062405c1079a02cf22b19c87c31c314
test_messagehandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-1e1bbe009008a956465c1fac9c15f3c116c4b4d54f1ed1d093bc3ee02bafcbbd
test_persistence.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-d04e4aa4ef583d9618a01bafa941f0cd1046a525cb2018673ec9b34e78a5d07e
test_pollanswerhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-0ced4f32f9dc963febf47c619702f19d81911c515813f10173a47b6aa48ddd4c
test_pollhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-0697ee35374acad3a941f9ed975cdd1844625ad1ef80bdde1c1d1aff1dc5abad
test_precheckoutqueryhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-33259c14f631f31207df8ba3f992088a74f4427f2019890a463891f21f74aab7
test_regexhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-0fcef326f174949825b7c8bac9b3e2ee0eab8413aa44e3dc5126a1ea17cc28d7
test_roles.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-2473d0e52de202627746a8994f086ac39877062d1943fa39576d3038b8acd612
test_shippingqueryhandler.py https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-f4cefbeda003928eb8920140fd499d537dde3446237c491fdd0ee74f90713de9
docs/source/telegram.ext.chatadminsrole.rsthttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-2a29015f95f85579477652efd915465b054d556649c06781ec1cbc36f80ed7ff
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/docs/source/telegram.ext.chatadminsrole.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
docs/source/telegram.ext.chatcreatorrole.rsthttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-5ddac733361daa882c4c8a0c62023b71d612c9b3ca9cab222633bcda360c598e
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/docs/source/telegram.ext.chatcreatorrole.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
docs/source/telegram.ext.role.rsthttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-346363dee09324aeddbb1b4e9790a90756d4355bc271e5172eb63ebcfff8f304
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/docs/source/telegram.ext.role.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
docs/source/telegram.ext.roles.rsthttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-546dcea983d348c38ca96973a8ac264e9b0052caaa94ee0ea8c49e2b7b6350a0
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/docs/source/telegram.ext.roles.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
docs/source/telegram.ext.rsthttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-ff001bb81d18e38762a8c6c6815249230e877a992e016474a7a9b974cf343f55
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/docs/source/telegram.ext.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-ff001bb81d18e38762a8c6c6815249230e877a992e016474a7a9b974cf343f55
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-ff001bb81d18e38762a8c6c6815249230e877a992e016474a7a9b974cf343f55
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-ff001bb81d18e38762a8c6c6815249230e877a992e016474a7a9b974cf343f55
telegram/ext/__init__.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-a2540ae3258b51edd104b57321ec5cf175d07674b907609900ba296eec12c600
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/telegram/ext/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-a2540ae3258b51edd104b57321ec5cf175d07674b907609900ba296eec12c600
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-a2540ae3258b51edd104b57321ec5cf175d07674b907609900ba296eec12c600
telegram/ext/basepersistence.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-66273af16d9dbb58e6758351318d8629d075979b82d8f6e0ad0f3f33f213f58d
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/telegram/ext/basepersistence.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-66273af16d9dbb58e6758351318d8629d075979b82d8f6e0ad0f3f33f213f58d
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-66273af16d9dbb58e6758351318d8629d075979b82d8f6e0ad0f3f33f213f58d
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-66273af16d9dbb58e6758351318d8629d075979b82d8f6e0ad0f3f33f213f58d
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-66273af16d9dbb58e6758351318d8629d075979b82d8f6e0ad0f3f33f213f58d
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-66273af16d9dbb58e6758351318d8629d075979b82d8f6e0ad0f3f33f213f58d
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-66273af16d9dbb58e6758351318d8629d075979b82d8f6e0ad0f3f33f213f58d
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-66273af16d9dbb58e6758351318d8629d075979b82d8f6e0ad0f3f33f213f58d
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-66273af16d9dbb58e6758351318d8629d075979b82d8f6e0ad0f3f33f213f58d
telegram/ext/callbackcontext.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-6ea94637f214d031dad75e17c46996104b42bddce09e9152811f12277c889303
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/telegram/ext/callbackcontext.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-6ea94637f214d031dad75e17c46996104b42bddce09e9152811f12277c889303
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-6ea94637f214d031dad75e17c46996104b42bddce09e9152811f12277c889303
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-6ea94637f214d031dad75e17c46996104b42bddce09e9152811f12277c889303
telegram/ext/callbackqueryhandler.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-fcd0121353e8adc4932824742154029ea466dbe2eeefb011d2922a67d2c2bfd9
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/telegram/ext/callbackqueryhandler.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-fcd0121353e8adc4932824742154029ea466dbe2eeefb011d2922a67d2c2bfd9
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-fcd0121353e8adc4932824742154029ea466dbe2eeefb011d2922a67d2c2bfd9
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-fcd0121353e8adc4932824742154029ea466dbe2eeefb011d2922a67d2c2bfd9
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-fcd0121353e8adc4932824742154029ea466dbe2eeefb011d2922a67d2c2bfd9
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-fcd0121353e8adc4932824742154029ea466dbe2eeefb011d2922a67d2c2bfd9
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-fcd0121353e8adc4932824742154029ea466dbe2eeefb011d2922a67d2c2bfd9
telegram/ext/choseninlineresulthandler.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-b9b2b3979b2f94c6a992fbfd59df9e5fae154c29832beb89664688452ef38fe8
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/telegram/ext/choseninlineresulthandler.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-b9b2b3979b2f94c6a992fbfd59df9e5fae154c29832beb89664688452ef38fe8
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-b9b2b3979b2f94c6a992fbfd59df9e5fae154c29832beb89664688452ef38fe8
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-b9b2b3979b2f94c6a992fbfd59df9e5fae154c29832beb89664688452ef38fe8
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-b9b2b3979b2f94c6a992fbfd59df9e5fae154c29832beb89664688452ef38fe8
telegram/ext/commandhandler.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/telegram/ext/commandhandler.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-71a298b187835b428f86d4f7bb5adceb489ed900036a4b9bebf7495a6e7975ca
telegram/ext/conversationhandler.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-3cf4d94165ed37bda70d563d48c8d22f2252dfd1753b86a86958e20622a15d53
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7c58a011eed1a28b7e272e42b0f7d4a3952186a4/telegram/ext/conversationhandler.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-3cf4d94165ed37bda70d563d48c8d22f2252dfd1753b86a86958e20622a15d53
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-3cf4d94165ed37bda70d563d48c8d22f2252dfd1753b86a86958e20622a15d53
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-3cf4d94165ed37bda70d563d48c8d22f2252dfd1753b86a86958e20622a15d53
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-3cf4d94165ed37bda70d563d48c8d22f2252dfd1753b86a86958e20622a15d53
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-3cf4d94165ed37bda70d563d48c8d22f2252dfd1753b86a86958e20622a15d53
https://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files#diff-3cf4d94165ed37bda70d563d48c8d22f2252dfd1753b86a86958e20622a15d53
Please reload this pagehttps://github.com/python-telegram-bot/python-telegram-bot/pull/1789/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.