harshil21
75e700b4f3
Add chango fragment for PR #5267
2026-06-17 07:35:35 +00:00
Harshil
143b64581d
Autogenerate Attribute docstrings ( #5246 )
2026-06-16 09:52:17 -04:00
Poolitzer
afb9fc4898
Fix: Delete the chango here
...
I wasn't able to in the PR, it was too quick
2026-06-12 10:03:03 +02:00
Poolitzer
5d663af824
Bump version to v22.8 ( #5262 )
2026-06-12 10:02:13 +02:00
Harshil
0dd6afc177
Documentation Improvements ( #5240 )
...
Co-authored-by: Poolitzer <github@poolitzer.eu >
2026-06-12 09:46:44 +02:00
Harshil
4c710a3455
Support Python 3.15 beta ( #5259 )
2026-06-12 09:36:40 +02:00
Abdelrahman Elkheir
0fb5678180
Full Support for Bot API 10.0 ( #5229 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Phil Bazun <Phil9lne@gmail.com >
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
2026-06-09 11:49:15 -04:00
renovate[bot]
ab2996713d
Update actions/stale action to v10.3.0 ( #5255 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-01 04:01:27 +00:00
renovate[bot]
cc7b55d837
Update github/codeql-action action to v4.36.0 ( #5256 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-01 03:55:54 +00:00
renovate[bot]
6cfed61395
Update pypa/gh-action-pypi-publish action to v1.14.0 ( #5257 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-01 03:44:49 +00:00
renovate[bot]
74e1d9fb5f
Update dependency sphinxcontrib-mermaid to v2.0.2 ( #5254 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-01 03:39:14 +00:00
renovate[bot]
351a282fa3
Update dependency astral-sh/uv to v0.11.16 ( #5253 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-01 03:38:21 +00:00
Harshil
59d2f62f81
Disallow packages newer than last 7 days ( #5247 )
2026-05-31 13:23:01 -04:00
Harshil
1f343592de
Make instantiation of TelegramObjects 15% faster ( #5250 )
2026-05-31 12:47:47 -04:00
renovate[bot]
4ad65a3b40
Update Ruff to v0.15.15 ( #5252 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-31 01:37:51 +00:00
renovate[bot]
1a83d47fb3
Update Ruff to v0.15.14 ( #5245 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-24 01:34:16 +00:00
karin0
6fdab3a58d
Check channel_post and edited_channel_post in Update.effective_user ( #5237 )
2026-05-20 17:44:41 -04:00
renovate[bot]
b4067ce363
Update Ruff to v0.15.13 ( #5233 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-17 01:20:28 +00:00
Harshil
85294fb58d
Full Support for Bot API 9.6 ( #5196 )
...
Co-authored-by: OuYoung <212045739+ouyooung@users.noreply.github.com >
2026-05-08 16:07:39 -04:00
Aleksandr Kovalko
7db5b4314a
Correct isinstance check variable in _MergedFilter.__init__ ( #5215 )
2026-05-04 08:48:38 -04:00
renovate[bot]
6d9e17a5dc
Update dependency astral-sh/uv to v0.11.8 ( #5221 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 02:12:18 +00:00
renovate[bot]
e79716ae35
Update jannekem/run-python-script-action action to v1.8 ( #5224 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 02:08:53 +00:00
renovate[bot]
69af37ded9
Update Mypy to v1.20.2 ( #5223 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 01:48:48 +00:00
renovate[bot]
818d17c44d
Update github/codeql-action action to v4.35.2 ( #5222 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 01:42:44 +00:00
renovate[bot]
80d515de39
Update actions/upload-artifact action to v7.0.1 ( #5220 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-01 01:33:06 +00:00
renovate[bot]
229b61a3ae
Update Ruff to v0.15.12 ( #5217 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-26 01:57:29 +00:00
renovate[bot]
f34db07d70
Update Ruff to v0.15.11 ( #5209 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-19 09:21:14 +00:00
renovate[bot]
d228b33916
Update Mypy to v1.20.1 ( #5199 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: poolitzer <github@poolitzer.eu >
2026-04-15 09:06:25 +00:00
renovate[bot]
170dca0ac4
Update dependency pytest to v9.0.3 [SECURITY] ( #5206 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-14 04:43:49 +00:00
renovate[bot]
d9dbd9481f
Update Ruff to v0.15.10 ( #5205 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-12 00:40:39 +00:00
renovate[bot]
fcceb91b1a
Update dependency cryptography to v46.0.7 [SECURITY] ( #5203 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-09 02:35:49 +00:00
renovate[bot]
875f4ab4e3
Update Ruff to v0.15.9 ( #5198 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-05 05:40:40 +00:00
renovate[bot]
87ecfee99e
Update github/codeql-action action to v4.35.1 ( #5194 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 06:10:51 +00:00
renovate[bot]
98f4dae84f
Update codecov/codecov-action action to v5.5.4 ( #5190 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 06:09:21 +00:00
renovate[bot]
6827d3da75
Update dependency mypy to v1.20.0 ( #5193 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 06:06:24 +00:00
renovate[bot]
bc5f3de3c3
Update dependency astral-sh/uv to v0.11.2 ( #5192 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 06:06:22 +00:00
renovate[bot]
5f406fb32f
Update astral-sh/setup-uv action to v7.6.0 ( #5191 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 01:18:16 +00:00
renovate[bot]
3ef646edbf
Update dependency cryptography to v46.0.6 [SECURITY] ( #5185 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-29 01:53:30 +00:00
renovate[bot]
1e82e6260b
Update Ruff to v0.15.8 ( #5184 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-29 00:46:04 +00:00
Krishna Chaitanya
26203b4474
Migrate from deprecated test-results-action to codecov-action ( #5183 )
2026-03-25 17:18:15 -07:00
renovate[bot]
73d54f4e20
Update Ruff to v0.15.7 ( #5177 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-22 02:01:41 +00:00
Harshil
5a41d2ba85
Bump Version to v22.7 ( #5176 )
2026-03-16 05:33:25 -04:00
Bibo-Joshi
108bfaf888
Documentation Improvements ( #5119 )
...
Co-authored-by: Poolitzer <github@poolitzer.eu >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2026-03-16 05:04:06 -04:00
renovate[bot]
3fd6932c2d
Lock file maintenance ( #5175 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 08:45:41 +00:00
renovate[bot]
22c31b187a
Update sigstore/gh-action-sigstore-python action to v3.2.0 ( #5172 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 08:27:21 +00:00
renovate[bot]
dd8c60fa76
Update stefanzweifel/git-auto-commit-action action to v7.1.0 ( #5173 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 08:17:34 +00:00
renovate[bot]
5bc0f4f5b4
Update actions/checkout action to v6 ( #5174 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 08:08:35 +00:00
renovate[bot]
80f3ccdcfa
Update GitHub Artifact Actions (major) ( #5171 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 07:45:18 +00:00
renovate[bot]
537693f082
Update dependency astral-sh/uv to v0.10.10 ( #5169 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 07:14:20 +00:00
renovate[bot]
72e8ded8cf
Update astral-sh/setup-uv action to v7.5.0 ( #5170 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 06:56:36 +00:00
Harshil
a48b08fb20
Bump Sphinx Related Dependencies, Fix uv and Docs Build ( #5168 )
2026-03-16 02:46:13 -04:00
renovate[bot]
ca2a834091
Update dependency sphinx to v9 ( #5167 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 03:53:43 +00:00
Harshil
66e4103318
Refactor TestStickerSetWithRequest tests ( #5161 )
2026-03-15 23:47:09 -04:00
Poolitzer
0cceafcab3
Full support for Bot API 9.5 ( #5155 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: OuYoung <212045739+ouyooung@users.noreply.github.com >
Co-authored-by: Hethon <65696516+hethon@users.noreply.github.com >
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com >
2026-03-15 02:58:30 -04:00
renovate[bot]
fb5234d9f5
Update Ruff to v0.15.6 ( #5166 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-15 01:42:49 +00:00
Harshil
6665c147d2
Preserve InlineKeyboardButton Arguments During callback_data Replacement ( #5159 )
2026-03-13 20:40:46 -04:00
Harshil
b18e46a80d
Make CI Run After chango Commits ( #5157 )
2026-03-12 18:09:43 -04:00
renovate[bot]
f85da33619
Update dependency tornado to v6.5.5 [SECURITY] ( #5164 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-12 01:24:41 +00:00
Harshil
cd015737eb
Replace pre-commit with prek ( #5142 )
2026-03-07 19:51:59 -05:00
renovate[bot]
330d2c2b99
Update Ruff to v0.15.5 ( #5156 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-08 00:24:13 +00:00
Harshil
0ae9f7b6c4
Full support for Bot API 9.4 ( #5137 )
...
Co-authored-by: OuYoung <212045739+ouyooung@users.noreply.github.com >
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Hethon <65696516+hethon@users.noreply.github.com >
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com >
2026-03-07 18:29:00 -05:00
renovate[bot]
cb239e7b1e
Update codecov/test-results-action action to v1.2.1 ( #5153 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 01:02:25 +00:00
renovate[bot]
cec4a6fe6f
Update astral-sh/setup-uv action to v7.3.1 ( #5152 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 01:02:22 +00:00
renovate[bot]
5660fd8a16
Update dependency astral-sh/uv to v0.10.7 ( #5154 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 01:01:36 +00:00
renovate[bot]
c19cd7b7bd
Update actions/stale action to v10.2.0 ( #5151 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 00:53:58 +00:00
renovate[bot]
48f8907882
Update Ruff to v0.15.4 ( #5150 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 00:53:17 +00:00
Harshil
f385a5e769
Remove Functionality Deprecated in Bot API 9.3 ( #5143 )
2026-02-24 13:29:14 -05:00
renovate[bot]
f18ab3a62a
Update Ruff to v0.15.2 ( #5146 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-22 05:05:31 +00:00
renovate[bot]
4bf77904fb
Update Pylint to v4.0.5 ( #5145 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-22 00:53:52 +00:00
Poolitzer
5dec05e0c3
Fix: Moved inline test file to _inline folder ( #5140 )
2026-02-19 10:55:48 -05:00
renovate[bot]
3b4426fb82
Update Ruff to v0.15.1 ( #5135 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-15 02:15:03 +00:00
renovate[bot]
89911bf708
Update dependency cryptography to v46.0.5 [SECURITY] ( #5125 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-10 22:30:16 +00:00
Poolitzer
2e7ec1d8db
Fixing failing sphinx builds ( #5124 )
2026-02-10 23:27:15 +01:00
renovate[bot]
8844fb3b2f
Update Ruff to v0.15.0 ( #5122 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: poolitzer <github@poolitzer.eu >
2026-02-10 22:01:22 +00:00
renovate[bot]
b82b25feeb
Update pre-commit hook cachetools to v7 ( #5117 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-10 17:22:38 +01:00
renovate[bot]
0653b52222
Update astral-sh/setup-uv action to v7.2.1 ( #5116 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 02:15:24 +00:00
renovate[bot]
3df3e6a534
Update dependency astral-sh/uv to v0.9.28 ( #5113 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 02:12:57 +00:00
renovate[bot]
dcf7cc4091
Update dependency pytest to v9.0.2 ( #5114 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 02:10:19 +00:00
renovate[bot]
c851d4360f
Update actions/setup-python action to v6.2.0 ( #5115 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 02:06:48 +00:00
renovate[bot]
6b42bb83d2
Update codecov/codecov-action action to v5.5.2 ( #5112 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 02:06:19 +00:00
renovate[bot]
dc587ade7e
Update Ruff to v0.14.14 ( #5110 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-25 00:38:39 +00:00
Bibo-Joshi
7dc44df21d
Bump Version to v22.6 ( #5108 )
2026-01-24 14:54:29 +01:00
Bibo-Joshi
2da606801a
Documentation Improvements ( #4988 )
2026-01-24 14:33:16 +01:00
Abdelrahman Elkheir
432a67efdd
Full Support for Bot API 9.3 ( #5078 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2026-01-24 14:20:28 +01:00
renovate[bot]
327f469cb4
Update Ruff to v0.14.13 ( #5107 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-18 01:41:16 +00:00
Bibo-Joshi
f9352c4d3e
Bump `chango` to 0.6.1 ( #5101 )
2026-01-11 10:36:09 +00:00
renovate[bot]
92eeee6266
Update Ruff to v0.14.11 ( #5100 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-11 00:40:04 +00:00
aka James4u
85119416c0
Add Fallback Name Support for Job Callbacks without __name__ ( #5088 )
2026-01-07 21:08:02 +01:00
pre-commit-ci[bot]
c804f693cc
Bump pre-commit Hooks to Latest Versions ( #5083 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2026-01-06 22:25:31 +01:00
calm
20f457c949
Fix Broken Links in Documentation ( #5080 )
2026-01-03 21:19:32 +01:00
Bibo-Joshi
3a1c494f22
Update Copyright to 2026 ( #5075 )
2026-01-01 15:34:02 +01:00
renovate[bot]
fb4f768113
Update Ruff to v0.14.10 ( #5070 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-21 05:06:49 +00:00
renovate[bot]
0cb090e97e
Update Ruff to v0.14.9 ( #5068 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-14 00:58:21 +00:00
renovate[bot]
69bba41117
Update Ruff to v0.14.8 ( #5067 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-07 01:34:23 +00:00
Bibo-Joshi
47df86ac4b
Re-Enable actions/stale Workflow ( #5009 )
2025-12-04 00:43:01 +01:00
renovate[bot]
ed61a6328b
Update dependency pytest to v9.0.1 ( #5061 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 01:03:05 +00:00
renovate[bot]
457bdf396f
Update astral-sh/setup-uv action to v7.1.4 ( #5059 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 01:01:13 +00:00
renovate[bot]
cf0f2170aa
Update github/codeql-action action to v4.31.5 ( #5062 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 01:00:26 +00:00
renovate[bot]
72ac20cf6a
Update dependency astral-sh/uv to v0.9.13 ( #5060 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 00:57:49 +00:00
renovate[bot]
a51c027503
Update actions/checkout action to v5.0.1 ( #5058 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 00:48:48 +00:00
renovate[bot]
38f1d4b94e
Update Pylint to v4.0.4 ( #5057 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-30 14:09:13 +00:00
renovate[bot]
6d17e3a258
Update Ruff to v0.14.7 ( #5056 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-30 02:14:00 +00:00
renovate[bot]
89ec34f636
Update Ruff to v0.14.6 ( #5055 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-23 01:58:45 +00:00
Bibo-Joshi
f55f4f5515
Stabilize Some Tests ( #5050 )
2025-11-16 08:40:00 +01:00
renovate[bot]
50b4a2c6e0
Update Pylint to v4.0.3 ( #5048 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-16 05:09:33 +00:00
renovate[bot]
e6f7ac635a
Update Ruff to v0.14.5 ( #5049 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-16 00:47:45 +00:00
Gritty_dev
98d9908937
Fix a Bug in Initialization Logic of Bot ( #5030 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-11-12 00:09:15 +01:00
Bibo-Joshi
1fd084cb9c
Reduce Frequence of Renovate Updates for Development Dependencies ( #5044 )
2025-11-08 22:07:51 +01:00
renovate[bot]
468f169be6
Update dependency pytest to v9 ( #5042 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-08 18:33:10 +00:00
renovate[bot]
fa3d2c93d2
Update Ruff to v0.14.4 ( #5041 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-08 00:57:15 +00:00
renovate[bot]
c85dfe7581
Update dependency astral-sh/uv to v0.9.8 ( #5040 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-08 00:56:49 +00:00
renovate[bot]
2d1408718b
Lock file maintenance ( #5035 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-01 03:38:33 +00:00
renovate[bot]
7cc359e150
Update github/codeql-action action to v4.31.2 ( #5033 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-01 03:34:56 +00:00
renovate[bot]
dfbb8e16f2
Update Ruff to v0.14.3 ( #5034 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-01 03:34:29 +00:00
renovate[bot]
3d8bf32c37
Update dependency astral-sh/uv to v0.9.7 ( #5032 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-01 03:33:07 +00:00
renovate[bot]
2182708ba9
Update astral-sh/setup-uv action to v7.1.2 ( #5029 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-26 17:03:22 +00:00
renovate[bot]
35a0bf5e1c
Update GitHub Artifact Actions (major) ( #5027 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 06:24:38 +00:00
renovate[bot]
fdfb41affd
Update Ruff to v0.14.2 ( #5024 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 06:19:08 +00:00
renovate[bot]
f15833c2b5
Update sigstore/gh-action-sigstore-python action to v3.1.0 ( #5026 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 02:57:43 +00:00
renovate[bot]
75a9c6f247
Update github/codeql-action action to v4.31.0 ( #5025 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 02:54:45 +00:00
renovate[bot]
0c15f88eb2
Update Pylint to v4.0.2 ( #5023 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 02:51:46 +00:00
renovate[bot]
a05fc1d148
Update dependency astral-sh/uv to v0.9.5 ( #5022 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 02:47:15 +00:00
renovate[bot]
1de4bab320
Update astral-sh/setup-uv action to v7.1.1 ( #5016 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-19 21:36:59 +00:00
renovate[bot]
b470e92332
Update Pylint to v4 (major) ( #5000 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-10-19 12:24:54 +00:00
renovate[bot]
af722ce530
Update dependency astral-sh/uv to v0.9.4 ( #5015 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-19 00:53:07 +00:00
renovate[bot]
be6f00aac6
Update dependency chango to ~=0.6.0 ( #5014 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-18 03:16:21 +00:00
renovate[bot]
f8616865c0
Update Ruff to v0.14.1 ( #5013 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-18 03:14:38 +00:00
renovate[bot]
ed98dac082
Update dependency astral-sh/uv to v0.9.3 ( #5011 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-18 03:13:11 +00:00
renovate[bot]
48794658c6
Update github/codeql-action action to v4.30.9 ( #5012 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-18 03:12:52 +00:00
Harshil
3329e2b296
Remove Support for Python 3.9 ( #4827 )
2025-10-16 08:12:29 +02:00
Bibo-Joshi
78f36dd744
Temporarily Disable actions/stale ( #5008 )
2025-10-16 07:42:56 +02:00
Harshil
3e6452e8a3
Add Freethreaded Python 3.14 to the Test Suite ( #5006 )
2025-10-16 07:41:43 +02:00
Bibo-Joshi
dd24b84dc2
Make `chango` Commit Re-Trigger Workflows ( #5007 )
2025-10-15 20:52:42 +02:00
Harshil
9c73d3d850
Use Python 3.14 Final in the Test Suite ( #5004 )
2025-10-15 10:31:02 +02:00
renovate[bot]
e6bff2c734
Update astral-sh/setup-uv action to v7.1.0 ( #5002 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-15 09:08:40 +02:00
renovate[bot]
42cf692135
Update stefanzweifel/git-auto-commit-action action to v7 ( #5001 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-15 08:57:51 +02:00
renovate[bot]
a00e9dd5d8
Update Ruff to v0.14.0 ( #4997 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-11 04:27:25 +00:00
renovate[bot]
28bce03f95
Update github/codeql-action action to v4 ( #4999 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-11 04:26:41 +00:00
renovate[bot]
a8b7c0eef0
Update astral-sh/setup-uv action to v7 ( #4998 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-11 01:12:35 +00:00
renovate[bot]
51e9ba0e19
Update Pylint to v3.3.9 ( #4995 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-11 01:09:42 +00:00
renovate[bot]
5c1cd39281
Update dependency astral-sh/uv to v0.9.2 ( #4996 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-11 01:06:44 +00:00
renovate[bot]
f8707c753b
Update github/codeql-action action to v3.30.8 ( #4994 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-11 01:06:00 +00:00
Bibo-Joshi
f6a0a63c2d
Update actions/stale Configuration to Use Issue Types ( #4990 )
2025-10-05 15:46:33 +02:00
renovate[bot]
68c1c856db
Update dependency astral-sh/uv to v0.8.23 ( #4989 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-04 20:25:36 +00:00
renovate[bot]
fd2d35f2e0
Update astral-sh/setup-uv action to v6.8.0 ( #4987 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-04 01:20:27 +00:00
renovate[bot]
082763e981
Update Ruff to v0.13.3 ( #4985 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-04 01:13:05 +00:00
renovate[bot]
3cfc97ceee
Update actions/stale action to v10.1.0 ( #4986 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-04 01:12:22 +00:00
renovate[bot]
995cf8f3cc
Update github/codeql-action action to v3.30.6 ( #4984 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-04 01:11:38 +00:00
renovate[bot]
6fe76e4820
Lock file maintenance ( #4980 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-01 01:39:41 +00:00
Bibo-Joshi
0015fcdf9d
Bump Version to v22.5 ( #4979 )
2025-09-27 15:33:00 +02:00
Bibo-Joshi
54f80cb54f
Documentation Improvements ( #4974 )
2025-09-27 15:09:47 +02:00
Bibo-Joshi
4bc2f1f60b
Fix Handling of Infinite Bootstrap Retries ( #4973 )
2025-09-27 14:40:26 +02:00
renovate[bot]
4f7f1ba21b
Update dependency furo to v2025.9.25 ( #4978 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-27 08:50:07 +00:00
renovate[bot]
9c0efaf2f6
Update Ruff to v0.13.2 ( #4977 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-27 02:17:29 +00:00
renovate[bot]
8434c0aaea
Update dependency astral-sh/uv to v0.8.22 ( #4975 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-27 02:16:05 +00:00
renovate[bot]
96138510ca
Update github/codeql-action action to v3.30.5 ( #4976 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-27 02:15:20 +00:00
Aweryc
6e951a9fd3
Convenience Functionality for BusinessOpeningHours ( #4861 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-24 17:23:23 +02:00
Abdelrahman Elkheir
1f5cfc8f9b
Move Parameter ReplyParameters.checklist_task_id to Last Position ( #4972 )
2025-09-24 09:48:03 +02:00
renovate[bot]
066ba5bb32
Update Ruff to v0.13.1 ( #4962 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2025-09-22 06:24:56 +00:00
renovate[bot]
0375b7d701
Update actions/stale action to v10 ( #4964 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-22 06:09:58 +00:00
renovate[bot]
67db3df426
Update actions/setup-python action to v6 ( #4963 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-22 05:59:46 +00:00
Harshil
152269cdcd
Tune Renovate Configuration ( #4968 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-22 07:56:44 +02:00
renovate[bot]
8043bf265d
Lock file maintenance ( #4967 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-22 00:29:06 +00:00
Bibo-Joshi
14f8e89cef
Properly Pin Dependency to astral/setup-uv in Copilot Setup Steps ( #4965 )
2025-09-20 06:41:56 +00:00
renovate[bot]
0f7d9ec5da
Update astral-sh/setup-uv action to v6.7.0 ( #4961 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-20 00:44:38 +00:00
renovate[bot]
047844f9af
Update Mypy to v1.18.2 ( #4960 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-20 00:37:31 +00:00
renovate[bot]
caceaf71b8
Update dependency astral-sh/uv to v0.8.19 ( #4959 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-20 00:36:32 +00:00
renovate[bot]
cfa9230f15
Update astral-sh/setup-uv digest to 208b0c0 ( #4958 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-20 00:35:13 +00:00
renovate[bot]
b37ba3a44e
Lock file maintenance ( #4955 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-18 17:58:08 +00:00
renovate[bot]
1116de4ebd
Lock file maintenance ( #4954 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-18 02:32:12 +00:00
renovate[bot]
437c4d7bfb
Update pre-commit hook cachetools to >=5.5.2,<5.6.0 ( #4951 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-15 20:50:01 +00:00
renovate[bot]
630db8f0ef
Update pre-commit hook APScheduler to ~=3.11.0 ( #4950 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-15 22:44:45 +02:00
renovate[bot]
008fcdea5f
Update Mypy to v1.18.1 ( #4949 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-15 20:25:43 +00:00
renovate[bot]
7aa1356089
Update Chango to v0.5.0 ( #4948 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 18:34:02 +02:00
renovate[bot]
ecfb4583d6
Update pypa/gh-action-pypi-publish action to v1.13.0 ( #4952 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 18:33:10 +02:00
renovate[bot]
f56371fae3
Update Pylint to v3.3.8 ( #4947 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 18:33:04 +02:00
renovate[bot]
9f3c5e4f2b
Update github/codeql-action action to v3.30.3 ( #4946 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 18:32:00 +02:00
renovate[bot]
489561d531
Update dependency astral-sh/uv to v0.8.17 ( #4945 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 18:31:55 +02:00
renovate[bot]
568e63933c
Update codecov/codecov-action action to v5.5.1 ( #4944 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 18:31:42 +02:00
renovate[bot]
f8f12e7bd4
Update astral-sh/setup-uv digest to b75a909 ( #4943 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 18:27:15 +02:00
renovate[bot]
94afda2b69
Lock File Maintenance ( #4938 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 18:25:46 +02:00
Harshil
a81fc86792
Tweak Renovate Configuration ( #4953 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-15 17:15:04 +02:00
Bibo-Joshi
0748538b6f
Bump Version to v22.4 ( #4939 )
2025-09-13 17:14:30 +02:00
Bibo-Joshi
539cc13097
Documentation Improvements ( #4878 )
...
Co-authored-by: Ca5parAD <github.unearned388@passmail.net >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Poolitzer <github@poolitzer.eu >
Co-authored-by: aelkheir <90580077+aelkheir@users.noreply.github.com >
2025-09-13 16:56:58 +02:00
Abdelrahman Elkheir
068ee7ea9d
Full Support for Bot API 9.2 ( #4911 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Poolitzer <github@poolitzer.eu >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-13 16:56:04 +02:00
renovate[bot]
73e5958ee6
Replace Dependabot with Renovate ( #4887 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-10 16:13:34 +02:00
Jãїиãм
0790bd8364
Support Business Message Deletion in telegram.Message.delete() ( #4869 )
...
Co-authored-by: aelkheir <90580077+aelkheir@users.noreply.github.com >
2025-09-07 20:50:27 +02:00
Harshil
9205d01edc
Use Tagged Release of pydantic in Development Dependencies ( #4934 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-07 20:25:22 +02:00
dependabot[bot]
55241e4aed
Bump pytest from 8.4.1 to 8.4.2 ( #4933 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-06 04:14:44 +02:00
dependabot[bot]
4a0fb4d533
Update cachetools requirement from <6.2.0,>=5.3.3 to >=5.3.3,<6.3.0 ( #4923 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-05 20:27:09 +02:00
dependabot[bot]
3e82dd4afd
Bump actions/checkout from 4.2.2 to 5.0.0 ( #4925 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-05 20:26:24 +02:00
dependabot[bot]
aa11132358
Bump codecov/codecov-action from 5.4.3 to 5.5.0 ( #4926 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-05 20:26:08 +02:00
dependabot[bot]
646730eed1
Bump github/codeql-action from 3.29.7 to 3.30.0 ( #4929 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-05 20:25:47 +02:00
dependabot[bot]
08385e27db
Bump actions/download-artifact from 4.3.0 to 5.0.0 ( #4927 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-05 20:25:21 +02:00
dependabot[bot]
8bb5c93c09
Bump astral-sh/setup-uv from 6.4.3 to 6.6.1 ( #4928 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-09-05 20:25:02 +02:00
Harshil
1472674587
Don't update uv.lock in copilot runtime environment ( #4915 )
2025-08-17 11:36:03 +02:00
Copilot
19d891aceb
Fix ResourceWarning when passing pathlib.Path to methods which accept file input ( #4908 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: harshil21 <37377066+harshil21@users.noreply.github.com >
2025-08-17 11:34:01 +02:00
Harshil
47fd9fcc7e
Add filters.FORUM ( #4906 )
2025-08-17 11:20:02 +02:00
Harshil
4654d195f5
Add GitHub Copilot Instructions and Setup Steps ( #4884 )
2025-08-08 06:53:48 +02:00
Harshil
58390dd350
Add uv.lock ( #4890 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-08-08 06:53:03 +02:00
Copilot
cea812dabd
Adapt Logic on Getting the Event Loop in Application.run_polling/webhook to Python 3.14 ( #4875 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: harshil21 <37377066+harshil21@users.noreply.github.com >
2025-08-02 17:18:53 +02:00
dependabot[bot]
94da8a8d67
Bump pytest-xdist from 3.6.1 to 3.8.0 ( #4893 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-08-02 03:54:46 +02:00
dependabot[bot]
616cfe59b9
Bump furo from 2024.8.6 to 2025.7.19 ( #4894 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-08-02 03:30:29 +02:00
dependabot[bot]
aeb4b58fa1
Bump pytest from 8.4.0 to 8.4.1 ( #4892 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-08-02 03:18:46 +02:00
dependabot[bot]
4196a3d787
Bump astral-sh/setup-uv from 6.3.1 to 6.4.3 ( #4895 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-08-02 03:06:03 +02:00
dependabot[bot]
7e75469697
Bump github/codeql-action from 3.29.2 to 3.29.5 ( #4896 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-08-02 03:05:47 +02:00
Bibo-Joshi
a76fa2c79e
Improve Internal Logic for Network Retries ( #4880 )
2025-08-02 02:11:57 +02:00
Poolitzer
197f29b6eb
Improve HTTPXRequest Connection Pool Settings ( #4882 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-07-31 20:54:35 +02:00
Harshil
89dd168ab2
Remove black, isort, flake8, and pyupgrade in favor of Ruff ( #4886 )
2025-07-31 19:25:36 +02:00
Abdelrahman Elkheir
6752547460
Add Convenience Properties to SharedUser and ChatShared ( #4881 )
...
Co-authored-by: david-shiko <dsb321mp@gmail.com >
2025-07-28 18:34:01 +02:00
Bibo-Joshi
996b0b3025
Address Failing Unit Test for send_paid_media ( #4879 )
2025-07-26 17:23:27 +02:00
Bibo-Joshi
c062712472
Bump Version to v22.3 ( #4870 )
2025-07-20 22:01:41 +02:00
Abdelrahman Elkheir
15ae1eac89
Documentation Improvements ( #4839 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-07-20 21:42:24 +02:00
Bibo-Joshi
1111d342d6
Full Support for Bot API 9.1 ( #4847 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com >
2025-07-20 21:39:21 +02:00
Xiaohu
e9dd490b2c
Make Gender Input Case-Insensitive in `conversationbot.py` ( #4855 )
2025-07-15 17:00:54 +02:00
pre-commit-ci[bot]
957345f6d9
Bump pre-commit Hooks to Latest Versions ( #4858 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-07-08 22:22:20 +02:00
Abdelrahman Elkheir
cedfc99e24
Remove Functionality Deprecated in API 9.0 ( #4852 )
2025-07-05 13:05:52 +02:00
dependabot[bot]
3f5f3a6888
Bump sigstore/gh-action-sigstore-python from 3.0.0 to 3.0.1 ( #4843 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-07-02 20:36:55 +02:00
dependabot[bot]
ea967b5e71
Bump astral-sh/setup-uv from 5.4.1 to 6.3.1 ( #4842 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-07-02 19:52:12 +02:00
dependabot[bot]
f1d4264f68
Bump github/codeql-action from 3.28.18 to 3.29.2 ( #4841 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-07-02 19:24:19 +02:00
dependabot[bot]
f55a4c24b6
Bump stefanzweifel/git-auto-commit-action from 5.2.0 to 6.0.1 ( #4840 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-07-02 19:24:02 +02:00
Bibo-Joshi
661045f962
Update API Token for Local Testing Bot ( #4837 )
2025-07-01 11:02:16 +02:00
Bibo-Joshi
b684afab96
Bump Version to v22.2 ( #4834 )
2025-06-29 20:04:17 +02:00
Bibo-Joshi
abe20cf2f3
Documentation Improvements ( #4810 )
...
Co-authored-by: Aweryc <93672316+Aweryc@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2025-06-29 18:20:51 +02:00
Abdelrahman Elkheir
979db096b1
Use datetime.timedelta to Represent Time Periods in Classes ( #4750 )
2025-06-29 18:09:32 +02:00
Bibo-Joshi
22ae75c944
Improve Informativeness of Network Errors ( #4822 )
2025-06-29 18:06:35 +02:00
dependabot[bot]
1585047b9b
Update cachetools requirement from <6.1.0,>=5.3.3 to >=5.3.3,<6.2.0 ( #4830 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-06-28 14:32:26 +02:00
Bibo-Joshi
d46ddf7318
Fix Handling of Parameters do_quote and allow_sending_without_reply in Message.reply_* ( #4818 )
2025-06-19 20:56:43 +02:00
Harshil
b15507fc22
Add Python 3.14 Beta To Test Matrix ( #4825 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-06-19 20:18:04 +02:00
locobott
1457679376
Allow for Pattern Matching Empty Inline Queries ( #4817 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: locobott <25104044+locobott@users.noreply.github.com >
2025-06-15 21:03:47 +02:00
Bibo-Joshi
f9bdba18e3
Bump httpx from ~=0.27 to >=0.27,<0.29 ( #4820 )
2025-06-08 17:17:38 +02:00
Harshil
e98e6571d1
Fix Typo in TelegramObject._get_attrs ( #4816 )
2025-06-07 14:48:02 +02:00
Bibo-Joshi
1fbab91307
Ensure Safe Handler Looping in Application.process_update/error ( #4802 )
...
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com >
2025-06-04 20:54:29 +02:00
dependabot[bot]
89556d02e3
Bump actions/setup-python from 5.5.0 to 5.6.0 ( #4812 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-06-02 21:36:43 +02:00
dependabot[bot]
a0db0415cf
Bump codecov/test-results-action from 1.1.0 to 1.1.1 ( #4815 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-06-02 21:20:32 +02:00
dependabot[bot]
862f102b49
Bump codecov/codecov-action from 5.4.2 to 5.4.3 ( #4814 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-06-02 21:06:01 +02:00
dependabot[bot]
1e976557e9
Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 ( #4813 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-06-02 20:37:44 +02:00
dependabot[bot]
9fa0e69f5a
Bump github/codeql-action from 3.28.16 to 3.28.18 ( #4811 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-06-02 20:37:06 +02:00
dependabot[bot]
d533ea2a72
Update cachetools requirement from <5.6.0,>=5.3.3 to >=5.3.3,<6.1.0 ( #4801 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-05-28 21:00:57 +02:00
Bibo-Joshi
828eda7c33
Rework Repository to src Layout ( #4798 )
2025-05-25 13:50:24 +02:00
Harshil
98e94a187f
Implement PEP 735 Dependency Groups ( #4800 )
2025-05-24 09:48:52 +02:00
Bibo-Joshi
8289a4fda6
Fix Bug in Automated Channel Announcement ( #4792 )
2025-05-19 20:58:37 +02:00
Bibo-Joshi
8782ae7bb5
Fix a Failing Test Case ( #4793 )
2025-05-19 20:58:14 +02:00
Bibo-Joshi
fc3863ac9a
Bump Version to v22.1 ( #4791 )
2025-05-15 22:18:11 +02:00
Bibo-Joshi
c57e9fa5d6
Documentation Improvements ( #4730 )
...
Co-authored-by: Poolitzer <github@poolitzer.eu >
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com >
2025-05-15 21:57:07 +02:00
Bibo-Joshi
7078059e80
Full Support for Bot API 9.0 ( #4756 )
...
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com >
2025-05-15 21:56:10 +02:00
pre-commit-ci[bot]
c34e19edfd
Bump pre-commit Hooks to Latest Versions ( #4748 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-05-12 21:23:25 +02:00
dependabot[bot]
2fc04e1e10
Bump actions/upload-artifact from 4.5.0 to 4.6.2 ( #4776 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-05-03 21:03:39 +02:00
dependabot[bot]
08006013c3
Bump actions/download-artifact from 4.2.1 to 4.3.0 ( #4779 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-05-03 20:40:35 +02:00
dependabot[bot]
4c61403322
Bump codecov/codecov-action from 5.1.2 to 5.4.2 ( #4775 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-05-03 20:40:02 +02:00
dependabot[bot]
b0faae9d47
Bump stefanzweifel/git-auto-commit-action from 5.1.0 to 5.2.0 ( #4777 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-05-03 20:39:19 +02:00
dependabot[bot]
4868565b71
Bump github/codeql-action from 3.28.13 to 3.28.16 ( #4778 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-05-03 20:38:58 +02:00
Bibo-Joshi
486ceaa6cf
Clarify Documentation and Type Hints of Input(Paid)Media ( #4762 )
...
Co-authored-by: aelkheir <90580077+aelkheir@users.noreply.github.com >
2025-04-20 10:48:51 +02:00
Bibo-Joshi
54ce1d8d82
Fine Tune chango and Release Workflows ( #4758 )
2025-04-19 18:40:47 +02:00
ngrogolev
17ae6a7028
Fix Handling of Defaults for InputPaidMedia ( #4761 )
...
Co-authored-by: Nikita Grogolev <ngrogolev@leantech.ai >
2025-04-19 17:02:43 +02:00
Bibo-Joshi
c6e12b1958
Drop Backward Compatibility for user_id in send_gift ( #4692 )
2025-04-11 19:16:31 +02:00
Poolitzer
ed9496b91a
Ensure Proper Execution of Bot.shutdown ( #4733 )
2025-04-08 19:45:10 +02:00
dependabot[bot]
7823822a41
Bump actions/setup-python from 5.4.0 to 5.5.0 ( #4742 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-04-07 20:26:31 +02:00
Bibo-Joshi
a9e53af3d1
Update AUTHORS.rst, Adding @aelkheir to Active Development Team ( #4747 )
2025-04-07 19:55:31 +02:00
dependabot[bot]
e69069d2c8
Bump github/codeql-action from 3.28.10 to 3.28.13 ( #4743 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-04-06 20:32:46 +02:00
dependabot[bot]
511222c191
Bump codecov/test-results-action from 1.0.2 to 1.1.0 ( #4741 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-04-06 20:25:39 +02:00
dependabot[bot]
036910ec0c
Bump astral-sh/setup-uv from 5.3.1 to 5.4.1 ( #4744 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-04-06 20:25:13 +02:00
dependabot[bot]
3cd8a409ee
Bump actions/download-artifact from 4.1.8 to 4.2.1 ( #4745 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-04-06 20:10:00 +02:00
Abdelrahman Elkheir
83676dec16
Reenable test_official Blocked by Debug Remnant ( #4746 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-04-06 20:04:00 +02:00
Bibo-Joshi
9ebd48903b
Bump Version to v22.0 ( #4719 )
2025-03-15 09:53:21 +01:00
Bibo-Joshi
1cf000c806
Remove Functionality Deprecated in v20.x ( #4671 )
2025-03-15 09:21:37 +01:00
Bibo-Joshi
150328799a
Bump Bibo-Joshi/chango from 0.3.2 to 0.4.0 ( #4712 )
2025-03-09 16:02:24 +01:00
dependabot[bot]
6d7134608f
Bump sphinx from 8.1.3 to 8.2.3 ( #4710 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-03-08 19:55:21 +01:00
dependabot[bot]
8266870ed7
Bump pytest from 8.3.4 to 8.3.5 ( #4709 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-03-08 19:55:08 +01:00
dependabot[bot]
519dee7e0c
Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4 ( #4701 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-03-02 10:57:12 +01:00
dependabot[bot]
753f3727aa
Bump Bibo-Joshi/chango from 0.3.1 to 0.3.2 ( #4700 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-03-02 10:56:42 +01:00
dependabot[bot]
892a66d0e8
Bump astral-sh/setup-uv from 5.2.2 to 5.3.1 ( #4699 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-03-02 10:56:11 +01:00
dependabot[bot]
d5e5874f96
Bump srvaroa/labeler from 1.12.0 to 1.13.0 ( #4698 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-03-02 10:54:56 +01:00
dependabot[bot]
a5dacab8a9
Bump github/codeql-action from 3.28.8 to 3.28.10 ( #4697 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-03-02 10:54:18 +01:00
Bibo-Joshi
76d8eaf0f2
Add chango As Changelog Management Tool ( #4672 )
2025-03-01 18:35:16 +01:00
Bibo-Joshi
1e4f31f1bb
Bump Version to v21.11.1 ( #4696 )
2025-03-01 12:45:22 +01:00
Bibo-Joshi
3464f24129
Fix ReadTheDocs Build ( #4695 )
2025-03-01 12:28:05 +01:00
Bibo-Joshi
9323caf2b8
Bump Version to v21.11 ( #4694 )
2025-03-01 12:03:34 +01:00
Bibo-Joshi
77c25931a9
Stabilize Linkcheck Test ( #4693 )
2025-03-01 11:31:41 +01:00
Poolitzer
b75948ede4
Full Support for Bot API 8.3 ( #4676 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com >
2025-03-01 11:13:46 +01:00
Bibo-Joshi
b0d22acedb
Add Bootstrapping Logic to Application.run_* ( #4673 )
2025-03-01 11:12:59 +01:00
Bibo-Joshi
35a48f82f4
Documentation Improvements ( #4641 )
...
Co-authored-by: Poolitzer <github@poolitzer.eu >
2025-02-27 20:18:15 +01:00
Bibo-Joshi
5d73132838
Make provider_token Argument Optional ( #4689 )
2025-02-26 20:57:57 +01:00
Bibo-Joshi
7c23087d08
Remove Deprecated InlineQueryResultArticle.hide_url ( #4640 )
2025-02-17 17:49:31 +01:00
vavasik800
2d5f4a68bb
Fix a Bug in edit_user_star_subscription ( #4681 )
2025-02-15 16:21:33 +01:00
Bibo-Joshi
f9f1533c40
Refactor Tests for TelegramObject Classes with Subclasses ( #4654 )
2025-02-06 12:46:33 +01:00
Bibo-Joshi
dfb0ae3747
Use Fine Grained Permissions for GitHub Actions Workflows ( #4668 )
2025-02-02 10:24:46 +01:00
dependabot[bot]
64006aa7ae
Bump actions/setup-python from 5.3.0 to 5.4.0 ( #4665 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-02-02 09:52:35 +01:00
dependabot[bot]
69ddc47a6e
Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 ( #4666 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 09:34:10 +01:00
Bibo-Joshi
a2150b3751
Accept datetime.timedelta Input in Bot Method Parameters ( #4651 )
2025-02-02 09:31:18 +01:00
dependabot[bot]
79acc1ae53
Bump actions/stale from 9.0.0 to 9.1.0 ( #4667 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 09:22:47 +01:00
dependabot[bot]
4cdb1a0cf7
Bump astral-sh/setup-uv from 5.1.0 to 5.2.2 ( #4664 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 09:09:55 +01:00
dependabot[bot]
6319f4bae1
Bump codecov/test-results-action from 1.0.1 to 1.0.2 ( #4663 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 09:09:13 +01:00
Harshil
d7e063dbad
Overhaul Admonition Insertion in Documentation ( #4462 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-01-31 19:23:09 +01:00
Bibo-Joshi
5dd7b8f1e2
Extend Customization Support for Bot.base_(file_)url ( #4632 )
2025-01-23 06:01:27 +01:00
Bibo-Joshi
61b87ba318
Support allow_paid_broadcast in AIORateLimiter ( #4627 )
2025-01-23 05:59:39 +01:00
Bibo-Joshi
dd592cdd7c
Simplify Handling of Empty Data in TelegramObject.de_json and Friends ( #4617 )
2025-01-14 17:12:55 +01:00
Bibo-Joshi
f57dd52100
Add BaseUpdateProcessor.current_concurrent_updates ( #4626 )
2025-01-14 17:00:20 +01:00
pre-commit-ci[bot]
16605c54d7
Bump pre-commit Hooks to Latest Versions ( #4643 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-01-07 18:11:35 +01:00
Bibo-Joshi
e4b0f8cb64
Bump Version to v21.10 ( #4639 )
2025-01-03 12:11:53 +01:00
Poolitzer
f2dc0175cd
Full Support for Bot API 8.2 ( #4633 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2025-01-03 11:39:35 +01:00
Bibo-Joshi
a781a4fddb
Add Parameter pattern to JobQueue.jobs() ( #4613 )
2025-01-02 10:03:39 +01:00
Bibo-Joshi
679d038979
Ensure Forward Compatibility of Gift and Gifts ( #4634 )
2025-01-02 09:17:01 +01:00
dependabot[bot]
d0a6e5141c
Bump APS & Deprecate pytz Support ( #4582 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2025-01-01 19:43:52 +01:00
Bibo-Joshi
5f35304e63
Update Copyright to 2025 ( #4631 )
2025-01-01 14:51:12 +01:00
Poolitzer
3fc50c78eb
Remove Redundant pylint Suppressions ( #4628 )
2024-12-31 15:13:31 +01:00
dependabot[bot]
3c9bba63eb
Bump astral-sh/setup-uv from 4.2.0 to 5.1.0 ( #4625 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-31 11:47:39 +01:00
dependabot[bot]
a9a7b07b10
Bump codecov/codecov-action from 5.1.1 to 5.1.2 ( #4622 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-31 11:41:56 +01:00
dependabot[bot]
e1e7b621f1
Bump actions/upload-artifact from 4.4.3 to 4.5.0 ( #4623 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-30 23:03:03 +01:00
dependabot[bot]
dfb3c13d1d
Bump github/codeql-action from 3.27.9 to 3.28.0 ( #4624 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-30 23:02:43 +01:00
Bibo-Joshi
f7a3f67a9f
Use Custom Labels for dependabot PRs ( #4621 )
2024-12-30 22:50:23 +01:00
Bibo-Joshi
a6cd9c5292
Allow Input of Type Sticker for Several Methods ( #4616 )
2024-12-29 20:16:46 +01:00
Bibo-Joshi
df20e49db1
Refactor Module Structure and Tests for Star Payments Classes ( #4615 )
2024-12-29 17:58:37 +01:00
Juan Andrés Cuevas
4f255b6e21
Unify datetime Imports ( #4605 )
...
Co-authored-by: Miguel Salomon <128310363+Migueldsc12@users.noreply.github.com >
Co-authored-by: Jeamhowards Montiel <106713677+Jeam-zx@users.noreply.github.com >
Co-authored-by: Snehashish Biswas <coderrx06@gmail.com >
Co-authored-by: Luis Pérez <luis.i.perez.0@gmail.com >
Co-authored-by: henryg311 <55552582+henryg311@users.noreply.github.com >
Co-authored-by: AnyaMarcanito <129221958+AnyaMarcanito@users.noreply.github.com >
Co-authored-by: Jeam Montiel <19-10234@usb.ve >
2024-12-15 10:26:37 +01:00
Bibo-Joshi
4afe174b5c
Add Static Security Analysis of GitHub Actions Workflows ( #4606 )
2024-12-13 22:16:31 +01:00
Bibo-Joshi
2ac52018c2
Bump Version to v21.9 ( #4601 )
2024-12-07 13:39:41 +01:00
dependabot[bot]
ca7a30963d
Update aiolimiter requirement from ~=1.1.0 to >=1.1,<1.3 ( #4595 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-12-07 11:31:52 +01:00
dependabot[bot]
c42a230b96
Bump pytest from 8.3.3 to 8.3.4 ( #4596 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-12-07 11:15:53 +01:00
Luis Pérez
ce9742a602
Use MessageLimit.DEEP_LINK_LENGTH in helpers.create_deep_linked_url ( #4597 )
2024-12-07 10:25:13 +01:00
Bibo-Joshi
43279543a3
Full Support for Bot API 8.1 ( #4594 )
2024-12-07 10:20:08 +01:00
Luis Pérez
eda2172617
Allow Sequence Input for allowed_updates in Application and Updater Methods ( #4589 )
2024-12-04 21:20:12 +01:00
dependabot[bot]
89dfa37dbf
Bump codecov/codecov-action from 4 to 5 ( #4585 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-04 21:04:47 +01:00
Luis Pérez
3709c2fa93
Bump pylint to v3.3.2 to Improve Python 3.13 Support ( #4590 )
2024-12-04 20:54:03 +01:00
dependabot[bot]
da93fe94ae
Bump srvaroa/labeler from 1.11.1 to 1.12.0 ( #4586 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 06:17:52 +01:00
Bibo-Joshi
cec34e4bca
Bump Version to v21.8 ( #4583 )
2024-12-01 12:19:55 +01:00
Bibo-Joshi
ffe23be992
Documentation Improvements ( #4573 , #4565 )
...
Co-authored-by: Snehashish Biswas <coderrx06@gmail.com >
Co-authored-by: poolitzer <github@poolitzer.eu >
2024-12-01 11:47:38 +01:00
Bibo-Joshi
ef1685c436
Full Support for Bot API 8.0 ( #4566 , #4568 , #4570 , #4571 , #4574 , #4576 , #4572 )
2024-12-01 10:26:48 +01:00
Bibo-Joshi
151123745e
Bump Version to v21.7 ( #4557 )
2024-11-04 21:29:59 +01:00
Bibo-Joshi
0eb11ff3e9
Documentation Improvements ( #4536 , #4556 )
...
Co-authored-by: Abubakar Alaya <ecode5814@gmail.com >
2024-11-04 20:38:41 +01:00
Bibo-Joshi
dab75fb963
Add Message.reply_paid_media ( #4551 )
2024-11-04 20:33:56 +01:00
Bibo-Joshi
62f89758d7
Bot API 7.11 ( #4546 )
2024-11-04 20:11:10 +01:00
Bibo-Joshi
7a8f4412b2
Update Issue Templates to Use Issue Types ( #4553 )
2024-11-04 19:08:04 +01:00
Bibo-Joshi
032a859149
Update Automation to Label Changes ( #4552 )
2024-11-03 21:43:40 +01:00
Bibo-Joshi
507d6bc0e3
Improve Exception Handling in File.download_* ( #4542 )
2024-11-03 16:35:16 +01:00
dependabot[bot]
bd6a60bb30
Bump srvaroa/labeler from 1.11.0 to 1.11.1 ( #4549 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-02 18:04:50 +01:00
Bibo-Joshi
3c8f6ed42b
Fix Linkcheck Workflow ( #4545 )
2024-11-01 22:17:14 +01:00
Bibo-Joshi
6540f288f5
Use sphinx-build-compatibility to Keep Sphinx Compatibility ( #4492 )
2024-10-31 08:27:58 +01:00
Pablo Martínez
5ab82a9c2b
Drop Support for Python 3.8 ( #4398 )
...
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-10-24 20:48:49 +02:00
Bibo-Joshi
847b97f86e
Use Stable Python 3.13 Release in Test Suite ( #4535 )
2024-10-24 20:03:16 +02:00
Siloé Garcez
efacc3dd1b
Allow Sequence in Application.add_handlers ( #4531 )
2024-10-23 22:14:03 +02:00
dependabot[bot]
2ce687c8f1
Bump sphinx from 8.0.2 to 8.1.3 ( #4532 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2024-10-21 19:40:12 +02:00
dependabot[bot]
a39a59ee9b
Bump sphinxcontrib-mermaid from 0.9.2 to 1.0.0 ( #4529 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-21 19:12:44 +02:00
dependabot[bot]
06854633ab
Bump srvaroa/labeler from 1.10.1 to 1.11.0 ( #4509 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-10-02 03:00:45 +02:00
dependabot[bot]
9a8b208ef7
Bump Bibo-Joshi/pyright-type-completeness from 1.0.0 to 1.0.1 ( #4510 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-02 02:57:34 +02:00
Bibo-Joshi
2f06902518
Improve Test Instability Caused by Message Fixtures ( #4507 )
2024-10-01 07:16:29 +02:00
Bibo-Joshi
2bc65560eb
Stabilize Some Flaky Tests ( #4500 )
2024-09-25 18:53:26 +02:00
Bibo-Joshi
79e589b39e
Reduce Creation of HTTP Clients in Tests ( #4493 )
2024-09-25 17:17:55 +02:00
Bibo-Joshi
bd3cdbcdbd
Update pytest-xdist Usage ( #4491 )
2024-09-22 19:49:48 +02:00
Bibo-Joshi
9709c03b35
Fix Failing Tests by Making Them Independent ( #4494 )
2024-09-21 18:49:33 +02:00
Bibo-Joshi
3409f51107
Introduce Codecov's Test Analysis ( #4487 )
2024-09-21 17:15:22 +02:00
Bibo-Joshi
2eae2830f3
Maintenance Work on Bot Tests ( #4489 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2024-09-21 11:34:25 +02:00
Bibo-Joshi
28d19c3b9a
Introduce conftest.py for File Related Tests ( #4488 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2024-09-21 11:33:52 +02:00
Bibo-Joshi
e314e78d06
Bump Version to v21.6 ( #4486 )
2024-09-19 20:17:08 +02:00
Harshil
67a97ae5a7
API 7.10 ( #4461 , #4460 , #4463 , #4464 )
...
Co-authored-by: aelkheir <90580077+aelkheir@users.noreply.github.com >
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-09-17 18:09:19 +02:00
dependabot[bot]
9248c539d0
Bump pytest from 8.3.2 to 8.3.3 ( #4475 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-14 08:17:31 +02:00
Bibo-Joshi
6b5e46cc08
Improve Type Completeness ( #4466 )
2024-09-14 08:16:39 +02:00
Harshil
b3155b2e55
Update Python 3.13 Test Suite to RC2 ( #4471 )
2024-09-13 19:32:22 +02:00
Bibo-Joshi
ec909e62cf
Enforce the offline_bot Fixture in Test*WithoutRequest ( #4465 )
2024-09-13 19:10:09 +02:00
Bibo-Joshi
1223e851c3
Add Parameter httpx_kwargs to HTTPXRequest ( #4451 )
2024-09-11 22:34:18 +02:00
Bibo-Joshi
0b352b043e
Make Tests for telegram.ext Independent of Networking ( #4454 )
2024-09-09 07:32:32 +02:00
Bibo-Joshi
b9d2efdec5
Rename Testing Base Classes ( #4453 )
2024-09-03 05:24:25 +02:00
Bibo-Joshi
8c692d1008
Bump Version to v21.5 ( #4449 )
2024-09-01 15:25:34 +02:00
Bibo-Joshi
970d2ab085
Documentation Improvements ( #4400 , #4448 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Palaptin <100526200+Palaptin@users.noreply.github.com >
2024-09-01 14:12:41 +02:00
dependabot[bot]
60b439ff42
Update cachetools requirement from <5.5.0,>=5.3.3 to >=5.3.3,<5.6.0 ( #4437 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-09-01 10:35:11 +02:00
Bibo-Joshi
b17b0d248d
Improve PyPI Automation ( #4375 )
2024-09-01 09:34:20 +02:00
Bibo-Joshi
e0f36867cc
Add MessageEntity.shift_entities and MessageEntity.concatenate ( #4376 )
2024-09-01 09:33:12 +02:00
Poolitzer
01f689373c
Bot API 7.9 ( #4429 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2024-09-01 09:32:42 +02:00
Bibo-Joshi
1e05381133
Update Test Suite to New Test Channel Setup ( #4435 )
2024-08-26 20:16:35 +02:00
Martin Hjelmare
a05362c79a
Remove Surplus Logging from Updater Network Loop ( #4432 )
2024-08-19 16:40:28 +02:00
Palaptin
fbf07bf126
Improve Fixture Usage in test_message.py ( #4431 )
2024-08-19 16:14:01 +02:00
Harshil
3017bf00a4
Update Python 3.13 Test Suite to RC1 ( #4415 )
2024-08-13 17:58:08 +02:00
dependabot[bot]
374875c786
Bump sphinx from 7.4.7 to 8.0.2 and furo from 2024.7.18 to 2024.8.6 ( #4412 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2024-08-13 17:57:26 +02:00
Harshil
8f9db63f4f
Bump ruff and Add New Rules ( #4416 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-08-07 21:56:46 +02:00
Harshil
1787586902
Bugfix for "Available In" Admonitions ( #4413 )
2024-08-03 22:47:38 +02:00
dependabot[bot]
9c50a38512
Bump test-summary/action from 2.3 to 2.4 ( #4410 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-08-03 17:27:39 +02:00
Bibo-Joshi
3a49372591
Add Parameter read_file_handle to InputFile ( #4388 )
2024-08-02 22:28:38 +02:00
dependabot[bot]
e637d1733c
Bump pytest from 8.2.2 to 8.3.2 ( #4403 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-02 14:01:31 +02:00
dependabot[bot]
b89f5d6126
Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 ( #4411 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-08-02 14:00:26 +02:00
Bibo-Joshi
6578c76068
API 7.8 ( #4408 )
2024-08-02 13:43:27 +02:00
Bibo-Joshi
a967dbe37a
Document Return Types of RequestData Members ( #4396 )
2024-08-02 13:41:39 +02:00
dependabot[bot]
af76a8485f
Update cachetools requirement from ~=5.3.3 to >=5.3.3,<5.5.0 ( #4390 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-07-24 21:03:54 +02:00
MOHD YUSUF
8a205b10c0
Add Introductory Paragraphs to Telegram Types Subsections ( #4389 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-07-24 21:02:53 +02:00
dependabot[bot]
6d70c56159
Bump sphinx from 7.3.7 to 7.4.7 ( #4395 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-21 21:23:21 +02:00
Pablo Martínez
0913b859d7
Add Internal Constants for Encodings ( #4378 )
2024-07-21 21:13:30 +02:00
Bibo-Joshi
c3f17bb18e
Start Adapting to RTD Addons ( #4386 )
2024-07-21 21:12:30 +02:00
dependabot[bot]
006a290b7b
Bump furo from 2024.5.6 to 2024.7.18 ( #4392 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-21 21:05:01 +02:00
Jãїиãм
422993b8ab
Add Parameter game_pattern to CallbackQueryHandler ( #4353 )
2024-07-13 21:26:44 +02:00
Bibo-Joshi
2ac4e009d0
Bump version to v21.4 ( #4371 )
2024-07-12 17:40:42 +02:00
Bibo-Joshi
efe1392e73
Automate PyPI Releases ( #4364 )
2024-07-12 16:44:41 +02:00
Bibo-Joshi
0a673e8f7e
Documentation Improvements ( #4303 )
...
Co-authored-by: poolitzer <github@poolitzer.eu >
2024-07-12 16:33:42 +02:00
Bibo-Joshi
86c8cae40d
Restructure Readme ( #4362 )
2024-07-10 20:36:47 +02:00
Bibo-Joshi
f737702544
Use a Composite Action for Testing Type Completeness ( #4367 )
2024-07-10 17:33:04 +02:00
Bibo-Joshi
06f1da576e
Stabilize Some Concurrency Usages in Test Suite ( #4360 )
2024-07-10 17:11:22 +02:00
Bibo-Joshi
7a470d57c8
Add a Test Case for MenuButton ( #4363 )
2024-07-10 17:10:33 +02:00
Poolitzer
1714bfd8f6
Deprecate Inclusion of successful_payment in Message.effective_attachment ( #4365 )
2024-07-09 23:33:57 +02:00
Poolitzer
71e4015e22
API 7.7 ( #4356 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-07-09 10:35:18 +02:00
Harshil
52237cf00c
Add filters.PAID_MEDIA ( #4357 )
2024-07-07 22:23:31 +02:00
Harshil
dba7866aab
API 7.6 ( #4333 , #4341 , #4342 , #4334 , #4335 , #4344 , #4348 , #4351 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-07-07 13:08:52 +02:00
Bibo-Joshi
98bed6f01a
Log Received Data on Deserialization Errors ( #4304 )
2024-07-06 16:09:04 +02:00
Antares
42d7c8c477
Add MessageEntity.adjust_message_entities_to_utf_16 Utility Function ( #4323 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2024-07-06 16:08:29 +02:00
Poolitzer
8018e5ff3f
Extend SuccessfulPayment Test ( #4349 )
2024-07-05 23:03:54 +02:00
Harshil
c39839b026
Small Fixes for test_stars.py ( #4347 )
2024-07-05 18:44:41 +02:00
Harshil
4213c12c5b
Use Python 3.13 Beta 3 in Test Suite ( #4336 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-07-03 19:04:45 +02:00
pre-commit-ci[bot]
97226b1ae3
Bump pre-commit Hooks to Latest Versions ( #4337 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-07-03 18:29:09 +02:00
Harshil
146ec54a00
API 7.5 ( #4312 , #4311 , #4315 , #4328 , #4316 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-07-01 21:45:37 +02:00
Bibo-Joshi
df8aae0a38
Fix Link-Check Workflow ( #4332 )
2024-07-01 20:43:54 +02:00
Bibo-Joshi
4ccc80f9c1
Make Argument bot of TelegramObject.de_json Optional ( #4320 )
2024-07-01 19:59:54 +02:00
Harshil
cfc75bb08b
Bump ruff and Add New Rules ( #4329 )
2024-06-30 18:22:12 +02:00
Palaptin
51ef571a07
Add Lower Bound for flaky Dependency ( #4322 )
2024-06-23 20:15:37 +02:00
Harshil
9ce0f49882
Add Support for Python 3.13 Beta ( #4253 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-06-18 22:25:02 +02:00
dependabot[bot]
5b1e7399a4
Bump pytest from 8.2.1 to 8.2.2 ( #4294 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-06-18 22:20:47 +02:00
Harshil
a83046e1ec
Add mise-en-place to .gitignore ( #4300 )
2024-06-17 19:32:47 +02:00
Bibo-Joshi
44e8292838
Drop python-telegram-bot-raw And Switch to pyproject.toml Based Packaging ( #4288 )
2024-06-15 10:29:19 +02:00
Hinrich Mahler
a9f6afd015
Bump version to v21.3
2024-06-07 16:52:22 +02:00
Bibo-Joshi
78c945d485
Documentation Improvements ( #4264 )
2024-06-07 16:13:55 +02:00
Trijeet Modak
9e70ac8b7a
Add Parameter chat_id to ChatMemberHandler ( #4290 )
2024-06-06 17:31:45 +02:00
Harshil
cf728496e4
API 7.4 ( #4276 , #4278 , #4279 , #4280 , #4286 , #4283 , #4285 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-06-03 19:39:31 +02:00
dependabot[bot]
078d775250
Bump pytest from 8.2.0 to 8.2.1 ( #4272 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 19:25:54 +02:00
Bibo-Joshi
57298aa076
Deprecate python-telegram-bot-raw ( #4270 )
2024-06-01 21:19:38 +02:00
Bibo-Joshi
2c299bb109
Add setuptools to requirements-dev.txt ( #4282 )
2024-05-30 21:02:41 +02:00
Harshil
c1c5438f37
Remove Functionality Deprecated in Bot API 7.3 ( #4266 )
2024-05-29 19:59:23 +02:00
Bibo-Joshi
6ba7a097f4
Update Settings for pre-commit.ci ( #4265 )
2024-05-22 17:43:45 +02:00
Hinrich Mahler
6fc45a803d
Bump version to v21.2
2024-05-20 17:23:38 +02:00
Harshil
512a0b7417
Add Version to PTBDeprecationWarning ( #4262 )
2024-05-20 16:12:34 +02:00
Bibo-Joshi
7d952d8707
Documentation Improvements ( #4217 )
...
Co-authored-by: poolitzer <github@poolitzer.eu >
2024-05-20 15:53:04 +02:00
Bibo-Joshi
b496fabf62
Call Application.post_stop Only if Application.stop was called ( #4211 )
2024-05-20 15:52:30 +02:00
Bibo-Joshi
637b8e260b
Handle SystemExit raised in Handlers ( #4157 )
2024-05-20 15:27:08 +02:00
Bibo-Joshi
912fe45d8c
Handle Exceptions in building CallbackContext ( #4222 )
2024-05-20 15:25:56 +02:00
Bibo-Joshi
805b7bff32
API 7.3 ( #4243 , #4248 , #4247 , #4242 , #4246 , #4260 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com >
2024-05-20 15:25:25 +02:00
Harshil
f3bd0f1462
Add New Rules to ruff Config ( #4250 )
2024-05-12 09:13:20 +02:00
dependabot[bot]
5b0e0b5f78
Bump furo from 2024.4.27 to 2024.5.6 ( #4252 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-11 15:37:54 +02:00
Bibo-Joshi
c4623c4476
Make Birthdate.to_date Return a datetime.date Object ( #4251 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2024-05-10 22:23:19 +02:00
Bibo-Joshi
ee6e82d7ad
Remove Functionality Deprecated by Bot API 7.2 ( #4245 )
2024-05-10 17:42:22 +02:00
pre-commit-ci[bot]
c34f4811ea
pre-commit autoupdate (#4239 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-07 07:42:09 +02:00
dependabot[bot]
d768abdd6b
Bump pytest from 8.1.1 to 8.2.0 ( #4231 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 22:36:18 +02:00
dependabot[bot]
2561ffd16b
Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 ( #4228 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-05-06 22:35:52 +02:00
Bibo-Joshi
622fdf7fa3
Adapt Test Suite to Changes in Error Messages ( #4238 )
2024-05-06 22:35:11 +02:00
dependabot[bot]
615f1bf20b
Bump pytest-asyncio from 0.21.1 to 0.21.2 ( #4232 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-05 10:03:38 +02:00
dependabot[bot]
7a8b1be5a4
Bump pytest-xdist from 3.6.0 to 3.6.1 ( #4233 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-04 17:30:18 +02:00
dependabot[bot]
3a8ace2e8b
Bump furo from 2024.1.29 to 2024.4.27 ( #4230 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-04 11:12:26 +02:00
dependabot[bot]
169bd47de3
Bump srvaroa/labeler from 1.10.0 to 1.10.1 ( #4227 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-04 11:07:21 +02:00
dependabot[bot]
a956dcc6a4
Bump pytest from 7.4.4 to 8.1.1 ( #4218 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-04-28 22:32:20 +02:00
Bibo-Joshi
ee88973fee
Bump pytest-xdist from 3.5.0 to 3.6.0
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-20 10:44:39 +02:00
dependabot[bot]
8f9fc65be0
Bump sphinx from 7.2.6 to 7.3.7 ( #4215 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-20 09:22:42 +02:00
Hinrich Mahler
75d946e4be
Bump version to v21.1.1
2024-04-15 17:00:17 +02:00
Bibo-Joshi
fed8d8875e
Fix Bug With Parameter message_thread_id of Message.reply_* ( #4207 )
2024-04-15 16:49:36 +02:00
Nano
42b68f1a70
Remove Deprecation Warning in JobQueue.run_daily ( #4206 )
2024-04-14 14:14:45 +02:00
marinelay
58b8ef4ce4
Fix Annotation of EncryptedCredentials.decrypted_secret ( #4199 )
...
Co-authored-by: marinelay <marinelay@gmail.com >
2024-04-13 20:27:29 +02:00
Hinrich Mahler
f6d009d3ac
Bump version to v21.1
2024-04-12 12:39:38 +02:00
Bibo-Joshi
153894728c
Documentation Improvements ( #4171 , #4158 )
...
Signed-off-by: teslaedison <qingchengqiushuang@gmail.com >
Co-authored-by: teslaedison <156734008+teslaedison@users.noreply.github.com >
2024-04-12 12:03:01 +02:00
Harshil
5fa457974d
API 7.2 ( #4180 , #4181 )
...
Co-authored-by: Mahdyar Hasanpour <mahdyar@duck.com >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com >
Co-authored-by: Aditya <adityayadav11082@gmail.com >
2024-04-12 11:58:25 +02:00
Harshil
3ec7bb819c
Make ChatAdministratorRights.can_*_stories Required (API 7.1) ( #4192 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-04-06 17:13:43 +02:00
pre-commit-ci[bot]
040cd2c2fc
pre-commit autoupdate (#4184 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-04-05 17:26:08 +02:00
Abdelrahman Elkheir
474f9c9693
Make Message.reply_* Reply in the Same Topic by Default ( #4170 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-04-03 11:32:39 +02:00
dependabot[bot]
e18ca0d5e1
Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 ( #4185 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-04-02 22:19:33 +02:00
Bibo-Joshi
7331fff3fc
Temporarily Mark Tests with get_sticker_set as XFAIL due to API 7.2 Update ( #4190 )
2024-04-02 22:13:54 +02:00
Abdelrahman Elkheir
23536ee759
Add Update.effective_sender ( #4168 )
2024-03-30 18:21:13 +01:00
Poolitzer
2d8d43f2a5
Accept Socket Objects for Webhooks ( #4161 )
2024-03-24 21:04:10 +01:00
Bibo-Joshi
8a542e22a0
Refactor Debug logging in Bot to Improve Type Hinting ( #4151 )
2024-03-24 12:34:08 +01:00
Hinrich Mahler
c0716dd344
Bump version to v21.0.1
2024-03-06 22:15:30 +01:00
Bibo-Joshi
668b49b048
Remove docs from Package ( #4150 )
2024-03-06 22:04:19 +01:00
Hinrich Mahler
22eb434a62
Bump version to v21.0
2024-03-06 21:09:47 +01:00
Bibo-Joshi
ae2858783a
Documentation Improvements ( #4109 , #4116 )
...
Co-authored-by: Aditya <adityayadav11082@gmail.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Maurice Banerjee Palmer <31225563+mbanerjeepalmer@users.noreply.github.com >
2024-03-06 14:45:50 +01:00
Bibo-Joshi
2c227d5977
Relax Upper Bound for httpx Dependency ( #4148 )
2024-03-06 13:20:38 +01:00
Bibo-Joshi
437261f716
Improve HTML Download of Documentation ( #4146 )
2024-03-05 17:16:14 +01:00
dependabot[bot]
1b98e440fa
Bump test-summary/action from 2.2 to 2.3 ( #4142 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-03-03 19:28:06 +01:00
Bibo-Joshi
d30ba3d1ef
Run Unit Tests in PRs on Requirements Changes ( #4144 )
2024-03-03 19:27:21 +01:00
Bibo-Joshi
20e0f87f6b
Make Updater.stop Independent of CancelledError ( #4126 )
2024-03-03 19:22:42 +01:00
Harshil
bd9b0bd126
Handle Properties in TelegramObject.__setstate__ ( #4134 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-03-03 19:22:26 +01:00
dependabot[bot]
5d11d7fd42
Update cachetools requirement from ~=5.3.2 to ~=5.3.3 ( #4141 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-03-02 11:34:03 +01:00
Poolitzer
099ab5d9fa
API 7.1 ( #4118 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2024-03-02 10:56:15 +01:00
Bibo-Joshi
26f943771b
Apply pre-commit Checks More Widely ( #4135 )
2024-02-29 19:11:03 +01:00
Bibo-Joshi
9c263fbd1a
Add Parameter media_write_timeout to HTTPXRequest and Method ApplicationBuilder.media_write_timeout ( #4120 )
2024-02-26 17:47:04 +01:00
Bibo-Joshi
277031cfb2
Remove Functionality Deprecated in API 7.0 ( #4114 )
2024-02-25 10:34:47 +01:00
dependabot[bot]
c513d51147
Update httpx requirement from ~=0.26.0 to ~=0.27.0 ( #4131 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-02-24 15:14:26 +01:00
Harshil
bb6c85609a
Add Missing Slot to Updater ( #4130 )
2024-02-24 12:31:50 +01:00
Abdelrahman Elkheir
5b6cd3a33b
Update Copyright to 2024 ( #4121 )
2024-02-19 20:06:25 +01:00
Harshil
1cf63c26c5
Refactor and Overhaul test_official ( #4087 )
2024-02-09 18:12:13 +01:00
Hinrich Mahler
680dc2b6b8
Bump Version to v20.8
2024-02-08 18:36:28 +01:00
Bibo-Joshi
04d86deb58
Documentation Improvements ( #4002 , #4079 , #4104 )
...
Co-authored-by: Poolitzer <github@poolitzer.eu >
Co-authored-by: Kenji Tagawa <61639117+kenjitagawa@users.noreply.github.com >
Co-authored-by: Kenji Tagawa <kenji@tagawa.ca >
Co-authored-by: Alexandre Rodrigues Batista <40678306+xTudoS@users.noreply.github.com >
2024-02-08 17:58:33 +01:00
Aditya Yadav
03d2359061
API 7.0 ( #4034 , #4038 )
...
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: aelkheir <arelkheir@gmail.com >
Co-authored-by: aelkheir <90580077+aelkheir@users.noreply.github.com >
2024-02-08 17:12:00 +01:00
Bibo-Joshi
29866e2139
Add Bot.do_api_request ( #4084 )
2024-02-07 22:35:09 +01:00
pre-commit-ci[bot]
7e9537ece2
pre-commit autoupdate (#4101 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2024-02-07 22:20:21 +01:00
Bibo-Joshi
baa01596c3
Drop Usage of DeepSource ( #4100 )
2024-02-07 20:45:57 +01:00
Harshil
c23eb8ec08
Bump black and ruff ( #4089 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-02-05 19:24:00 +01:00
Harshil
6ae7add722
Migrate From setup.cfg to pyproject.toml Where Possible ( #4088 )
2024-02-05 17:28:47 +01:00
dependabot[bot]
f3bda29e51
Bump furo from 2023.9.10 to 2024.1.29 ( #4094 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-03 16:49:41 +01:00
dependabot[bot]
fe0421a822
Bump codecov/codecov-action from 3 to 4 ( #4091 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-02-02 23:56:59 +01:00
dependabot[bot]
0325a024d6
Bump EndBug/add-and-commit from 9.1.3 to 9.1.4 ( #4090 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-02 23:00:37 +01:00
Bibo-Joshi
2f65fcc292
Deprecate filters.CHAT ( #4083 )
2024-01-29 13:13:41 +01:00
Harshil
2d63c57ed6
Bump ruff and Remove sort-all ( #4075 )
2024-01-24 20:53:36 +01:00
Bibo-Joshi
b73dc5728e
Add Missing Conversions of type to Corresponding Enum from telegram.constants ( #4067 )
2024-01-17 21:32:37 +01:00
Lucas Molinari
f452c132fa
Move Handler Files to _handlers Subdirectory ( #4064 )
2024-01-15 20:15:33 +01:00
dependabot[bot]
ebf7f3be12
Bump pytest from 7.4.3 to 7.4.4 ( #4056 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-14 17:27:57 +01:00
Bibo-Joshi
dc284a1a73
Introduce sort-all Hook for pre-commit ( #4052 )
2024-01-08 18:35:32 +01:00
dependabot[bot]
979988add1
Bump test-summary/action from 2.1 to 2.2 ( #4044 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2024-01-03 21:43:41 +01:00
Bibo-Joshi
1ae759ff5c
Use Recommended pre-commit Mirror for black ( #4051 )
2024-01-03 21:42:56 +01:00
dependabot[bot]
1ab91370ac
Bump actions/stale from 8 to 9 ( #4046 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-03 17:07:57 +01:00
dependabot[bot]
29d073871a
Bump srvaroa/labeler from 1.8.0 to 1.10.0 ( #4048 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2024-01-03 16:53:21 +01:00
dependabot[bot]
d03b4ec688
Bump actions/setup-python from 4 to 5 ( #4047 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-03 16:43:35 +01:00
dependabot[bot]
07d9dc7a44
Bump actions/upload-artifact from 3 to 4 ( #4045 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-03 16:41:03 +01:00
aelkheir
f3479cd170
Add Parameter pattern to PreCheckoutQueryHandler and filters.SuccessfulPayment ( #4005 )
2024-01-02 18:35:38 +01:00
pre-commit-ci[bot]
7fcfad41a5
pre-commit autoupdate (#4043 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-01 22:49:24 +01:00
Palaptin
c33c541cbe
Fix Type Hint for filters Parameter of MessageHandler ( #4039 )
2024-01-01 15:58:50 +01:00
Bibo-Joshi
57c2f6e01e
Improve Type Completeness & Corresponding Workflow ( #4035 )
2023-12-29 22:48:45 +01:00
dependabot[bot]
a52c91996e
Update httpx requirement from ~=0.25.2 to ~=0.26.0 ( #4024 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-12-29 22:32:07 +01:00
Poolitzer
2345bfbb53
Add Support for Unix Sockets to Updater.start_webhook ( #3986 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-12-14 21:37:00 +01:00
Bibo-Joshi
cc45f49a4f
Add AsyncContextManager as Parent Class to BaseUpdateProcessor ( #4001 )
2023-12-13 20:22:10 +01:00
Aditya Yadav
fd6a0fe899
Add Docstring to Dunder Methods ( #3929 )
2023-12-10 20:17:11 +01:00
Poolitzer
67b0706116
Improve Error Handling in Built-In Webhook Handler ( #3987 )
2023-12-09 17:35:23 +01:00
dependabot[bot]
592c6cc6d3
Update tornado requirement from ~=6.3.3 to ~=6.4 ( #3992 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-12-09 13:13:20 +01:00
Poolitzer
1fc46360ff
Remove Unused DEFAULT_20 ( #3997 )
2023-12-09 13:12:39 +01:00
pre-commit-ci[bot]
4ad94cc7f7
pre-commit autoupdate (#3996 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
2023-12-09 13:11:45 +01:00
dependabot[bot]
c6a9fbb5c7
Bump dessant/lock-threads from 4.0.1 to 5.0.1 ( #3994 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-12-04 17:58:15 +01:00
dependabot[bot]
af8729769b
Bump srvaroa/labeler from 1.7.0 to 1.8.0 ( #3993 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 17:45:47 +01:00
Bibo-Joshi
f93f827e33
Documentation Improvements ( #3919 )
...
Co-authored-by: Poolitzer <github@poolitzer.eu >
2023-11-27 19:11:25 +01:00
Hinrich Mahler
a8f1164b0c
Bump Version to v20.7
2023-11-27 19:01:57 +01:00
Bibo-Joshi
da11561f87
Adjust read_timeout Behavior for Bot.get_updates ( #3963 )
2023-11-27 18:24:21 +01:00
Bibo-Joshi
354a8e0854
Improve write_timeout Handling for Media Methods ( #3952 )
2023-11-26 16:44:18 +01:00
dependabot[bot]
bc68488c14
Update httpx requirement from ~=0.25.1 to ~=0.25.2 ( #3983 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-11-25 06:46:55 +01:00
dependabot[bot]
19d7939355
Bump pytest-xdist from 3.4.0 to 3.5.0 ( #3982 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-25 06:26:30 +01:00
dependabot[bot]
3495ce3aeb
Bump pytest-xdist from 3.3.1 to 3.4.0 ( #3975 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-22 22:21:39 +01:00
pre-commit-ci[bot]
dd9af64a5c
[pre-commit.ci] pre-commit autoupdate ( #3967 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-11-12 10:11:22 +01:00
Bibo-Joshi
da3bc6974a
Adjust Tests to New Error Messages ( #3970 )
2023-11-11 11:35:23 +01:00
Bibo-Joshi
b1fc0596b9
Fix Persistency Issue with Ended Non-Blocking Conversations ( #3962 )
2023-11-05 11:48:44 +01:00
Bibo-Joshi
6d2334c88b
Improve Insertion of Kwargs into Bot Methods ( #3965 )
2023-11-05 11:47:50 +01:00
dependabot[bot]
a0c81ec3d4
Update httpx requirement from ~=0.25.0 to ~=0.25.1 ( #3961 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2023-11-04 08:34:31 +01:00
dependabot[bot]
c8d9898eaa
Bump srvaroa/labeler from 1.6.1 to 1.7.0 ( #3958 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 23:38:03 +01:00
Bibo-Joshi
616b0b55ef
Add ApplicationBuilder.(get_updates_)socket_options ( #3943 )
2023-10-31 16:27:30 +01:00
dependabot[bot]
c71612ffae
Update cachetools requirement from ~=5.3.1 to ~=5.3.2 ( #3954 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-10-28 10:30:45 +02:00
dependabot[bot]
4143d99f56
Bump pytest from 7.4.2 to 7.4.3 ( #3953 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-28 10:01:21 +02:00
Harshil
cbe808e471
Improve Type Hinting for Arguments with Default Values in Bot ( #3942 )
2023-10-25 21:53:43 +02:00
Bibo-Joshi
300ec920a1
Add filters.Mention ( #3941 )
...
Co-authored-by: Javohir Elmurodov <elmurodovjavohir@gmail.com >
2023-10-23 21:11:56 +02:00
Bibo-Joshi
075f517458
Rename proxy_url to proxy and Allow httpx.{Proxy, URL} as Input ( #3939 )
2023-10-23 21:09:28 +02:00
Bibo-Joshi
c82a0808d1
Improve BaseHandler.__repr__ for Callbacks without __qualname__ ( #3934 )
2023-10-22 12:43:23 +02:00
Bibo-Joshi
ea7e5a69aa
Add Parameter socket_options to HTTPXRequest ( #3935 )
2023-10-22 12:42:22 +02:00
Bibo-Joshi
f67e8c0804
Add JobQueue.scheduler_configuration and Corresponding Warnings ( #3913 )
2023-10-16 20:25:25 +02:00
Aditya Yadav
af130ef5e7
Add Documentation for __aenter__ and __aexit__ Methods ( #3907 )
...
Co-authored-by: Aditya <clot27@apx_managed.vanilla>
2023-10-09 18:59:52 +02:00
Hinrich Mahler
9ef8826f33
Bump Version to v20.6
2023-10-03 15:39:57 +02:00
Bibo-Joshi
61b70efb4c
Drop Backward Compatibility Layer Introduced in #3853 (API 6.8) ( #3873 )
2023-10-03 15:15:17 +02:00
Bibo-Joshi
63977ea353
Documentation Improvements ( #3910 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-10-03 15:11:37 +02:00
Harshil
ae57d3b7c3
API 6.9 ( #3898 )
...
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-10-03 14:32:57 +02:00
Harshil
8d76087bed
Update pre-commit Dependencies ( #3916 )
2023-10-03 14:17:42 +02:00
Harshil
0e90deafb5
Add Support Python 3.12 ( #3915 )
2023-10-03 14:01:06 +02:00
Bibo-Joshi
39d45124df
Add Rich Equality Comparison to WriteAccessAllowed ( #3911 )
2023-10-02 20:21:51 +02:00
dependabot[bot]
895403a0b5
Bump actions/checkout from 3 to 4 ( #3914 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 20:20:28 +02:00
Bibo-Joshi
8cb177cb2c
Move Bot API Tests to Separate Workflow File ( #3912 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-10-02 19:51:34 +02:00
Bibo-Joshi
eaf802e07d
Fix Failing file_size Tests ( #3906 )
2023-10-01 11:30:56 +02:00
Dmitry K
1ef242a17e
Add __repr__ Methods Added in #3826 to Sphinx Documentation ( #3901 )
2023-09-26 19:18:12 +02:00
dependabot[bot]
7adb4fa2db
Update httpx requirement from ~=0.24.1 to ~=0.25.0 ( #3891 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 08:52:10 +02:00
dependabot[bot]
5c5ee598a2
Bump furo from 2023.8.19 to 2023.9.10 ( #3890 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-22 19:44:33 +02:00
dependabot[bot]
a4ae6f2097
Bump sphinx from 7.2.5 to 7.2.6 ( #3892 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-09-22 18:53:07 +02:00
dependabot[bot]
fc5a56c15b
Update tornado requirement from ~=6.2 to ~=6.3.3 ( #3675 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-09-22 18:47:50 +02:00
Bibo-Joshi
74112bfd06
Set Threshold for DeepSource's PY-R1000 to High ( #3888 )
2023-09-22 18:39:26 +02:00
Harshil
ab90cd7359
One-Time Code Formatting Improvement via --preview Flag of black ( #3882 )
2023-09-22 18:19:21 +02:00
Harshil
5b0f1697f1
Move Dunder Methods to the Top of Class Bodies ( #3883 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-09-15 22:19:45 +02:00
Dmitry K
9c7298c17a
Add String Representation for Selected Classes ( #3826 )
2023-09-15 21:35:45 +02:00
Harshil
39abf838fa
Verify Type Hints for Bot Method & Telegram Class Parameters ( #3868 )
2023-09-15 21:33:42 +02:00
Harshil
04b44f4595
Remove Superfluous Defaults.__ne__ ( #3884 )
2023-09-11 21:12:20 +02:00
dependabot[bot]
a0decdac28
Bump pytest from 7.4.0 to 7.4.2 ( #3881 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-10 12:30:55 +02:00
pre-commit-ci[bot]
f77f4b0cf7
pre-commit autoupdate (#3876 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-09-09 23:12:30 +02:00
Hinrich Mahler
82c98b64a7
Bump Version to v20.5
2023-09-03 14:46:28 +02:00
Bibo-Joshi
f9ccf560f6
Remove Functionality Deprecated Since Bot API 6.5, 6.6 or 6.7 ( #3858 )
2023-09-03 14:23:48 +02:00
Bibo-Joshi
40ab8aadca
Documentation Improvements ( #3803 , #3797 , #3816 , #3829 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Dmitry K <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Trim21 <trim21.me@gmail.com >
Co-authored-by: aelkheir <90580077+aelkheir@users.noreply.github.com >
2023-09-03 14:13:19 +02:00
Bibo-Joshi
644d76b592
Type Hinting Fixes for WebhookInfo ( #3871 )
2023-09-03 13:44:44 +02:00
Harshil
bd24da29cd
API 6.8 ( #3853 )
...
Co-authored-by: Aditya <clot27@apx_managed.vanilla>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-09-03 13:43:44 +02:00
dependabot[bot]
caffb9d66e
Bump srvaroa/labeler from 1.6.0 to 1.6.1 ( #3870 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-09-02 13:01:53 +02:00
dependabot[bot]
1efd8e80ab
Bump sphinx from 7.2.3 to 7.2.5 ( #3869 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-02 12:35:19 +02:00
dependabot[bot]
8cc55c3381
Update apscheduler requirement from ~=3.10.3 to ~=3.10.4 ( #3862 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-08-26 11:47:32 +02:00
dependabot[bot]
fbe9eeeaf5
Bump sphinx from 7.2.2 to 7.2.3 ( #3861 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-26 11:16:29 +02:00
Yao Kuan
ebed8ec7d3
Add has_args Parameter to CommandHandler ( #3854 )
...
Co-authored-by: Yao Kuan <chan_yao_kuan@tech.gov.sg >
2023-08-23 21:28:36 +02:00
dependabot[bot]
009785f028
Bump sphinx-paramlinks from 0.5.4 to 0.6.0 ( #3840 )
2023-08-21 18:57:29 +02:00
dependabot[bot]
7c858473ca
Update apscheduler requirement from ~=3.10.1 to ~=3.10.3 ( #3851 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-08-21 18:55:49 +02:00
Harshil
58a109aae6
Remove Version Check from Examples ( #3846 )
2023-08-21 18:47:05 +02:00
Harshil
71eff4731c
Add Support for Python 3.12 RC ( #3847 )
2023-08-21 18:27:02 +02:00
dependabot[bot]
c2c8c53d9c
Bump furo from 2023.7.26 to 2023.8.19 ( #3850 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-08-19 09:20:34 +02:00
dependabot[bot]
3b78934a77
Bump sphinx from 7.1.2 to 7.2.2 ( #3852 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-19 09:01:34 +02:00
Bibo-Joshi
5128748092
Add Application.stop_running() and Improve Marking Updates as Read on Updater.stop() ( #3804 )
2023-08-17 11:50:26 +02:00
Bibo-Joshi
03f87750d4
Provide Versions of customwebhookbot.py with Different Frameworks ( #3820 )
2023-08-16 21:15:32 +02:00
dependabot[bot]
4c4bf2185d
Bump sphinx from 7.1.1 to 7.1.2 ( #3827 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-05 22:06:54 +02:00
pre-commit-ci[bot]
aaadc70fcc
pre-commit autoupdate (#3824 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-08-02 11:51:17 +02:00
Bibo-Joshi
ed3acd4b81
Extend Allowed Values for HTTP Version ( #3823 )
2023-08-01 16:19:33 +02:00
dependabot[bot]
a00ba52114
Bump sphinx from 7.0.1 to 7.1.1 ( #3818 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-29 10:49:55 +02:00
dependabot[bot]
0ae991c141
Bump furo from 2023.5.20 to 2023.7.26 ( #3817 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-29 10:29:13 +02:00
Bibo-Joshi
7226aaea04
Test and Document Exception.__cause__ on NetworkError ( #3792 )
...
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-07-18 12:02:13 +02:00
dependabot[bot]
50a16edb41
Bump pytest-asyncio from 0.21.0 to 0.21.1 ( #3801 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-17 22:19:47 +02:00
Hinrich Mahler
59105b240f
Bump Version to v20.4
2023-07-09 12:18:32 +02:00
Bibo-Joshi
db6030ea83
Documentation Improvements ( #3698 , #3708 , #3767 )
...
Co-authored-by: Iulian Onofrei <5748627+revolter@users.noreply.github.com >
Co-authored-by: Poolitzer <github@poolitzer.eu >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Aditya <clot27@apx_managed.vanilla>
2023-07-09 11:22:08 +02:00
pre-commit-ci[bot]
7d52ead228
pre-commit autoupdate (#3791 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-07-06 18:57:51 +02:00
Harshil
589047ddbf
Add Python 3.12 Beta to the Test Matrix ( #3751 )
2023-07-05 21:58:57 +02:00
Bibo-Joshi
5534ddfaa0
Use Temporary Files for Testing File Downloads ( #3777 )
2023-07-03 10:06:16 +02:00
dependabot[bot]
1d27a0fadb
Bump srvaroa/labeler from 1.5.0 to 1.6.0 ( #3786 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-02 18:07:30 +02:00
dependabot[bot]
79cda7582e
Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 ( #3787 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-02 17:56:58 +02:00
dependabot[bot]
dccf62eb1c
Bump dessant/lock-threads from 4.0.0 to 4.0.1 ( #3785 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-02 17:56:21 +02:00
Bibo-Joshi
fb86bb3417
Drop Support for Python 3.7 ( #3728 , #3742 , #3749 , #3740 , #3754 , #3753 , #3764 , #3762 , #3759 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Luca Bellanti <luca.bellanti@gmail.com >
Co-authored-by: thefunkycat <104379699+thefunkycat@users.noreply.github.com >
Co-authored-by: Aditya Yadav <69784758+clot27@users.noreply.github.com >
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
2023-06-29 18:17:47 +02:00
Harshil
58b89cf0e9
Add More ruff Rules ( #3763 )
2023-06-29 11:38:09 +02:00
Bibo-Joshi
4a6e0fd7a6
Add Quotes for Installation Instructions With Optional Dependencies ( #3780 )
2023-06-29 07:46:00 +02:00
dependabot[bot]
623d2f7f0b
Bump pytest from 7.3.2 to 7.4.0 ( #3774 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-06-26 22:14:19 +02:00
Bibo-Joshi
62a8cfc395
Rework pytest Integration into GitHub Actions ( #3776 )
2023-06-26 19:48:38 +02:00
Harshil
b0cff31fc1
Rename _handler.py to _basehandler.py ( #3761 )
2023-06-25 15:08:26 +02:00
Harshil
3c87e450fb
Fix Wrong Warning Text in KeyboardButton.__eq__ ( #3768 )
2023-06-22 10:21:53 +02:00
dependabot[bot]
8e91a6adba
Bump pytest from 7.3.1 to 7.3.2 ( #3758 )
2023-06-17 09:16:31 +02:00
Dmitry Kolomatskiy
63fd846233
Set httpx Logging Level to Warning in Examples ( #3746 )
2023-06-07 22:32:04 +02:00
pre-commit-ci[bot]
814c72052f
pre-commit autoupdate (#3747 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-06-07 21:51:40 +02:00
Luca Bellanti
1a7edd7a5d
Explicitly set allowed_updates in Examples ( #3741 )
2023-06-04 17:11:58 +02:00
dependabot[bot]
f0e71216fe
Update cachetools requirement from ~=5.3.0 to ~=5.3.1 ( #3738 )
2023-06-03 08:44:14 +02:00
Bibo-Joshi
ca37219a68
Fix Two Bugs in GitHub Actions Workflows ( #3739 )
2023-06-03 08:28:08 +02:00
dependabot[bot]
c9636726f7
Bump sphinxcontrib-mermaid from 0.8.1 to 0.9.2 ( #3737 )
2023-06-03 07:48:17 +02:00
Bibo-Joshi
9c8d6efe7a
Make Integration of APScheduler into JobQueue More Explicit ( #3695 )
2023-06-02 22:17:46 +02:00
Aditya Yadav
bf54599618
Introduce BaseUpdateProcessor for Customized Concurrent Handling of Updates ( #3654 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-06-02 18:17:08 +02:00
Bibo-Joshi
4c8d7332db
Auto-Update Changed Version in Other Files After Dependabot PRs ( #3716 )
2023-05-31 22:19:56 +02:00
Harshil
c185137c9e
Bump furo and sphinx 7 ( #3719 )
2023-05-25 22:47:05 +02:00
Bibo-Joshi
3c5a16be1c
Exclude Type Hints from Stability Policy ( #3712 )
2023-05-24 21:42:30 +02:00
dependabot[bot]
cd25964419
Update httpx requirement from ~=0.24.0 to ~=0.24.1 ( #3715 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-05-20 14:23:40 +02:00
Bibo-Joshi
5309cf6555
Automatically Label pre-commit-ci PRs ( #3713 )
2023-05-20 10:27:51 +02:00
dependabot[bot]
bb8b508a22
Bump pytest-xdist from 3.3.0 to 3.3.1 ( #3714 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-20 10:15:57 +02:00
Iulian Onofrei
4f15a7feee
Fix Inconsistent Type Hints for timeout Parameter of Bot.get_updates ( #3709 )
2023-05-19 22:09:16 +02:00
dependabot[bot]
57c780c62f
Update aiolimiter requirement from ~=1.0.0 to ~=1.1.0 ( #3707 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-05-18 07:59:44 +02:00
MiguelX413
99fd4432db
Use Explicit Optionals ( #3692 )
...
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
2023-05-18 07:57:59 +02:00
dependabot[bot]
e432c296a9
Bump pytest-xdist from 3.2.1 to 3.3.0 ( #3705 )
2023-05-15 18:20:50 +02:00
Bibo-Joshi
1fdccd7bf9
Drop a Legacy pre-commit.ci Configuration ( #3697 )
2023-05-12 22:36:52 +02:00
Hinrich Mahler
bfbf6d3f94
Bump Version to v20.3
2023-05-07 15:31:23 +02:00
Bibo-Joshi
0c4180c74b
Documentation Improvements ( #3628 , #3636 , #3694 )
...
Co-authored-by: Yossi Rafelson <yossi.rafelson@gmail.com >
Co-authored-by: Aditya <clot27@apx_managed.vanilla>
Co-authored-by: ibragimovgeorge <103066850+ibragimovgeorge@users.noreply.github.com >
2023-05-07 14:51:22 +02:00
Bibo-Joshi
1c6ae435bf
Add a Stability Policy ( #3622 )
...
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
2023-05-07 14:50:41 +02:00
Bibo-Joshi
66b6d3c497
Recover 100% Type Completeness ( #3676 )
2023-05-07 14:10:20 +02:00
Bibo-Joshi
8c252c9822
API 6.7 ( #3673 )
...
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Harshil Mehta <37377066+harshil21@users.noreply.github.com >
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Aditya <clot27@apx_managed.vanilla>
2023-05-07 13:44:34 +02:00
Bibo-Joshi
450dc2115c
Shield Update Fetcher Task in Application.start ( #3657 )
2023-05-06 21:10:12 +02:00
pre-commit-ci[bot]
87a6890900
pre-commit autoupdate (#3688 )
2023-05-06 20:52:58 +02:00
Bibo-Joshi
83ab12c387
Stabilize test_delete_sticker_set ( #3685 )
...
Co-authored-by: poolitzer <github@poolitzer.eu >
2023-04-30 11:03:00 +02:00
Bibo-Joshi
3f444dad8d
Improve Warning Categories & Stacklevels ( #3674 )
2023-04-27 22:36:04 +02:00
Bibo-Joshi
f23315d08b
Add Logging for Invalid JSON Data in BasePersistence.parse_json_payload ( #3668 )
2023-04-18 16:17:20 +02:00
Luca Bellanti
7b116be344
Localize Received datetime Objects According to Defaults.tzinfo ( #3632 )
2023-04-18 16:16:23 +02:00
dependabot[bot]
934e4c9bd4
Bump pytest from 7.2.2 to 7.3.1 ( #3661 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-04-16 11:24:50 +02:00
dependabot[bot]
1966fb25c5
Update httpx requirement from ~=0.23.3 to ~=0.24.0 ( #3660 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-04-16 11:20:36 +02:00
dependabot[bot]
a333d8514a
Bump sphinx-copybutton from 0.5.1 to 0.5.2 ( #3662 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-04-16 11:15:06 +02:00
Bibo-Joshi
b146c7131e
Remove Deprecated codecov Package from CI ( #3664 )
2023-04-16 10:54:49 +02:00
Bibo-Joshi
53093ebceb
Give Loggers Better Names ( #3623 )
2023-04-10 17:01:35 +02:00
Luca Bellanti
401b2decce
Make Message.link Point to Thread View Where Possible ( #3640 )
2023-04-07 17:13:45 +02:00
pre-commit-ci[bot]
83a164e5ef
pre-commit autoupdate (#3646 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Harshil Mehta <37377066+harshil21@users.noreply.github.com >
2023-04-05 20:52:52 +02:00
Bibo-Joshi
d91bc45cdc
Add Application.mark_data_for_update_persistence ( #3607 )
2023-04-02 22:29:16 +02:00
dependabot[bot]
8967912f46
Bump furo from 2023.3.23 to 2023.3.27 ( #3643 )
2023-04-02 21:42:57 +02:00
dependabot[bot]
7ab2cafbee
Bump actions/stale from 7 to 8 ( #3644 )
2023-04-02 21:41:37 +02:00
Harshil
7e0ed2235e
Stabilize CI by Rerunning Failed Tests ( #3631 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2023-04-01 22:35:20 +02:00
Harshil
53abb7b4bd
Add String Representation for RequestParameter ( #3634 )
2023-03-27 22:03:02 +02:00
Harshil
11f86b8813
Drop Usage of sys.maxunicode ( #3630 )
2023-03-26 21:58:23 +02:00
Harshil
9997a9f47e
Empower ruff ( #3594 )
2023-03-25 19:18:04 +01:00
Hinrich Mahler
4aedb33d37
Bump version to v20.2
2023-03-25 13:25:59 +01:00
Bibo-Joshi
4ddc36c625
Documentation Improvements ( #3565 , #3600 )
...
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Louis Wang <beiluonever@users.noreply.github.com >
2023-03-25 12:48:34 +01:00
dependabot[bot]
311f88a716
Bump pytest-asyncio from 0.20.3 to 0.21.0 ( #3624 )
2023-03-25 12:25:57 +01:00
dependabot[bot]
179cb49dbc
Bump furo from 2022.12.7 to 2023.3.23 ( #3625 )
2023-03-25 12:25:36 +01:00
Bibo-Joshi
512e390738
API 6.6 ( #3584 )
...
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-03-25 11:47:26 +01:00
dependabot[bot]
33b677aeb4
Bump pytest-xdist from 3.2.0 to 3.2.1 ( #3606 )
2023-03-19 10:54:03 +01:00
Poolitzer
800598ced4
Revert to HTTP/1.1 as Default and make HTTP/2 an Optional Dependency ( #3576 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-03-12 16:30:39 +01:00
pre-commit-ci[bot]
ec20f27a82
pre-commit autoupdate (#3577 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-03-08 20:46:51 +01:00
Bibo-Joshi
cd59c1c075
Handle Symbolic Links in was_called_by ( #3552 )
...
Co-authored-by: hyfc <myloxyloto2012@gmail.com >
2023-03-06 21:59:01 +01:00
dependabot[bot]
52b0f2c3c9
Update apscheduler requirement from ~=3.10.0 to ~=3.10.1 ( #3572 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-03-06 21:09:29 +01:00
dependabot[bot]
598f44f4c2
Bump pytest from 7.2.1 to 7.2.2 ( #3573 )
2023-03-05 16:21:57 +01:00
Bibo-Joshi
22d0dd1301
Tidy Up Tests Directory ( #3553 )
2023-02-22 20:19:46 +01:00
sam-mosleh
c6b6b0a370
Enhance Application.create_task ( #3543 )
2023-02-20 19:53:27 +01:00
Bibo-Joshi
ee6c8a5995
Make Type Completeness Workflow Usable for PRs from Forks ( #3551 )
2023-02-13 20:39:12 +01:00
dependabot[bot]
d5a1a48145
Bump pytest-xdist from 3.1.0 to 3.2.0 ( #3550 )
2023-02-11 17:42:10 +01:00
Harshil
963edbf191
Refactor and Overhaul the Test Suite ( #3426 )
2023-02-11 10:45:17 +01:00
dependabot[bot]
43c3c8f568
Bump sphinxcontrib-mermaid from 0.7.1 to 0.8 ( #3549 )
2023-02-11 10:43:38 +01:00
Hinrich Mahler
49ea8d39fb
Bump version to v20.1
2023-02-09 20:58:22 +01:00
Harshil
7e86e8be14
Update cryptography requirement to >=39.0.1 to address Vulnerability ( #3539 )
2023-02-09 19:32:50 +01:00
Bibo-Joshi
5cff9adb55
Fix CI on Python 3.11 + Windows ( #3547 )
2023-02-09 18:58:36 +01:00
Harshil
217a5f929e
Add Some Graphic Elements to Docs ( #3535 )
...
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
2023-02-08 17:43:14 +01:00
pre-commit-ci[bot]
007f432ee4
pre-commit autoupdate (#3537 )
...
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
2023-02-08 17:41:10 +01:00
Poolitzer
23a685335b
API 6.5 ( #3530 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2023-02-08 11:47:21 +01:00
Bibo-Joshi
9953216980
Documentation Improvements ( #3464 , #3483 , #3484 , #3497 , #3512 , #3501 , #3515 , #3523 , #3498 , #3529 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Shivam Saini <51438830+shivamsn97@users.noreply.github.com >
Co-authored-by: Aditya Yadav <adityayadav11082@gmail.com >
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Crsi <47722349+CrsiX@users.noreply.github.com >
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Aditya <clot27@apx_managed.vanilla>
2023-02-05 18:09:55 +01:00
Bibo-Joshi
bacdeb37fd
Increase Verbosity of Type Completeness CI Job ( #3531 )
2023-02-04 16:45:47 +01:00
dependabot[bot]
a0f98b241e
Update apscheduler requirement from ~=3.9.1 to ~=3.10.0 ( #3532 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-02-04 09:21:28 +01:00
Bibo-Joshi
23d0bd8fe3
Explicit Type Annotations ( #3508 )
2023-02-02 18:55:07 +01:00
Poolitzer
1701950a1d
Bump isort to 5.12.0 ( #3525 )
2023-02-01 22:11:56 +01:00
dependabot[bot]
851f7ff0b3
Update cachetools requirement from ~=5.2.1 to ~=5.3.0 ( #3520 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-01-28 12:36:11 +01:00
Aditya
359232e6c7
Check for 3D Arrays in check_keyboard_type ( #3514 )
2023-01-22 12:11:52 +01:00
dependabot[bot]
9782510779
Bump pytest from 7.2.0 to 7.2.1 ( #3513 )
2023-01-21 11:01:25 +01:00
Harshil
deb6cb19b3
Allow to Adjust HTTP Version and Use HTTP/2 by Default ( #3506 )
2023-01-20 21:15:02 +01:00
Bibo-Joshi
21ebdbc973
Lock Inactive Threads Only Once Each Day ( #3510 )
2023-01-20 20:49:20 +01:00
Dmitry Kolomatskiy
54d0294f92
Enhance chatmemberbot Example ( #3500 )
2023-01-19 21:33:16 +01:00
Harshil
5693add136
Improve Config for ruff and Bump to v0.0.222 ( #3507 )
2023-01-15 16:17:02 +01:00
Bibo-Joshi
3dd7d84fa5
Improve Error Message for NetworkError ( #3505 )
2023-01-15 13:40:20 +01:00
Harshil
4ebcec2b91
Improve Warning for days Parameter of JobQueue.run_daily ( #3503 )
2023-01-14 18:57:08 +01:00
dependabot[bot]
200b623263
Update cachetools requirement from ~=5.2.0 to ~=5.2.1 ( #3502 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-01-14 17:41:47 +01:00
dependabot[bot]
c64bd7a715
Update httpx requirement from ~=0.23.1 to ~=0.23.3 ( #3489 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-01-07 13:39:23 +01:00
Aditya
bbb9fcaaa5
Add ruff to pre-commit Hooks ( #3488 )
2023-01-06 16:19:49 +01:00
Viicos
d48fa71ec5
Add Chat.effective_name Convenience Property ( #3485 )
2023-01-06 08:15:56 +01:00
Harshil
f9cbddd10a
Store Documentation Builts as GitHub Actions Artifacts ( #3468 )
2023-01-06 08:14:09 +01:00
Harshil
2797d9d305
Cache Dependencies on GitHub Actions ( #3469 )
2023-01-06 08:13:20 +01:00
Aditya
19302bce25
Add Application(Builder).post_stop ( #3466 )
2023-01-04 16:48:48 +01:00
Aditya
3507cb13e6
Fix Dependency Warning Typo ( #3474 )
2023-01-03 18:50:06 +01:00
pre-commit-ci[bot]
6b59365464
pre-commit autoupdate (#3470 )
2023-01-03 13:27:56 +01:00
dependabot[bot]
74da17153b
Bump dessant/lock-threads from 3.0.0 to 4.0.0 ( #3462 )
2023-01-02 21:55:21 +01:00
dependabot[bot]
97e6e7e206
Bump actions/stale from 6 to 7 ( #3461 )
2023-01-02 21:53:44 +01:00
Bibo-Joshi
d1159cd5ac
Stabilize Tests on Closing and Hiding the General Forum Topic ( #3460 )
2023-01-02 19:45:07 +01:00
Bibo-Joshi
51ad4d76d0
Update Copyright to 2023 ( #3459 )
2023-01-01 21:31:29 +01:00
Hinrich Mahler
171953f109
Bump version to v20.0
2023-01-01 17:20:54 +01:00
Harshil
606773d8f0
API 6.4 ( #3449 )
...
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-01-01 17:00:49 +01:00
Bibo-Joshi
f408b1a2dd
Documentation Improvements ( #3428 , #3423 , #3429 , #3441 , #3404 , #3443 )
...
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Eisberge <22561095+Eisberge@users.noreply.github.com >
Co-authored-by: Joshua Tang <joshuaystang@gmail.com >
2023-01-01 16:24:00 +01:00
Harshil
3e7ab7e7af
Downgrade sphinx to 5.3.0 to Fix Search ( #3457 )
2023-01-01 15:48:48 +01:00
Aditya
456b81d22a
Allow Sequence Input for Bot Methods ( #3412 )
...
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2023-01-01 14:24:30 +01:00
Bibo-Joshi
cb90814829
Update Link-Check CI and Replace a Dead Link ( #3456 )
2023-01-01 13:48:24 +01:00
Bibo-Joshi
7b61a30fb1
Freeze Classes Without Arguments ( #3453 )
2023-01-01 13:04:37 +01:00
dependabot[bot]
f3a9b74445
Bump sphinx from 5.3.0 to 6.0.0 ( #3450 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2022-12-31 16:59:49 +01:00
Dmitry Kolomatskiy
d996e8f9c9
Add New Constants ( #3444 )
2022-12-30 14:09:06 +01:00
Bibo-Joshi
0a6725852f
Override Bot.__deepcopy__ to Raise TypeError ( #3446 )
2022-12-30 10:50:49 +01:00
Bibo-Joshi
b8fbb89fae
Add Log Decorator to Bot.get_webhook_info ( #3442 )
2022-12-27 19:02:50 +01:00
Bibo-Joshi
f3650364b9
Add Documention On Verifying Releases ( #3436 )
2022-12-21 16:55:58 +01:00
Bibo-Joshi
5b629ede56
Drop Undocumented Job.__lt__ ( #3432 )
2022-12-19 18:32:53 +01:00
Hinrich Mahler
28afeccf70
Bump version to v20.0b0
2022-12-15 15:54:00 +01:00
Bibo-Joshi
9467847d74
Documentation Improvements ( #3386 )
...
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-12-15 15:20:04 +01:00
Bibo-Joshi
b11a0c7778
Make TelegramObject Immutable ( #3249 )
2022-12-15 15:00:36 +01:00
Bibo-Joshi
ff645c6fe2
Reduce Code Duplication in Testing Defaults ( #3419 )
2022-12-12 10:51:33 +01:00
dependabot[bot]
9c3053b3f9
Bump pytest-xdist from 3.0.2 to 3.1.0 ( #3415 )
2022-12-11 15:28:12 +01:00
dependabot[bot]
5a6c9cc777
Bump pytest-asyncio from 0.20.2 to 0.20.3 ( #3417 )
2022-12-11 15:27:51 +01:00
pre-commit-ci[bot]
6e4a1f0a21
pre-commit autoupdate (#3409 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2022-12-06 11:28:47 +01:00
Aditya
f8be97c12c
Add Notes and Warnings About Optional Dependencies ( #3393 )
2022-12-02 12:08:11 +01:00
Harshil
4123e7aa57
Simplify Internals of Bot Methods ( #3396 )
2022-12-01 19:26:01 +01:00
Dmitry Kolomatskiy
637cc574ab
Reduce Code Duplication in Several Bot Methods ( #3385 )
2022-11-26 19:05:44 +01:00
Hinrich Mahler
3042f187ed
Bump version to v20.0a6
2022-11-24 12:32:43 +01:00
Bibo-Joshi
867f742d08
Only Persist Arbitrary callback_data if ExtBot.callback_data_cache is Present ( #3384 )
2022-11-24 12:13:54 +01:00
Harshil
1724212458
Improve Backwards Compatibility of TelegramObjects Pickle Behavior ( #3382 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-11-24 12:11:37 +01:00
Bibo-Joshi
05c6ca06f8
Fix Naming and Keyword Arguments of File.download_* Methods ( #3380 )
2022-11-24 12:09:51 +01:00
Poolitzer
8c03f0e2eb
Fix Return Value Annotation of Chat.create_forum_topic ( #3381 )
...
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
2022-11-23 13:21:10 +01:00
Hinrich Mahler
20c3532e01
Bump version to v20.0a5
2022-11-22 12:51:57 +01:00
Dmitry Kolomatskiy
6cba7f164e
Merge ChatDescriptionLimit Enum Into ChatLimit ( #3377 )
2022-11-22 12:09:44 +01:00
Dmitry Kolomatskiy
c3f8fcd7b7
Add Several New Enums To Constants ( #3351 )
2022-11-22 11:07:42 +01:00
Harshil
caacafa090
API 6.3 ( #3346 )
...
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
Co-authored-by: Clot <69784758+clot27@users.noreply.github.com >
2022-11-22 10:43:50 +01:00
Bibo-Joshi
0a614e4bab
Documentation Improvements ( #3370 , #3376 , #3366 )
...
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com >
2022-11-22 10:39:20 +01:00
dependabot[bot]
c12a04c224
Update httpx requirement from ~=0.23.0 to ~=0.23.1 ( #3373 )
2022-11-20 18:00:52 +01:00
Bibo-Joshi
5c3b06f015
Update Meta Config ( #3365 )
2022-11-15 17:47:24 +01:00
Bibo-Joshi
9520c6eeba
Documentation Improvements ( #3214 , #3217 , #3218 , #3271 , #3289 , #3292 , #3303 , #3312 , #3306 , #3319 , #3326 , #3314 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Simon Fong <44134941+simonfongnt@users.noreply.github.com >
Co-authored-by: Piotr Rogulski <rivinek@gmail.com >
Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Or Bin <or@raftt.io >
Co-authored-by: Sandro <j32g7f67hb@liamekaens.com >
Co-authored-by: Hatim Zahid <63000127+HatimZ@users.noreply.github.com >
Co-authored-by: Robi <53259730+RobiMez@users.noreply.github.com >
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com >
2022-11-15 09:06:23 +01:00
dependabot[bot]
70aa674226
Bump pytest-asyncio from 0.20.1 to 0.20.2 ( #3359 )
2022-11-14 20:19:00 +01:00
Bibo-Joshi
422aa86874
Fix Defaults Handling in Bot.answer_web_app_query ( #3362 )
2022-11-14 20:08:16 +01:00
Harshil
b44af136e7
Update PR Template ( #3361 )
2022-11-13 21:37:20 +01:00
Harshil
e54c6a04de
Handle Lists and Tuples and Datetimes Directly in TelegramObject.to_dict ( #3353 )
2022-11-13 21:28:41 +01:00
Harshil
e1d56178c8
Fix DeepSource Issues ( #3357 )
2022-11-11 18:18:42 +01:00
Harshil
1d1d774d9f
Flaky Unit Tests: Use pytest Marker ( #3354 )
2022-11-09 20:43:27 +01:00
Bibo-Joshi
8dead11a25
Improve Unit Tests Regarding ChatMemberUpdated.difference ( #3352 )
2022-11-08 17:56:39 +01:00
Bibo-Joshi
53c3a130ab
Add Three New Test Bots ( #3347 )
2022-11-06 20:34:12 +01:00
Harshil
834568d7f4
Add a Test for MessageAttachmentType ( #3335 )
2022-11-06 16:04:01 +01:00
Dmitry Kolomatskiy
d2c6c4b369
Add Shortcut Parameters caption, parse_mode and caption_entities to Bot.send_media_group ( #3295 )
2022-11-02 08:32:40 +01:00
Poolitzer
636654cb71
Split File.download Into File.download_to_drive And File.download_to_memory ( #3223 )
2022-11-02 08:28:41 +01:00
Biruk Alamirew
55106d6d57
Add constants.MessageLimit.DEEP_LINK_LENGTH ( #3315 )
2022-11-01 17:58:58 +01:00
pre-commit-ci[bot]
a1e6a6e779
pre-commit autoupdate (#3325 )
2022-11-01 12:59:06 +01:00
Bibo-Joshi
e58cbcdb17
Make Almost All 3rd Party Dependencies Optional ( #3267 )
2022-10-31 10:12:18 +01:00
Bibo-Joshi
9e42dab184
Don't Edit Objects In-Place When Inserting ext.Defaults ( #3311 )
2022-10-31 09:46:56 +01:00
miles
25dc87a633
Add Methods Chat.mention_{html, markdown, markdown_v2} ( #3308 )
2022-10-31 09:45:21 +01:00
Bibo-Joshi
f68663af7e
Overhaul String Representation of TelegramObject ( #3234 )
2022-10-30 11:21:19 +01:00
dependabot[bot]
07f8dd1cb1
Bump pytest from 7.1.3 to 7.2.0 ( #3318 )
2022-10-29 16:05:55 +02:00
dependabot[bot]
18c15ed8d1
Bump pytest-xdist from 2.5.0 to 3.0.2 ( #3317 )
2022-10-29 14:56:31 +02:00
Harshil
959e6a8470
Update Test Matrix to Use Stable Python 3.11 ( #3313 )
2022-10-27 09:24:23 +02:00
dependabot[bot]
76c2fc1776
Bump sphinx from 5.2.3 to 5.3.0 ( #3300 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-10-23 14:59:27 +02:00
dependabot[bot]
6340d6652a
Bump pytest-asyncio from 0.19.0 to 0.20.1 ( #3299 )
2022-10-23 14:58:56 +02:00
Harshil
87b2e29d60
Run Unit Tests in Parallel ( #3283 )
2022-10-23 14:25:49 +02:00
Harshil
24d390e1aa
Add recursive Parameter to TelegramObject.to_dict() ( #3276 )
2022-10-19 10:31:55 +02:00
Harshil
210f9afd66
Type Hinting Fix for Message.effective_attachment ( #3294 )
2022-10-17 20:38:53 +02:00
Harshil
eb818da93f
Add Two Constants Related to Local Bot API Servers ( #3296 )
2022-10-17 19:58:28 +02:00
Bibo-Joshi
1c20ff3fb9
Introduce TelegramObject.api_kwargs ( #3233 )
2022-10-07 11:51:53 +02:00
Bibo-Joshi
fb87418473
Read-Only CallbackDataCache ( #3266 )
2022-10-07 10:18:08 +02:00
pre-commit-ci[bot]
870a20e834
pre-commit autoupdate (#3282 )
2022-10-06 15:26:42 +02:00
dependabot[bot]
5b7356d905
Bump actions/stale from 5 to 6 ( #3277 )
2022-10-03 10:14:49 +02:00
Bibo-Joshi
918c486c65
Skip JobQueue Tests on Windows Again ( #3280 )
2022-10-03 10:12:08 +02:00
miles
26e7cd2afb
Add chat_id and username Parameters to ChatJoinRequestHandler ( #3261 )
2022-10-02 17:54:30 +02:00
dependabot[bot]
2eda63e9ae
Bump furo from 2022.6.21 to 2022.9.29 ( #3268 )
2022-10-01 22:33:55 +02:00
dependabot[bot]
b2902a0789
Bump sphinx from 5.1.1 to 5.2.3 ( #3269 )
2022-10-01 13:41:45 +02:00
Bibo-Joshi
edc3e2be84
Make Job.job a Property and Make Jobs Hashable ( #3250 )
2022-09-28 21:33:15 +02:00
Bibo-Joshi
c6721a799d
Fix CallbackQueryHandler Not Handling Non-String Data Correctly With Regex Patterns ( #3252 )
2022-09-22 20:30:30 +02:00
Bibo-Joshi
fdfbcdf51e
Explicit local_mode Setting ( #3154 )
2022-09-19 22:31:23 +02:00
Bibo-Joshi
aed8e68fca
Add Properties for API Settings of Bot ( #3247 )
2022-09-18 15:42:12 +02:00
Harshil
50249206df
Bump Python 3.11 to RC2 in Test Matrix ( #3246 )
2022-09-17 15:09:41 +02:00
pre-commit-ci[bot]
5480be4c25
pre-commit Updates (#3221 )
2022-09-17 15:08:54 +02:00
Bibo-Joshi
436b5ff7a8
Switch from Stale Bot to GitHub Actions ( #3243 )
2022-09-16 22:42:45 +02:00
Harshil
3536bb247e
Improve Warning About Unknown ConversationHandler States ( #3242 )
2022-09-16 22:13:11 +02:00
dependabot[bot]
a80a053b0a
Bump pytest from 7.1.2 to 7.1.3 ( #3228 )
2022-09-11 10:37:43 +02:00
Hinrich Mahler
2642ecc737
Bump version to v20.0a4
2022-08-27 13:25:57 +02:00
Bibo-Joshi
abfcf72a56
Fix setup.py Regarding Optional Dependencies ( #3209 )
2022-08-27 13:23:17 +02:00
Hinrich Mahler
0e044804d2
Bump version to v20.0a3
2022-08-27 12:39:38 +02:00
Bibo-Joshi
5b9afd5329
Type Hinting Fixes ( #3202 )
2022-08-27 11:58:28 +02:00
Bibo-Joshi
a983a89964
Documentation Improvements ( #3139 , #3153 , #3135 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Poolitzer <github@poolitzer.eu >
Co-authored-by: Pawan <pawanrai9999@gmail.com >
Co-authored-by: Aditya Yadav <69784758+aditya-yadav-27@users.noreply.github.com >
2022-08-27 11:46:51 +02:00
Bibo-Joshi
741a50ab97
New Rate Limiting Mechanism ( #3148 )
2022-08-26 06:50:03 +02:00
Poolitzer
cf6c298b82
API 6.2 ( #3195 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-08-25 19:36:55 +02:00
Harshil
90c0fe948b
Add Python 3.11 to Test Suite & Adapt Enum Behaviour ( #3168 )
2022-08-17 18:24:50 +02:00
dependabot[bot]
2c84122654
Bump sphinx from 5.0.2 to 5.1.1 ( #3177 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-03 22:03:00 +02:00
Harshil
143db5fc9d
Drop Manual Token Validation ( #3167 )
2022-08-03 08:16:48 +02:00
pre-commit-ci[bot]
c28ad86214
Update pre-commit Dependencies ( #3085 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-08-02 08:26:36 +02:00
dependabot[bot]
15f153474a
Bump pytest-asyncio from 0.18.3 to 0.19.0 ( #3158 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-17 13:34:08 +02:00
Harshil
55d66a9ea3
Fix helpers.mention_markdown for Markdown V1 and Improve Related Unit Tests ( #3155 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-07-17 13:07:21 +02:00
dependabot[bot]
14c86daf23
Update tornado requirement from ~=6.1 to ~=6.2 ( #3149 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-07-12 20:16:22 +02:00
Bibo-Joshi
460aaf8bb6
Make chat/user_data Available in Error Handler for Errors in Jobs ( #3152 )
2022-07-11 07:54:03 +02:00
Harshil
1e703a0be5
Simplify Unit Tests for Bot.send_chat_action ( #3151 )
2022-07-10 17:14:45 +02:00
Bibo-Joshi
142e3c0177
Add api_kwargs Paramater to Bot.log_out and Improve Related Unit Tests ( #3147 )
2022-07-10 15:37:12 +02:00
Bibo-Joshi
d4b7a2b3e9
Drop pre-commit Dependencies from requirements-dev.txt ( #3120 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-07-09 23:12:07 +02:00
dependabot[bot]
dac6d03666
Bump black from 22.3.0 to 22.6.0 ( #3132 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-07-08 00:13:57 +02:00
dependabot[bot]
3bfd58dfd9
Bump actions/setup-python from 3 to 4 ( #3131 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-07 23:21:20 +02:00
Bibo-Joshi
2d6459b290
Make Bot.delete_my_commands a Coroutine Function ( #3136 )
2022-07-04 19:33:45 +02:00
Alex
1f0f6a8d3d
Add Application.post_shutdown ( #3126 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-07-03 15:22:50 +02:00
Bibo-Joshi
2ecb8d5413
Fix ConversationHandler.check_update not respecting per_user ( #3128 )
2022-07-03 15:21:04 +02:00
Bibo-Joshi
f1d03393de
Change Default Values for concurrent_updates and connection_pool_size ( #3127 )
2022-06-29 21:38:03 +02:00
Hinrich Mahler
df07148e2d
Bump version to v20.0a2
2022-06-27 19:19:54 +02:00
Bibo-Joshi
2d2cede442
Documentation Improvements ( #3103 , #3121 , #3098 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: David <dsb321mp@gmail.com >
Co-authored-by: Harshil Mehta <37377066+harshil21@users.noreply.github.com >
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Alex <53974096+ExalFabu@users.noreply.github.com >
2022-06-27 18:58:51 +02:00
Poolitzer
08e223ba90
API 6.1 ( #3112 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2022-06-27 18:54:11 +02:00
Bibo-Joshi
01d643913e
Stabilize CI ( #3119 )
2022-06-27 18:46:52 +02:00
Aditya Yadav
755945172d
Add Additional Shortcut Methods to Chat ( #3115 )
2022-06-27 18:45:30 +02:00
dependabot[bot]
24b4de9f10
Bump pyupgrade from 2.32.1 to 2.34.0 ( #3096 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-06-25 11:52:39 +02:00
David
76bfe8ceff
Mermaid-based Example State Diagrams ( #3090 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-06-24 18:15:10 +02:00
dependabot[bot]
b498786d7c
Bump furo from 2022.6.4 to 2022.6.4.1 ( #3095 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-19 17:12:54 +02:00
dependabot[bot]
bfe30048e8
Bump mypy from 0.960 to 0.961 ( #3093 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-06-19 17:12:26 +02:00
Hinrich Mahler
e25c523b69
Bump version to v20.0a1
2022-06-09 19:07:15 +02:00
Bibo-Joshi
67e7468366
Move Examples To Documentation ( #3089 )
2022-06-09 17:22:32 +02:00
Bibo-Joshi
11007c1715
Documentation Improvements ( #3010 , #3007 , #3012 , #3067 , #3081 , #3082 )
...
Co-authored-by: KnorpelSenf <shtrog@gmail.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Poolitzer <github@poolitzer.eu >
Co-authored-by: Adi <71205439+Aditya-Rajgor@users.noreply.github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-09 17:08:54 +02:00
Poolitzer
d6e95f1974
Improve Some Unit Tests ( #3026 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2022-06-09 17:07:28 +02:00
dependabot[bot]
de28f177bd
Update cachetools requirement from ~=5.1.0 to ~=5.2.0 ( #3080 )
...
* Update cachetools requirement from ~=5.1.0 to ~=5.2.0
Updates the requirements on [cachetools](https://github.com/tkem/cachetools ) to permit the latest version.
- [Release notes](https://github.com/tkem/cachetools/releases )
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/tkem/cachetools/compare/v5.1.0...v5.2.0 )
---
updated-dependencies:
- dependency-name: cachetools
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* update pre-commit as well
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-06-09 17:06:49 +02:00
Bibo-Joshi
63104ac0b3
Add Application.post_init ( #3078 )
2022-06-08 07:44:22 +02:00
Bibo-Joshi
22419c0464
Fix Non-Blocking Entry Point in ConversationHandler ( #3068 )
2022-06-07 17:48:26 +02:00
Bibo-Joshi
42276338b1
Add Arguments chat/user_id to CallbackContext And Example On Custom Webhook Setups ( #3059 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-06-03 16:55:36 +02:00
dependabot[bot]
5f547f3725
Update httpx requirement from ~=0.22.0 to ~=0.23.0 ( #3069 )
...
* Update httpx requirement from ~=0.22.0 to ~=0.23.0
Updates the requirements on [httpx](https://github.com/encode/httpx ) to permit the latest version.
- [Release notes](https://github.com/encode/httpx/releases )
- [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md )
- [Commits](https://github.com/encode/httpx/compare/0.22.0...0.23.0 )
---
updated-dependencies:
- dependency-name: httpx
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* update other places as well
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-06-02 10:10:08 +02:00
dependabot[bot]
8e7220e5db
Update cachetools requirement from ~=5.0.0 to ~=5.1.0 ( #3058 )
...
* Update cachetools requirement from ~=5.0.0 to ~=5.1.0
Updates the requirements on [cachetools](https://github.com/tkem/cachetools ) to permit the latest version.
- [Release notes](https://github.com/tkem/cachetools/releases )
- [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/tkem/cachetools/compare/v5.0.0...v5.1.0 )
---
updated-dependencies:
- dependency-name: cachetools
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* update other places as well
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-06-02 10:09:05 +02:00
dependabot[bot]
977d56ab43
Bump mypy from 0.950 to 0.960 ( #3070 )
...
* Bump mypy from 0.950 to 0.960
Bumps [mypy](https://github.com/python/mypy ) from 0.950 to 0.960.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.950...v0.960 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* update pre-commit as well
* fix type hint for CIRHandler.collect_additional_context
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-06-02 10:08:15 +02:00
Poolitzer
306cc64170
Don't Set Signal Handlers On Windows By Default ( #3065 )
2022-06-02 09:43:03 +02:00
dglitxh
42955ecddf
Add Convenience Property Message.id ( #3077 )
2022-06-01 21:29:46 +02:00
Bibo-Joshi
67869693a7
Expose BaseRequest.parse_json_payload ( #3072 )
2022-06-01 21:26:18 +02:00
Bibo-Joshi
6ded9cc25c
Drop InputFile.is_image ( #3053 )
2022-05-29 14:35:26 +02:00
Bibo-Joshi
5e0bcfbcc6
Drop Explicit Type conversions in __init__ s ( #3056 )
...
* Drop explicit type conversions in `__init__` s
* missed one
2022-05-26 19:16:30 +02:00
Bibo-Joshi
a17a4c6c8f
Handle List-Valued Attributes More Consistently ( #3057 )
2022-05-26 19:15:54 +02:00
Bibo-Joshi
dc13b69dac
Split {Command, Prefix}Handler And Make Attributes Immutable ( #3045 )
2022-05-26 11:10:00 +02:00
James Carl Necio
349baa0202
Align Behavior Of JobQueue.run_daily With cron ( #3046 )
2022-05-25 10:02:00 +02:00
Bibo-Joshi
5e24765bbc
Escape Backslashes in escape_markdown ( #3055 )
2022-05-21 16:54:11 +02:00
Bibo-Joshi
e10d933fde
Add Example for WebApp ( #3052 )
2022-05-19 22:14:02 +02:00
Bibo-Joshi
2175af6abc
Apply isort and Update pre-commit.ci Configuration ( #3049 )
2022-05-19 15:10:08 +02:00
Bibo-Joshi
ca4e4c6280
Drop Support for ujson ( #3037 )
2022-05-19 12:47:53 +02:00
Bibo-Joshi
d2cabcaa74
Adjust pre-commit Settings for isort ( #3043 )
2022-05-18 17:23:00 +02:00
tal66
076955d04d
Make PTB Specific Keyword-Only Arguments for PTB Specific in Bot methods ( #3035 )
...
* Introduce keyword-only arguments in Bot methods
* partial code review fix
* tests, code rev changes
* flake8
* tests, code rev, more shortcut methods
* One more iteration on `check_shortcut_signature`
* Update tests/conftest.py
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-05-18 17:18:44 +02:00
Bibo-Joshi
c1041655f6
Adjust Equality Comparisons to Fit Bot API 6.0 ( #3033 )
2022-05-18 07:48:20 +02:00
dependabot[bot]
298c5fab3b
Bump pylint from 2.13.8 to 2.13.9 ( #3032 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-15 22:23:04 +02:00
Harshil
3013870c1f
Add Version Check to Examples ( #3036 )
2022-05-15 14:08:40 +02:00
Bibo-Joshi
5e924014de
Add Tuple Based Version Info and Rename telegram.bot_api_version to telegram.__bot_api_version__ ( #3030 )
2022-05-14 15:50:12 +02:00
Bibo-Joshi
f792102212
Use Collection Instead of List and Tuple ( #3025 )
2022-05-13 16:41:34 +02:00
dependabot[bot]
72e357a780
Bump dessant/lock-threads from 2.0.1 to 3.0.0 ( #2998 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-12 19:54:59 +02:00
Harshil
72c3eb857b
Improve Type Annotations for CallbackContext and Move Default Type Alias to ContextTypes.DEFAULT_TYPE ( #3017 , #3023 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-12 19:36:25 +02:00
Aditya Yadav
1f7efe4519
Rename Job.context to Job.data ( #3028 )
2022-05-12 19:26:03 +02:00
Bibo-Joshi
e47d18c9ec
Remove Client-Side Parameter Validation ( #3024 )
2022-05-12 19:20:24 +02:00
Bibo-Joshi
65bbea780a
Rename Handler to BaseHandler ( #3019 )
2022-05-12 18:18:40 +02:00
dependabot[bot]
23ed0880d2
Bump pyupgrade from 2.32.0 to 2.32.1 ( #2999 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-10 18:35:59 +02:00
Bibo-Joshi
a299867b1b
Stabilize Application.run_* on Python 3.7 ( #3009 )
2022-05-10 18:35:20 +02:00
Harshil
be8f4f7aad
Don't Pass Default Values of Optional Parameters to Telegram ( #2978 )
2022-05-09 19:30:46 +02:00
Bibo-Joshi
ea8089ad3e
Ignore Code Style Commits in git blame ( #3003 )
2022-05-09 19:29:22 +02:00
Bibo-Joshi
d917404de1
Adjust Tests to Changed API Behavior ( #3002 )
2022-05-07 21:47:50 +02:00
Hinrich Mahler
95d6272d20
Bump version to v20.0a0
2022-05-06 19:03:54 +02:00
Bibo-Joshi
a10bf3241e
Documentation Fixes & Improvements ( #2969 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-05-06 18:22:36 +02:00
Bibo-Joshi
950d9a0751
Extend Code Formatting With Black ( #2972 )
2022-05-06 18:22:35 +02:00
Bibo-Joshi
62cbd11f14
Adapt Tests to Changed Bot.get_file Behavior ( #2995 )
2022-05-06 18:22:34 +02:00
Harshil
335772568f
Update and Expand Tests & pre-commit Settings and Improve Code Quality ( #2925 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:22:34 +02:00
Harshil
e10f9164fe
API 6.0 ( #2956 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:22:34 +02:00
Bibo-Joshi
a491eead5a
Update Dependency Policy ( #2958 )
2022-05-06 18:22:28 +02:00
Bibo-Joshi
823d030c2c
Use enums for dynamic types & rename two attributes in ChatMember ( #2817 )
2022-05-06 18:21:36 +02:00
Poolitzer
d4e1a19ab1
adding permissions to workflow ( #2984 )
2022-05-06 18:21:36 +02:00
Bibo-Joshi
36888a7c47
Fix a Bug in ChatMemberUpdated.difference ( #2947 )
2022-05-06 18:21:36 +02:00
Poolitzer
97281da351
Add Convenience Shortcuts ChatPermissions.{all, no}_permissions ( #2948 )
2022-05-06 18:20:58 +02:00
Bibo-Joshi
3c8953cc5a
Add Python 3.10 to Test Suite ( #2968 )
2022-05-06 18:19:15 +02:00
Harshil
7c113f5c75
Expand and Adjust filters.{Document, Sticker} ( #2922 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:19:15 +02:00
Bibo-Joshi
42eaa67fd5
Switch to asyncio ( #2731 )
...
Co-authored-by: tsnoam <tsnoam@gmail.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
2022-05-06 18:19:15 +02:00
Harshil
a743726b08
Persistence of Bots: Refactor Automatic Replacement and Integration with TelegramObject ( #2893 )
2022-05-06 18:19:15 +02:00
Bibo-Joshi
7b37f9a6fa
Documentation Improvements ( #2856 , #2798 , #2854 , #2841 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-05-06 18:19:15 +02:00
Harshil
835434c12f
Return Plain Dicts from BasePersistence.get_*_data ( #2873 )
2022-05-06 18:19:15 +02:00
murugu-21
778eadbe7c
Replace git.io Links ( #2872 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:19:15 +02:00
DonalDuck004
9c9b133ed2
Add Dispatcher.migrate_chat_data ( #2848 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-05-06 18:19:14 +02:00
Harshil
8560af9c4f
Remove telegram.ReplyMarkup ( #2870 )
2022-05-06 18:19:14 +02:00
Harshil
0ccd7d40ac
Add Method drop_chat/user_data to Dispatcher and Persistence ( #2852 )
2022-05-06 18:19:14 +02:00
Harshil
e442782d8f
Fix failing animation tests ( #2865 )
2022-05-06 18:19:14 +02:00
Harshil
f4147fb583
Improve Code Quality & Test Suite ( #2843 )
2022-05-06 18:19:14 +02:00
Harshil
9354db7c19
Defaults.protect_content ( #2840 )
2022-05-06 18:19:14 +02:00
Bibo-Joshi
0a6cc7f722
Documentation Fixes & Improvements ( #2822 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-05-06 18:19:14 +02:00
Bibo-Joshi
6382361161
Improve Job.__getattr__ ( #2832 )
2022-05-06 18:19:14 +02:00
Harshil
5891db2f6b
Add Dispatcher.add_handlers ( #2823 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:19:14 +02:00
Bibo-Joshi
9a8c76fc2b
Improve Error Messages in CommandHandler.__init__ ( #2837 )
2022-05-06 18:19:14 +02:00
Bibo-Joshi
ced58b790e
Documentation Improvements ( #2693 , #2691 , #2739 )
2022-05-06 18:19:14 +02:00
Harshil
89d5310504
Use __all__ Consistently ( #2805 )
2022-05-06 18:19:13 +02:00
Bibo-Joshi
de85eec674
Convenience Functionality for ChatInviteLinks ( #2782 )
2022-05-06 18:19:13 +02:00
Harshil
9b56be44b4
Update pre-commit Settings & Improve a Test ( #2796 )
2022-05-06 18:19:13 +02:00
Simon Damberg
28c8c155ce
Improve Subscription of TelegramObject ( #2719 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-05-06 18:19:13 +02:00
Bibo-Joshi
55e8c38e50
Improve Code Quality ( #2783 )
2022-05-06 18:19:13 +02:00
Harshil
145d04230b
Overhaul of Filters ( #2759 )
2022-05-06 18:19:13 +02:00
Poolitzer
b852a6866d
Refactor Warnings in ConversationHandler ( #2755 , #2784 )
2022-05-06 18:19:13 +02:00
Harshil
44f1ce3784
Update Code Quality Dependencies ( #2748 )
2022-05-06 18:19:13 +02:00
Harshil
42df3f471d
Update Exceptions for Immutable Attributes ( #2749 )
2022-05-06 18:19:13 +02:00
Zisis Pavloudis
6f9e733f58
Introduce TelegramObject.set/get_bot ( #2712 )
2022-05-06 18:19:13 +02:00
Bibo-Joshi
0e60d56f53
Introduce Enums for telegram.constants ( #2708 )
2022-05-06 18:19:13 +02:00
eldbud
7e51901d51
Refactor MRO of InputMedia* and Some File-Like Classes ( #2717 )
2022-05-06 18:19:13 +02:00
eldbud
59014bee64
Make Tests Agnostic of the CWD ( #2727 )
2022-05-06 18:19:12 +02:00
Bibo-Joshi
0cb8d50aea
Accept File Paths for Updater/DispatcherBuilder.private_key ( #2724 )
2022-05-06 18:19:12 +02:00
Kenneth Cheo
5275c45199
Mark Internal Modules As Private ( #2687 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:19:12 +02:00
Bibo-Joshi
7afce46d9f
Introduce Builder Pattern for Updater and Dispatcher ( #2646 )
2022-05-06 18:19:12 +02:00
Piraty
edb30cf342
Use Error Messages for Pylint Instead of Codes ( #2700 )
2022-05-06 18:19:12 +02:00
Philipp
99581abe05
Add Filters.update.edited ( #2705 )
2022-05-06 18:19:11 +02:00
eldbud
1edfa1504c
Handle Filepaths via the Pathlib Module ( #2688 )
2022-05-06 18:19:11 +02:00
Harshil
267d4e8191
Improve Signature Inspection for Bot Methods ( #2686 )
2022-05-06 18:19:11 +02:00
Bibo-Joshi
90b82eed99
Pass Failing Jobs to Error Handlers ( #2692 )
2022-05-06 18:19:11 +02:00
Poolitzer
51488bb4be
Update Notification Workflows ( #2695 )
2022-05-06 18:19:11 +02:00
Bibo-Joshi
f0efb14e6d
Move Defaults to telegram.ext ( #2648 )
2022-05-06 18:19:11 +02:00
Bibo-Joshi
c486c396da
Doc Fixes ( #2597 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com >
2022-05-06 18:19:11 +02:00
Bibo-Joshi
ce94651490
Make InlineQuery.answer Raise ValueError ( #2675 )
2022-05-06 18:19:11 +02:00
Bibo-Joshi
c440c255a7
Clear Up Import Policy ( #2671 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-05-06 18:19:11 +02:00
Harshil
f6497093ce
Warnings Overhaul ( #2662 )
2022-05-06 18:19:11 +02:00
Bibo-Joshi
7528503794
Refine Dispatcher.dispatch_error ( #2660 )
...
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2022-05-06 18:19:11 +02:00
Harshil
afcff83ebc
Add User Friendly Type Check For Init Of {Inline, Reply}KeyboardMarkup ( #2657 )
2022-05-06 18:19:10 +02:00
Bibo-Joshi
8f0031e9c8
Remove Deprecated Functionality ( #2644 , #2740 , #2745 )
2022-05-06 18:19:10 +02:00
Harshil
5c500fb6fd
Fix Signatures and Improve test_official ( #2643 )
2022-05-06 18:19:10 +02:00
Poolitzer
641f931f19
Drop Non-CallbackContext API ( #2617 )
2022-05-06 18:19:10 +02:00
Ankit Raibole
4d493aff16
Remove day_is_strict argument of JobQueue.run_monthly ( #2634 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:19:10 +02:00
Harshil
b4ea5557ac
Remove __dict__ from __slots__ and drop Python 3.6 ( #2619 , #2636 )
2022-05-06 18:19:10 +02:00
Bibo-Joshi
be441d56f9
Refactor Initialization of Persistence Classes ( #2604 )
2022-05-06 18:19:09 +02:00
Stɑrry Shivɑm
633b7e7762
Make BasePersistence Methods Abstract ( #2624 )
...
Signed-off-by: starry69 <starry369126@outlook.com >
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:19:09 +02:00
Poolitzer
babcc2a448
Add Custom pytest Marker to Ease Development ( #2628 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:19:09 +02:00
Iulian Onofrei
8a7aeaf86f
Improve Type Hinting for CallbackContext ( #2587 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:19:09 +02:00
Poolitzer
97a585f240
Add Code Comment Guidelines to Contribution Guide ( #2612 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2022-05-06 18:19:09 +02:00
Harshil
4a329aa4da
Move and Rename TelegramDecryptionError to telegram.error.PassportDecryptionError ( #2621 )
2022-05-06 18:19:09 +02:00
Hinrich Mahler
92cb6f3ae8
Bump version to v13.11
2022-02-02 21:16:36 +01:00
Harshil
a35ecf4065
API 5.7 ( #2881 )
2022-02-02 21:05:46 +01:00
Hinrich Mahler
ade1529986
Bump version to v13.10
2022-01-03 08:36:27 +01:00
Harshil
e6d9f3d057
Update Copyright to 2022 ( #2836 )
2022-01-03 08:15:18 +01:00
Harshil
98bf378c6e
API 5.6 ( #2835 )
2022-01-03 08:13:33 +01:00
Poolitzer
c4b413ef9e
Update Documentation of BotCommand ( #2820 )
2021-12-17 16:12:34 +01:00
Hinrich Mahler
a9dd2b1746
Bump version to v13.9
2021-12-11 15:44:21 +01:00
Bibo-Joshi
cb95868c4a
Api 5.5 ( #2809 )
...
Co-authored-by: poolitzer <github@poolitzer.eu >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2021-12-11 15:21:56 +01:00
Bibo-Joshi
2f6c4075c8
Adjust Automated Locking of Inactive Closed Threads ( #2775 )
2021-11-10 21:16:59 +01:00
Hinrich Mahler
c53dc7dae4
Bump version to v13.8.1
2021-11-08 20:09:23 +01:00
Bibo-Joshi
8b3ea5ce56
Add ChatJoinRequest(Handler) to Docs ( #2771 )
2021-11-08 19:56:57 +01:00
Hinrich Mahler
51a4a6664c
Bump version to v13.8
2021-11-08 19:12:10 +01:00
Bibo-Joshi
e4dc80f41d
API 5.4 ( #2767 )
...
Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com >
2021-11-08 19:02:20 +01:00
Abshar Mohammed Aslam
bc7c422a11
Create Issue Template Forms ( #2689 )
2021-10-03 20:08:04 +02:00
Yan
c3e3bb77e5
Fix camelCase Functions in ExtBot ( #2659 )
...
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com >
2021-09-15 17:07:11 +02:00
DonalDuck004
a25c76e6a3
Fix Empty Captions not Being Passed by Bot.copy_message ( #2651 )
2021-09-09 07:50:04 +02:00
Mehdi
0c5085022c
Fix Setting Thumbs When Uploading A Single File ( #2583 )
...
* Update request.py
If the media has a thumb, we also need to attach it to the data.
* Add test
* Editing syntax
* Debug test
* update request.py
* Update test_inputmedia.py
* Update test_inputmedia.py
* Update test_inputmedia.py
Fix test.
* Update AUTHORS.rst
Adding my name!
* Update AUTHORS.rst
2021-08-11 08:34:47 +02:00
Bibo-Joshi
1fdaaac809
Fix Bug in BasePersistence.insert/replace_bot for Objects with __dict__ not in __slots__ ( #2603 )
...
* More special cases with slots
* Fix failing tests
2021-07-24 17:17:25 +02:00
Hinrich Mahler
bcec6f03cb
Bump version to v13.7
2021-07-01 18:03:38 +02:00
Bibo-Joshi
ed147813ab
API 5.3 ( #2572 )
...
* BotCommandScopes
* pre-commit
* typo
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
* rename kickChatMember & getChatMembersCount method
Signed-off-by: starry69 <starry369126@outlook.com >
* add `language_code` and `scope` to `get/set_my_commands`
and add `delete_my_commands()`
* add `input_field_placeholder` to replykeyboardmarkup.py and forcereply.py
also improved/fixed docs along the way
* showcase `input_field_placeholder` in conversationbot.py
* review 1
'i will not go away' has gone away 😢
* deprecate `Bot.commands` and make sure its only used for default scope
* review 2 (use constants for scope)
* Review
Signed-off-by: starry69 <starry369126@outlook.com >
* doc updates
* New ChatMember classes
Signed-off-by: starry69 <starry369126@outlook.com >
* Address review
Signed-off-by: starry69 <starry369126@outlook.com >
* add versionadded tags again
Signed-off-by: starry69 <starry369126@outlook.com >
* Improve tests & add a deprecation note to ChatMember
* test_official
* Documentation tweaks
* Bump bot api version number
* but bot
* Rename chat shortcuts
Signed-off-by: starry69 <starry369126@outlook.com >
* deepsource
Signed-off-by: starry69 <starry369126@outlook.com >
* add missing slot in botcommandscope & missing slot tests
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: starry69 <starry369126@outlook.com >
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
2021-07-01 17:45:19 +02:00
Bibo-Joshi
4315225642
Type Hinting Fixes ( #2552 )
...
* Fixe overload signatures for ContextTypes
* more fixing for contexttypes
2021-07-01 17:43:59 +02:00
Bibo-Joshi
a75dffd4a8
Doc Fixes ( #2551 )
...
* Document ExtBot.insert_callbakc_data
* fix duplicate object descriptions
Fixed by removing `:undoc-members:` in the affected classes.
Closes https://github.com/sphinx-doc/sphinx/issues/9294
* fix incorrect shortcut docstrings in user.py
* fix object type in forcereply.py
* fix discuss bot link in loginurl.py
* document that message is None for (my)_chat_member
in `effective_message`
* numerous persistence rendering fixes
* move docstring from property setter to property
* Revert "fix object type in forcereply.py"
This reverts commit 012663e0c3 .
* Document comparison of jobs
* Update min python version to 3.6.8
* remove old note from chat.py + some return msg fixes
* fix colon placement
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2021-07-01 17:34:23 +02:00
Harshil
fce2993d21
Improve Deprecation Warning for __slots__ ( #2574 )
...
* add stacklevel to `set_new_attribute_deprecated`
* detail warning message and change stacklevel
2021-06-29 18:10:08 +02:00
Harshil
9aec8deec6
Stabilize CI ( #2575 )
...
* attempt 'surely this one' on fixing test_idle and test_depr_warnings
* remove unused filterwarnings
2021-06-26 22:19:59 +02:00
Bibo-Joshi
ec3026673b
Fix Coverage Configuration ( #2571 )
...
* remove possibly malicious line from config
* exclude overload signatures from coverage
2021-06-25 09:02:46 +02:00
zeroone2numeral2
105f1ccdb5
Better Exception-Handling for BasePersistence.replace/insert_bot ( #2564 )
...
* Catch exceptions raised while copying __dict__/__slots__ in BasePersistence.replace/insert_bot()
Also updated the docstrings to reflect the changes in behavior with unexpected errors
* Tests: added to CustomClass immutable object that would trigger a setattr() exception
* Tests: added new uuid_ property to own CustomClass methods
* Updated AUTHORS.rst
* Revert "Tests: added new uuid_ property to own CustomClass methods"
This reverts commit 9e67463cf7 .
* Revert "Tests: added to CustomClass immutable object that would trigger a setattr() exception"
This reverts commit 1c258304
* Removed unneeded Exception cast to string
f-string will perform the string-ification on their own
* Removed another unneeded Exception cast to string
* Added test to parse unparsable objects in __dict__ or __slots__
* Applied black and pylint style suggestions
All lint tests passed
* Fix typo
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2021-06-20 22:14:05 +02:00
Bibo-Joshi
52ce03929b
Fix Bug in BasePersistence.insert/replace_bot for Objects with __dict__ in their slots ( #2561 )
...
* Handle objects with __dict__ in __slots__
* Rework
2021-06-13 15:07:40 +02:00
Bibo-Joshi
ac4768155f
Remove Incorrect Warning About Defaults and ExtBot ( #2553 )
...
* Don't throw warning when passing defaults to ExtBot
* Review
2021-06-10 12:03:44 +02:00
Harshil
d08172b4b0
Remove Deprecated pass_args from Deeplinking Example ( #2550 )
2021-06-07 09:05:17 +02:00
Hinrich Mahler
e982a5a567
Bump version to v13.6
2021-06-06 12:28:01 +02:00
Bibo-Joshi
cf4d3cae01
Doc Fixes ( #2495 )
...
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Bas ten Berge <bas+github@tenberge-ict.nl >
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
2021-06-06 12:16:23 +02:00
Bibo-Joshi
8531a7a40c
Arbitrary callback_data ( #1844 )
2021-06-06 11:48:48 +02:00
Bibo-Joshi
fce7cc903c
Add ContextTypes & BasePersistence.refresh_user/chat/bot_data ( #2262 )
2021-06-06 10:37:53 +02:00
GauthamramRavichandran
5da1dd7ce9
Add max_connections Parameter to Updater.start_webhook ( #2547 )
...
* Include max_connections args
* Update docs & add test
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2021-06-06 09:27:45 +02:00
Stɑrry Shivɑm
46cdeb495a
Fix for Promise.done_callback ( #2544 )
...
* Don't call done_cb on exceptions
Signed-off-by: starry69 <starry369126@outlook.com >
* improve docs
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
* revert black
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2021-06-05 17:08:45 +02:00
Bibo-Joshi
653691fafb
Improve Slot Tests ( #2541 )
2021-05-30 20:30:26 +02:00
Harshil
92ff6a8e2b
Add __slots__ ( #2345 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2021-05-29 16:18:16 +02:00
Bibo-Joshi
cc43aef64b
Fix Test Failing Due To Telegram Updates ( #2537 )
...
* Update TestPhoto
* try to fix test_idle again...
* fix test_send_game due to photo size changes...
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
2021-05-28 22:24:43 +02:00
Bibo-Joshi
e2c6d60721
Improve Code Quality ( #2536 )
...
* Start fixing stuff
* More docstrings
* stabilize test_idle
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
2021-05-27 20:34:58 +02:00
Bibo-Joshi
8bf88c3231
Supplement Codacy with DeepSource ( #2454 )
...
* Add deepsource config
* Update Badges
* Update Badges some more
* Stupid change to trigger analysis of all files
* Try to get ignore right
* Update badges again
* Get started on fixing issues
* Fix some more issues
* Remove more plank lines
* Docs for de_json/list & to_dict/json
* Some improvements from deepcode.ai
* Some more improvements
* Some more improvements
* More docstrnigs & let's run DS on the tests just for fun
* Autofix issues in 10 files
Resolved issues in the following files via DeepSource Autofix:
1. tests/conftest.py
2. tests/test_bot.py
3. tests/test_commandhandler.py
4. tests/test_conversationhandler.py
5. tests/test_dispatcher.py
6. tests/test_filters.py
7. tests/test_inputmedia.py
8. tests/test_messagehandler.py
9. tests/test_official.py
10. tests/test_persistence.py
* Some more improvements for tests, but that shall be enough
* Some more docstrings for functions
* Some minor stuff, try to fix tests
* Update DS config
* Still more docs
* Doc fixes
* More fixes
* Fix: indent docstring
* Some fixes
* Revert "Stupid change to trigger analysis of all files"
This reverts commit dd46c260
* Review
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
2021-05-27 09:38:17 +02:00
Poolitzer
1572c61063
Increase Test Coverage of CallbackQueryHandler ( #2520 )
...
* Test: let's see
* Test: let's see, now in the correct place
* Fix: Explicitly return None in else clause
also documented this behaviour clearly in the docstring
* add link in doc
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
* Fix: remove unnecessary else statement
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2021-05-27 09:37:37 +02:00
Harshil
5ff3b76e18
Stabilize CI ( #2522 )
...
* asking the test what is wrong with them
* fix botscore_not_modified tests for good
* xfail game tests due to race conditions
* address review (add a comment)
* fix xfail marker
* address review
* simplify expression
2021-05-19 13:33:41 +02:00
Poolitzer
cd69f69b28
Add Filters.attachment ( #2528 )
...
* feat: attachment filter
* fix: add versionadded statement
* Fix: small doc string changes
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2021-05-19 10:39:10 +02:00
Poolitzer
8b0d2e5f75
Add pattern Argument to ChosenInlineResultHandler ( #2517 )
...
* Feat: add pattern arg to ChosenInlineResultHandler
* Fix: remove unnecessary if clause
the attribute must be present, since it's not optional.
* Fix: wrong type documentation
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
* Fix: Addressing code review
small documentation fixes, and moving one test.
* Fix: link to matches
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
* Fix: also link here
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2021-05-19 10:32:11 +02:00
Nikolai Krivenko
7d0fb85c8c
Fix send_phone_number_to_provider argument for Bot.send_invoice ( #2527 )
...
* [#2526 ] set data['send_phone_number_to_provider'] from corresponding variable
* [#2526 ] Add myself to AUTHORS.rst
* Add unit test
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2021-05-16 20:56:28 +02:00
Bibo-Joshi
08ba7c7793
Handle Classes as Input for BasePersistence.replace/insert_bot ( #2523 )
...
* Ignore classes on replace/insert_bot
* Review
2021-05-16 20:02:35 +02:00
Bibo-Joshi
9737b1d3c7
Bump Tornado Version and Remove Workaround from #2067 ( #2494 )
2021-05-05 20:59:06 +02:00
Hinrich Mahler
94a9b7f983
Bump version to v13.5
2021-04-30 11:15:38 +02:00
Bibo-Joshi
bae57c7f8f
Doc Fixes ( #2437 )
...
Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2021-04-30 10:47:41 +02:00
Harshil
b20265819b
Stabilize CI ( #2480 )
...
* mark some occasionally failing tests as flaky
* fix test which was failing locally for some reason
* Don't fail tests if they've exceeded the timeout
* This reverts commit 1d0f982e95 .
* remove flaky on two tests as per review
* the end of timeout failures, hopefully.
* first run successful. Fixing pre-commit to trigger 2nd run.
2021-04-30 10:43:52 +02:00
Bibo-Joshi
3938a57542
Convenience Utilities & Example for Handling ChatMemberUpdated ( #2490 )
...
* ChatMemberUpdate.difference
* constants for update types
* Add an example for ChatMemberHandler
* Update examples/chatmemberbot.py
* Review
* Review
2021-04-30 10:14:41 +02:00
Bibo-Joshi
4645d0e32a
Improve Type Hints of Data Filters ( #2456 )
2021-04-30 10:12:18 +02:00
Stɑrry Shivɑm
7e554584b1
Improve Timeouts in ConversationHandler ( #2417 )
...
* Handle promise states in conversation timeout
Signed-off-by: starry69 <starry369126@outlook.com >
* warn if nested conversation & timeout
Signed-off-by: starry69 <starry369126@outlook.com >
* Add notes and test for conversation_timeout
Signed-off-by: starry69 <starry369126@outlook.com >
* Try to fix pre-commit
Signed-off-by: starry69 <starry369126@outlook.com >
* Test promise exception
Signed-off-by: starry69 <starry369126@outlook.com >
* Welp
Signed-off-by: starry69 <starry369126@outlook.com >
* improve docs
Signed-off-by: starry69 <starry369126@outlook.com >
* typo
Signed-off-by: starry69 <starry369126@outlook.com >
* try to fix codecov
Signed-off-by: starry69 <starry369126@outlook.com >
* refactor timeout logic with promise.add_done_cb
Signed-off-by: starry69 <starry369126@outlook.com >
* small fix
Signed-off-by: starry69 <starry369126@outlook.com >
* Address review
Signed-off-by: starry69 <starry369126@outlook.com >
* Fix some type hinting
* Few fixes
Signed-off-by: starry69 <starry369126@outlook.com >
* fix tests
Signed-off-by: starry69 <starry369126@outlook.com >
* minor nitpick
Signed-off-by: starry69 <starry369126@outlook.com >
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2021-04-30 10:10:46 +02:00
Bibo-Joshi
b6a6d7f872
Api 5.2 ( #2489 )
...
* Bump API Version to v5.2
* InputInvoiceMessageContent & simplify *Markup.__eq__ on the fly
* Updates to send_invoice
* InlineQuery updatees and new parameter for InlineQueryhandler
* VCScheduled - not integrated into Message yet
* Bump requirements-dev.txt versions
* Message.voice_chat_scheduled & new Filters.status_update.vcs
* Some doc updates
* Review
* All praise harshil, the god of finding typos :)
* Review
* More warnings
2021-04-30 10:09:21 +02:00
Bibo-Joshi
3b92901892
Update ChatActions ( #2460 )
...
* deprecate CA.upload/record_audio in favor of ca.u/r_voice
* tests
* tests
* Fix test
2021-04-22 08:57:56 +02:00
Stɑrry Shivɑm
b63877b1f2
Add Two UserWarnings ( #2464 )
...
* Warn if number of workers < one
Signed-off-by: starry69 <starry369126@outlook.com >
* improve warning message
Signed-off-by: starry69 <starry369126@outlook.com >
* warn if converstation handler return unknown state
Signed-off-by: starry69 <starry369126@outlook.com >
* Show handler name and state aswell, in warning
Signed-off-by: starry69 <starry369126@outlook.com >
* minor nitpick
Signed-off-by: starry69 <starry369126@outlook.com >
2021-04-16 19:02:43 +02:00
Aksh Gupta
9d93417d9a
Improve Code Quality ( #2450 )
...
* chore: refactor code quality issues
* Add comment for removing assert statements
* Remove deepsource config file
* Fix Coverage
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2021-04-05 13:25:27 +02:00
Bibo-Joshi
9949b44560
Update Fallback Test-Bots ( #2451 )
2021-03-30 19:28:01 +02:00
Harshil
7abacb000b
Fix echobot.py Example ( #2448 )
2021-03-29 11:16:22 +02:00
Harshil
43f5aeaff3
Improve Examples ( #2441 )
...
* close issue, typo fixes, remove unnecessary condition, etc
* use ForceReply in example
* remove extra whitespace
* address review, handle empty inline queries.
* Cosmetics
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2021-03-28 18:53:44 +02:00
Harshil
9e08fa30b6
Filters.forwarded_from ( #2446 )
...
* new filter and more tests!
* document forward filter better, fix a test.
* Minor formulation nitpicking
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2021-03-28 11:50:45 +02:00
Hinrich Mahler
ccedd3a87d
Bump version to v13.4.1
2021-03-14 19:21:44 +01:00
Bibo-Joshi
0bb4be55ac
Fix setup.py ( #2431 )
2021-03-14 19:17:08 +01:00
Hinrich Mahler
21ded420e2
Bump version to v13.4
2021-03-14 17:00:26 +01:00
Bibo-Joshi
7d893fd04b
Doc Fixes ( #2404 )
...
* Improve some badges for PTB-Raw
* doc fix for add_error_handler
* Some rendering
* Bump sphinx dependency
* Change signature annotation setting
* fix: chat_id can be string, message_id only int
* feat: add RTD link to documentation
* improving sender chat docstring (#2412 )
* fix: improving sender chat docstring
also adding a note to a weird edge case
* fix: words being hard
* Add note on donations
* typo
* typo in User.get_profile_pictures docstrings
* Fix: meth, not attr for meth, not attr
* filters + inlinequery doc fix
* Bump versions, update RTD config file
* Try fix build
* Revert "fix: chat_id can be string, message_id only int"
This reverts commit ba04e5aa
* Add Starry & Harshil to credits
Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
2021-03-14 16:46:37 +01:00
Bibo-Joshi
7015f8dedc
Type Hinting Fixes ( #2425 )
...
Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com >
2021-03-14 16:42:03 +01:00
Poolitzer
ac02bce109
API 5.1 ( #2424 )
...
* Feat: New invite links
* Fix: doc strings
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
* new dice, new admin privilege, revoke_messages, update and fix some docs
* add missing param to shortcut
* Add ChatMemberUpdated
* Add voicechat related objects
Signed-off-by: starry69 <starry369126@outlook.com >
* add versionadd tags
Signed-off-by: starry69 <starry369126@outlook.com >
* Fix filter tests
* Update tg.Update
* ChatMemberHandler
* Add versioning directives
* add can_manage_voice_chats attr and fix docs
Signed-off-by: starry69 <starry369126@outlook.com >
* fix chat shortcut
Signed-off-by: starry69 <starry369126@outlook.com >
* address review
* MADTC
* Chat.message_auto_delete_time
* Some doc fixes
* address review
Signed-off-by: starry69 <starry369126@outlook.com >
* welp
Signed-off-by: starry69 <starry369126@outlook.com >
* Add voicechat related filters
Signed-off-by: starry69 <starry369126@outlook.com >
* Fix: Addressing review
change place of version adding, added obj:True as doc string, changing how member limit is initiated
* feat: adding chat shortcuts for invite links
* fix: changing equality of chatinviteobjects
* Non-test comments
* Some test fixes
* A bit more tests
* Bump API version in both readmes
* Increase coverage
* Add Bot API Version in telegram.constants (#2429 )
* add bot api version in constants
Signed-off-by: starry69 <starry369126@outlook.com >
* addressing review
Signed-off-by: starry69 <starry369126@outlook.com >
* add versioning directive
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
* pre-commit & coverage
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
Co-authored-by: starry69 <starry369126@outlook.com >
2021-03-14 16:41:35 +01:00
Bibo-Joshi
3a9a0ab96d
Update pre-commit Settings ( #2415 )
...
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
2021-03-13 16:21:03 +01:00
Bibo-Joshi
aba17cb997
Improve Updater.set_webhook ( #2419 )
...
* Get started
* tests
* Some doc fixes
* Some doc fixes
2021-03-13 15:35:26 +01:00
Bibo-Joshi
038a3b4452
Fix Logging for Vendored urllib3 ( #2427 )
2021-03-13 15:14:10 +01:00
Bibo-Joshi
b03ebc5a65
Stabilize Tests ( #2409 )
...
* Fix Photo Tests
* Try harder
* Try stabalizing pin&unpin test
* Drop file size tests
* Fix that one failing test …
2021-03-10 16:51:56 +01:00
Hinrich Mahler
e9c01c7772
Bump version to v13.3
2021-02-19 19:55:49 +01:00
Bibo-Joshi
552298595c
Doc Fixes ( #2359 )
...
* Improve some badges for PTB-Raw
* doc fix for add_error_handler
* Some rendering
* Doc fixes for filters.py
* render '@' as code
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
2021-02-19 19:27:17 +01:00
Bibo-Joshi
2a4a0d0ccd
Refactor Defaults Integration ( #2363 )
...
* Change default handling, update signatures, get existing tests to pass.
* Try running tests on ubuntu 18.04
* Roll back
* Rework check_shortcut_call tests
* Further improve check_shortcut_call tests
* Start on defaults-checks for shortcuts, get it working for test_message
* Add check_shortcut_defaults to all other shortcut tests
* Some fine tuning
* Add defaults checking for bot methods
* Missing tests for TestCallbackQuery
* Test edit_message_media with defaults & some comments
* Fix cryptography requirement
* drop debug prints
* Remove debug prints
* Another try
* Try to fix coverage & logs
* Rearrange test order
* increase coverage
* Try to fix coverage reports
* address review
* Adapt tests like in #2386
* fix CI
* fix CI
2021-02-19 19:07:48 +01:00
Harshil
eb993db473
Add Missing telegram.SecureValue to init and Docs ( #2398 )
2021-02-19 17:46:52 +01:00
Bibo-Joshi
c77ef7eef3
Deprecate MessageQueue ( #2393 )
2021-02-19 17:29:50 +01:00
Bibo-Joshi
a34f0b9bee
Make cryptography Dependency Optional & Refactor Some Tests ( #2386 )
...
* Make cryptography optional
* Try fixing CI
* Try some more
* Update pytest, mypy & pyupgrade, refactor test_meta, hope that things start to work
* Fix filterwarnings
* Mama mia! Here we go again!
* Add stupid debug prints
* A new hope
2021-02-13 22:07:37 +01:00
Bibo-Joshi
eee8921598
Update cryptography Dependency ( #2370 )
2021-02-08 19:28:54 +01:00
Hinrich Mahler
1902c0ac36
Bump version to v13.2
2021-02-02 20:57:14 +01:00
Bibo-Joshi
544a3fbf48
ConversationHandler: Docs & edited_channel_post behavior ( #2339 )
...
* Update docs & ignore edited channel posts
* typo
* Apply suggestions from code review
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
* Update telegram/ext/conversationhandler.py
* fix pre-commit
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
2021-02-01 19:26:03 +01:00
Bibo-Joshi
36d49ea9cd
Doc Fixes ( #2253 )
...
* Render-fixes for BP
* docs: fix simple typo, submition -> submission (#2260 )
There is a small typo in tests/test_bot.py.
Should read `submission` rather than `submition`.
* Type on rawapibot.py docstring
* typo
* Typo: Filters.document(s)
* Typo fix
* Doc fix for messageentity (#2311 )
* Add New Shortcuts to Chat (#2291 )
* Add shortcuts
* Add a note
* Add run_async Parameter to ConversationHandler (#2292 )
* Add run_async parameter
* Update docstring
* Update test to explicitly specify parameter
* Fix test job queue
* Add version added tag to docs
* Update docstring
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
* Doc nitpicking
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
* Fix rendering in messageentity
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
Co-authored-by: zeshuaro <joshuaystang@gmail.com >
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
* fix: type hints for TelegramError
changed :class:`telegram.TelegramError` to :class:`telegram.error.TelegramError`
* fix: the error can be more then just a Telegram error
* Doc fix for inlinekeyboardbutton.py
added missing colon which broke rendering
* fix: remove context argument and doc remark
look at us already being in post 12
* use rtd badge
* filters doc fixes
* fix some rendering
* Doc & Rendering fixes for helpers.py
Co-authored-by: Tim Gates <tim.gates@iress.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
Co-authored-by: zeshuaro <joshuaystang@gmail.com >
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Harshil <ilovebhagwan@gmail.com >
2021-02-01 17:59:39 +01:00
Bibo-Joshi
25506f131d
python-telegram-bot-raw ( #2324 )
...
* POC
* Remove decorator dependency
* Rework setup.py & build, add separate readme
* Move utils -> ext.utils
* Move pytz dep to ext
* Try fixing timing stuff
* Add 'Typed' classifier
* Update README_RAW.rst
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
* Some wording
* Deprecation warnings for moved tg.utils
* Tests for Promise
* Test time-helpers without pytz
* Try fixing time-helper tests
* Merge master
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2021-01-30 14:15:39 +01:00
Bibo-Joshi
70aba136e4
Reduce Usage of typing.Any ( #2321 )
...
* Use object instead of Any where possible
* Revert a lof of noise from the PR
2021-01-30 11:38:54 +01:00
Stɑrry Shivɑm
40995b19fe
Extend Deeplinking Example ( #2335 )
...
* extend deeplinking example
Signed-off-by: starry69 <starry369126@outlook.com >
* use username property instead of get_me calls
Signed-off-by: starry69 <starry369126@outlook.com >
2021-01-28 17:12:13 +01:00
zeshuaro
32da6d6fce
Add Missing Shortcuts to Message ( #2330 )
...
* Add shortcuts for Message
* Fix docs in Chat
* Update docs in Message
* Fix tests in request.py
* Rollback changes made to fix mypy errors
2021-01-23 13:40:19 +01:00
Bibo-Joshi
f31787a8ef
Add pyupgrade to pre-commit Hooks ( #2301 )
...
* Add pyupgrade to pre-commit
* update test_chat
2021-01-17 23:24:20 +01:00
Stɑrry Shivɑm
b43a599e53
Rich Comparison for Bot ( #2320 )
...
* Make telegram.Bot comparable
Signed-off-by: starry69 <starry369126@outlook.com >
* Address review
Signed-off-by: starry69 <starry369126@outlook.com >
* Enhance tests & add docstring about comparison
Signed-off-by: starry69 <starry369126@outlook.com >
* Minor doc fix
* Extend tests
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2021-01-17 09:23:36 +01:00
Bibo-Joshi
7a3fd83570
Add PR Template ( #2299 )
...
* Add PR template
* Apply suggestions from code review
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
* Some more
* reformulate
* Apply suggestions from code review
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
2021-01-16 13:57:25 +01:00
Bibo-Joshi
9ada2a7cca
Drop Nightly Tests & Update Badges ( #2323 )
2021-01-16 11:27:06 +01:00
Eana Hufwe
be54cf4ece
Fix Escaping in Nested Entities in Message Properties ( #2312 )
...
* fix: overly escape and offset error markdown v2 symbols when nested
Signed-off-by: Eana Hufwe <ilove@1a23.com >
* fix: nested entity escape for HTML parsers and tests
Signed-off-by: Eana Hufwe <ilove@1a23.com >
2021-01-12 19:33:26 +01:00
zeshuaro
0c9915243d
Add run_async Parameter to ConversationHandler ( #2292 )
...
* Add run_async parameter
* Update docstring
* Update test to explicitly specify parameter
* Fix test job queue
* Add version added tag to docs
* Update docstring
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
* Doc nitpicking
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2021-01-09 20:05:58 +01:00
Bibo-Joshi
9930725e2a
Add New Shortcuts to Chat ( #2291 )
...
* Add shortcuts
* Add a note
2021-01-09 17:48:56 +01:00
Bibo-Joshi
ffd675daec
Adjust Calling of Dispatcher.update_persistence ( #2285 )
...
* Adjust calling of update_persistence
(cherry picked from commit 89c522d883 )
* Fix tests and stuff
2021-01-07 21:31:00 +01:00
Bibo-Joshi
6a831f926b
Add New Constant MAX_ANSWER_CALLBACK_QUERY_TEXT_LENGTH ( #2282 )
2021-01-07 21:27:51 +01:00
Bibo-Joshi
6903d58142
Update Copyright ( #2289 )
...
* Update coypright headers
* typos
2021-01-04 17:24:14 +01:00
Bibo-Joshi
07b6ee69d2
Update Copyright ( #2287 )
...
Signed-off-by: starry69 <starry369126@outlook.com >
2021-01-03 10:30:02 +01:00
starry69
c8a3c31dcc
Update copyright of docs config
...
Signed-off-by: starry69 <starry369126@outlook.com >
2021-01-03 14:42:51 +05:30
starry69
91e0271e4c
Update copyright headers
...
Signed-off-by: starry69 <starry369126@outlook.com >
2021-01-03 10:40:24 +05:30
Hinrich Mahler
9ddb361f76
Revert "Adjust calling of update_persistence"
...
This reverts commit 89c522d883 .
2021-01-01 21:44:23 +01:00
Hinrich Mahler
89c522d883
Adjust calling of update_persistence
2021-01-01 21:40:42 +01:00
Bibo-Joshi
2effff8254
Change Order of Class DocStrings ( #2256 )
2020-12-30 15:59:50 +01:00
Bibo-Joshi
2788191657
Add macOS to Test Matrix ( #2266 )
...
* Try testing on macos
* Skip JobQueue tests on macos
* Try stabilizing tests
* Try harder
2020-12-30 15:39:38 +01:00
Bibo-Joshi
aec6d3bada
Explicit Signatures for Shortcuts ( #2240 )
...
* First POC
* Actually get it to work
* locals-less POC
* pre-commit
* Work on Message shortcuts, update some annotations in Bot methods
* Tippity Tappity, coding stuff
* CallbackQuery
* InlineQuery & Some other stuff
* Media Classes and PassportFile
* Fix tests
* PreCheckout- & ShippingQuery
* User
* Fix tests
* Chat
* Update rawapibot
* Update annotations for answer_inline_query
2020-12-30 13:41:07 +01:00
Bibo-Joshi
80b34811ab
Handle Bytes as File Input ( #2233 )
...
* Handle bytes file input
* fix tests
* Docs, Tests & Rearrangements
* Use versioning directives
* fixing type hinting of send_photo
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
2020-12-18 11:20:03 +01:00
Poolitzer
2d7a974b8f
Start Using Versioning Directives in Docs ( #2252 )
...
* adding versioning in sphinx, closing #2250
* adding version requirement to contributors doc
2020-12-17 19:05:12 +01:00
Bibo-Joshi
ef703d19e9
Doc Fixes ( #2225 )
...
* Fix dscr for soccer ball values
* Update docs of BasePersistence regarding abc
* elaborate run_daily docs
* Make docstring of send_document.filename more precise
* increase bot API and add Discussion link
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
2020-12-17 09:29:17 +01:00
Bibo-Joshi
77a8c64f6c
Improve Annotations & Docs of Handlers ( #2243 )
...
* Improve typing & docs of handlers
* Apply suggestions from code review
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
2020-12-16 17:34:57 +01:00
Bibo-Joshi
786762bb73
Allow Passing Custom Filename For All Media ( #2249 )
...
* Add filename arg to send_media methods and InputMedia*
* Tests
2020-12-16 14:28:53 +01:00
Bibo-Joshi
e0dbb99b08
Add quote kwarg to Message.reply_copy ( #2232 )
...
* add quote kwrag to Message.reply_copy
* Add docs & update tests
2020-12-03 20:51:47 +01:00
Hinrich Mahler
73b0e29a30
Bump version to v13.1
2020-11-29 17:01:03 +01:00
Bibo-Joshi
d27d1ea4d5
Correct Some Type Hints ( #2204 )
...
* Correct some reply_markup hints
* Fix type hints of effective_message_type
* fixup
2020-11-29 16:32:38 +01:00
Bibo-Joshi
ca04daf782
Doc Fixes & Extensions ( #2201 )
...
* Add note on dispatcherhandlerstop to conversationhandler
* Fine tune @run_async deprecation warning
* Refine docs of JobQueue.jobs/get_jobs_by_name
2020-11-29 16:25:47 +01:00
Bibo-Joshi
ae9ce60b55
API 5.0 ( #2181 )
...
Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com >
2020-11-29 16:20:46 +01:00
Bibo-Joshi
1cd3a0a156
Handle Non-Binary File Input ( #2202 )
...
* Don't fail if stream is not bytes
* move logger
* Refactor InputFile.is_image
* Use f-strings
* some clean up
2020-11-24 20:31:34 +01:00
Bibo-Joshi
58b9882021
Use F-Strings Where Possible ( #2222 )
2020-11-23 22:09:29 +01:00
Bibo-Joshi
df6d5f0840
Fix bugs in replace/insert_bot ( #2218 )
...
* Fix bugs in replace/insert_bot
* Some tweaks
2020-11-22 11:08:46 +01:00
Stɑrry Shivɑm
425716f966
Add Defaults.run_async ( #2210 )
...
* Add Defaults.run_async support
Signed-off-by: starry69 <starry369126@outlook.com >
* Address some requested changes.
Signed-off-by: starry69 <starry369126@outlook.com >
* Add tests for defaults.run_async
Signed-off-by: starry69 <starry369126@outlook.com >
* Fix tests logic & add default value support for dp.add_error_handler
Signed-off-by: starry69 <starry369126@outlook.com >
* Fix tests, with requested changes
Signed-off-by: starry69 <starry369126@outlook.com >
* Add tests for error_handler
Signed-off-by: starry69 <starry369126@outlook.com >
* try to fix pre-commit
Signed-off-by: starry69 <starry369126@outlook.com >
* Enhance tests & address suggested changes
Signed-off-by: starry69 <starry369126@outlook.com >
* Improve docs
Signed-off-by: starry69 <starry369126@outlook.com >
2020-11-17 21:31:01 +01:00
Bibo-Joshi
8d9bb26cca
Improve Handling of Custom Objects in BasePersistence.insert/replace_bot ( #2151 )
...
* Handle unpickable objects
* Improve coverage
* Add user warning
* make comparison to REPLACED_BOT safe
* make pre-commit happy
* Shorten warning
2020-11-14 03:08:18 +01:00
Bibo-Joshi
d1438a9b23
Add XOR Filters and make Filters.name a Property ( #2179 )
...
* XOR Filters and make Filters.name a property
* add XORFilter to __all__
* Change example
2020-11-07 08:44:45 +01:00
Evgeny Denisov
27b03edc59
Expand Type Hints to Tuples ( #2167 )
...
Co-authored-by: Pranjalya <pranjalyawarrior@gmail.com >
2020-11-07 08:26:32 +01:00
Evgeny Denisov
ac449deb5d
Add Filters.document.file_extension ( #2169 )
...
Co-authored-by: Matheus Lemos <matheuslemosf@protonmail.com >
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2020-11-06 18:41:54 +01:00
Bibo-Joshi
3b9187ed5a
Rename kwargs to _kwargs where possible ( #2182 )
2020-11-05 18:12:01 +01:00
Bibo-Joshi
9831458e22
Improve and Expand CallbackQuery Shortcuts ( #2172 )
...
* CallbackQuery.delete_message()
* Improve internals of CQ shortcuts
2020-11-05 17:11:35 +01:00
Marco Fincato
a0cd6e8fef
Add Filters.caption_regex ( #2163 )
...
* Check caption in Filters.regex
Added regex matching for message caption in Filters.regex.
* Moved caption check to Filters.caption_regex
* Added caption_regex tests
The same as for regex, with only the content of the message changed, that is now inside caption.
* Fixed pre-commit tests
Lines too long and an additional blank line
* Moved line break to comply
* Reformatted code with black
* Added docstrings
2020-11-04 20:54:24 +01:00
Bibo-Joshi
8e7c0d6976
Comply with PEP561 ( #2168 )
...
* Comply with PEP561
* Try harder
* third time's (hopefully) a charme
2020-11-01 19:33:01 +01:00
Bibo-Joshi
92b9370c23
Improve Code Quality ( #2131 )
...
* Make pre-commit more strict
* Get pylint to read setup.cfg
* Make pylint & mypy happy aka ignore all the things
* use LogRecord.getMessage() in tests
* Make noam happy
* Update both pylint & mypy while we're at it
* Bring reqs-dev and makefile up to speed
* try making pre-commit happy
* fix jobqueue tests on the fly
2020-10-31 16:33:34 +01:00
GauthamramRavichandran
237e73bfb4
Add Filters.chat_type ( #2128 )
...
* add supergroup filter
* add chat_type filter
* re-implemented ChatType
* Add deprecations, improve tests
* Fix some docs
* Fix black
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-10-29 19:42:08 +01:00
Bibo-Joshi
ff3fd34f08
Update Credits ( #2161 )
2020-10-27 17:43:23 +01:00
Bibo-Joshi
83791d34e7
Fix Regex in Configuration of Black Formatter ( #2159 )
2020-10-23 14:46:56 +02:00
Bibo-Joshi
02cd7b642f
Fix Configuration of Black Formatter ( #2158 )
...
* Fix Black in pre-commit
* Fix black some more
2020-10-23 13:40:02 +02:00
NikitaPirate
165a24e13d
Add Convenience Properties for Service Chats and Anonymous Admins ( #2147 )
...
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2020-10-18 16:15:56 +02:00
Michael K
88440079e3
Update Wheel Settings ( #2142 )
...
Wheels are only universal if they support both Python 2 and 3.
2020-10-15 21:50:25 +02:00
Bibo-Joshi
9be4c7563b
Improve Type Hinting for Class Variables ( #2136 )
2020-10-15 18:50:47 +02:00
Timur Kushukov
b554f1a85d
Update timerbot.py to v13.0 ( #2149 )
...
* Update timerbot example (#2144 )
* update timerbot example (suggestions from review)
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2020-10-15 18:48:12 +02:00
NikitaPirate
3b4559dd95
Overhaul Constants ( #2137 )
...
* Move all constants to constants.py and documentation refactor.
* Move all constants to constants.py and documentation refactor.
* Overhaul constants
* Overhaul constants
* Minor docstring change
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-10-13 17:58:36 +02:00
Bibo-Joshi
9ae48fecfe
Add Python 3.9 to Test Matrix ( #2132 )
...
* Add Py 3.9 to tests
* update setup-python action
2020-10-11 11:47:19 +02:00
Bibo-Joshi
6af6648509
Switch Codecov to GitHub Action ( #2127 )
2020-10-10 10:50:19 +02:00
Bibo-Joshi
264b2c9c72
Switch Code Formatting to Black ( #2122 )
...
* Swtich code formatting to Black
* Update docs
* Fix tests
* TRy fixing pre-commit
2020-10-09 17:22:07 +02:00
Nano
8efb05290a
Specify Required pytz Version ( #2121 )
2020-10-09 09:15:34 +02:00
Harshil
83a8874bb5
Correct Some Type Hints ( #2118 )
...
* Add string type hint
* fixed type hint in send_message()
* change type hint of send_chat_action to str
* make flaky happy
* fixed another type hint in edit_message_text
2020-10-09 08:22:44 +02:00
Hinrich Mahler
bf68942c91
Bump to v13.0
2020-10-07 21:23:55 +02:00
Hinrich Mahler
5fd7606084
Type Hinting ( #1920 )
2020-10-07 20:30:41 +02:00
Bibo-Joshi
103b115486
Defaults.tzinfo ( #2042 )
2020-10-07 20:30:41 +02:00
Hinrich Mahler
b07e42ef33
Make context-based callbacks the default setting ( #2050 )
2020-10-07 20:30:41 +02:00
Bibo-Joshi
3842846b2d
Refactor Handling of Message VS Update Filters ( #2032 )
...
* Refactor handling of message vs update filters
* address review
2020-10-07 20:30:41 +02:00
Bibo-Joshi
7daddfb54d
Refactor handling of default_quote ( #1965 )
...
* Refactor handling of `default_quote`
* Make it a breaking change
* Pickle a bots defaults
* Temporarily enable tests for the v13 branch
* Temporarily enable tests for the v13 branch
* Refactor handling of kwargs in Bot methods (#1924 )
* Unify kwargs handling in Bot methods
* Remove Request.get, make api_kwargs an explicit argument, move note to head of Bot class
* Fix test_official
* Update get_file methods
* Refactor JobQueue (#1981 )
* First go on refactoring JobQueue
* Temporarily enable tests for the v13 branch
* Work on tests
* Temporarily enable tests for the v13 branch
* Increase coverage
* Remove JobQueue.tick()
* Address review
* Temporarily enable tests for the v13 branch
* Address review
* Dispatch errors
* Fix handling of job_kwargs
* Remove possibility to pass a Bot to JobQueue
* Refactor persistence of Bot instances (#1994 )
* Refactor persistence of bots
* User BP.set_bot in Dispatcher
* Temporarily enable tests for the v13 branch
* Add documentation
* Add warning to Updater for passing both defaults and bot
* Address review
* Fix test
2020-10-07 20:30:41 +02:00
Bibo-Joshi
2d4d48b89d
Extend rich comparison of objects ( #1724 )
...
* Make most objects comparable
* ID attrs for PollAnswer
* fix test_game
* fix test_userprofilephotos
* update for API 4.7
* Warn on meaningless comparisons
* Update for API 4.8
* Address review
* Get started on docs, update Message._id_attrs
* Change PollOption & InputLocation
* Some more changes
* Even more changes
2020-10-07 20:30:41 +02:00
Bibo-Joshi
2381724b7c
Refactor persistence of Bot instances ( #1994 )
...
* Refactor persistence of bots
* Use BP.set_bot in Dispatcher
* Add documentation
2020-10-07 20:30:41 +02:00
Bibo-Joshi
19a4f9e53a
Refactor JobQueue ( #1981 )
...
* First go on refactoring JobQueue
* Temporarily enable tests for the v13 branch
* Work on tests
* Temporarily enable tests for the v13 branch
* Increase coverage
* Remove JobQueue.tick()
* Address review
* Temporarily enable tests for the v13 branch
* Address review
* Dispatch errors
* Fix handling of job_kwargs
* Remove possibility to pass a Bot to JobQueue
2020-10-07 20:30:41 +02:00
Bibo-Joshi
3930072659
Refactor handling of kwargs in Bot methods ( #1924 )
...
* Unify kwargs handling in Bot methods
* Remove Request.get, make api_kwargs an explicit argument, move note to head of Bot class
* Fix test_official
* Update get_file methods
2020-10-07 20:30:41 +02:00
Bibo-Joshi
5555582b72
Doc Fixes/Additions ( #2094 )
...
* Add notes on thumbs being ignored for small video files
* Fix some cross refs
* Add not to DictPersistence about it not actually writing to file
* Fix reply_to_message docs of Message
2020-10-07 17:12:05 +02:00
Delgan
e67b995e64
Make Errors picklable ( #2106 )
...
* Fix TypeError while unpickling TelegramError (and children)
* Add more extensive unit tests for errors pickling
* Move error pickling tests back to "test_error.py"
* Add test making sure that new errors are covered by tests
* Make meta test independent of sorting
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-10-04 18:15:36 +02:00
Bibo-Joshi
0d419ed6b4
Refactor Dispatcher.run_async ( #2051 )
2020-10-04 17:20:33 +02:00
Bibo-Joshi
97adcdf538
Automatic Pagination for answer_inline_query ( #2072 )
...
* Auto Pagination
* Fix test_official
* Get things to actually work
* Fine tune
* Tweak tests
* Address review
* Add warning to answer_inline_query
2020-09-27 14:11:49 +02:00
Poolitzer
2989108e95
Fix setting thumbs with send_media_group ( #2093 )
...
* fix: uploading thumb in media group
* add test
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-09-19 16:50:34 +02:00
Bibo-Joshi
897a20d758
Link Ask-Right Wiki Page in Question Template ( #2090 )
...
* Link ask-right wiki page in question template
* typo
2020-09-16 20:53:48 +02:00
Bibo-Joshi
ed3a9b64e2
Add Note on PyPy to Readme ( #2089 )
2020-09-16 20:53:19 +02:00
Bibo-Joshi
49c0c9e4d1
Make MessageHandler filter for Filters.update first ( #2085 )
...
* Tweak MessageHandlers filters
* Improve test
2020-09-14 17:55:01 +02:00
Bibo-Joshi
bb34c79909
Fix Webhook not working on Windows with Python 3.8+ ( #2067 )
...
* Fix start_webhook NotImplementedError on windows with python3.8
* Fine-tune and add tests.
* Minor fixes
* typos
* Make Codacy happy
Co-authored-by: n5y <41209360+n5y@users.noreply.github.com >
2020-08-25 22:21:24 +02:00
Bibo-Joshi
a0720b9ac6
Documentation Improvements ( #2008 )
...
* Minor doc updates, following official API docs
* Fix spelling in Defaults docstrings
* Clarify Changelog of v12.7 about aware dates
* Fix typo in CHANGES.rst (#2024 )
* Fix PicklePersistence.flush() with only bot_data (#2017 )
* Update pylint in pre-commit to fix CI (#2018 )
* Add Filters.via_bot (#2009 )
* feat: via_bot filter
also fixing a small mistake in the empty parameter of the user filter and improve docs slightly
* fix: forgot to set via_bot to None
* fix: redoing subclassing to copy paste solution
* Cosmetic changes
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
* Update CHANGES.rst
Fixed Typo
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
* Update downloads badge, add info on IRC Channel to Getting Help section
* Remove RegexHandler from ConversationHandlers Docs (#1973 )
Replaced RegexHandler with MessageHandler, since the former is deprecated
* Fix Filters.via_bot docstrings
* Add notes on Markdown v1 being legacy mode
* Fixed typo in the Regex doc.. (#2036 )
* Typo: Spelling
* Minor cleanup from #2043
* Document CommandHandler ignoring channel posts
* Doc fixes for a few telegram.ext classes
* Doc fixes for most `telegram` classes.
* pep-8
forgot the hard wrap is at 99 chars, not 100!
fixed a few spelling mistakes too.
* Address review and made rendering of booleans consistent
True, False, None are now rendered with ``bool`` wherever they weren't in telegram and telegram.ext classes.
* Few doc fixes for inline* classes
As usual, docs were cross-checked with official tg api docs.
* Doc fixes for telegram/files classes
As usual, docs were cross-checked with official tg api docs.
* Doc fixes for telegram.Game
Mostly just added hyperlinks. And fixed message length doc.
As usual, docs were cross-checked with official tg api docs.
* Very minor doc fix for passportfile.py and passportelementerrors.py
Didn't bother changing too much since this seems to be a custom implementation.
* Doc fixes for telegram.payments
As usual, cross-checked with official bot api docs.
* Address review 2
Few tiny other fixes too.
* Changed from ``True/False/None`` to :obj:`True/False/None` project-wide.
Few tiny other doc fixes too.
Co-authored-by: Robert Geislinger <mitachundkrach@gmail.com >
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
Co-authored-by: GauthamramRavichandran <30320759+GauthamramRavichandran@users.noreply.github.com >
Co-authored-by: Mahesh19 <maheshvagicherla99438@gmail.com >
Co-authored-by: hoppingturtles <ilovebhagwan@gmail.com >
2020-08-24 19:35:57 +02:00
Bibo-Joshi
faa93fbf75
Refine Codecov Settings ( #2061 )
2020-08-21 23:37:07 +02:00
Bibo-Joshi
da452df07d
Allow DispatcherHandlerStop in ConversationHandler ( #2059 )
...
* First go
* Fix bug with nested convs
2020-08-21 23:20:28 +02:00
Bibo-Joshi
3304cc5c90
Fix Lock-Bot configuration ( #2053 )
...
* Run lock bot twice a day and don't give a reason for locking
* Fix indentation
* Fix invalid time
2020-08-18 20:52:43 +02:00
Bibo-Joshi
9105d83d37
Refine Lock-Bot ( #2052 )
...
* Run lock bot twice a day and don't give a reason for locking
* Fix indentation
2020-08-18 20:43:27 +02:00
Bibo-Joshi
b6b42b2043
Switch from Lock-Bot to GH Actions ( #2049 )
2020-08-16 10:43:30 +02:00
Bibo-Joshi
f857e1c23b
Add Lock-Bot ( #2048 )
2020-08-14 12:57:18 +02:00
Bibo-Joshi
fc5844c13d
Add missing shortcuts ( #2043 )
...
* Add all the methods
* Add tests and fix some typos
* A few more minor changes
* Address review
2020-08-13 13:39:43 +02:00
Leonardo Rezende
dea24bcb7c
Refine pollbot.py example ( #2047 )
...
* pollbot.py example was sending the poll to the effective_user and not effective_chat... well, it's a poll to be answered by multiple uses.
* Use User.mention_html() shortcut
Co-authored-by: Leonardo <leonardo.rezende@trt19.jus.br >
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-08-13 13:38:23 +02:00
Bibo-Joshi
2789fd2bff
Refine Filters in examples ( #2027 )
2020-07-18 12:17:42 +02:00
Bibo-Joshi
d6f8077a50
Rename echobot examples ( #2025 )
2020-07-16 19:17:57 +02:00
Poolitzer
0189442525
Add Filters.via_bot ( #2009 )
...
* feat: via_bot filter
also fixing a small mistake in the empty parameter of the user filter and improve docs slightly
* fix: forgot to set via_bot to None
* fix: redoing subclassing to copy paste solution
* Cosmetic changes
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-07-14 21:51:36 +02:00
Bibo-Joshi
fd0325fbe5
Update pylint in pre-commit to fix CI ( #2018 )
2020-07-10 12:57:27 +02:00
Bibo-Joshi
ff4bb15fef
Fix PicklePersistence.flush() with only bot_data ( #2017 )
2020-07-10 11:10:53 +02:00
ikkemaniac
9288e4f2e4
Fix docstring of Message.reply_media_group ( #2005 )
2020-06-25 07:54:23 +02:00
ikkemaniac
e60318166e
Add test for clean argument of Updater.start_polling/webhook ( #2002 )
...
* added test for 'clean' argument passed to 'start_polling()'
* remove TODO
* prettify
* remove bool from func name
* improve name-ing of fake update func
* cleanup class and nameing
* replace while for for
* swap valueerror for runtimeerror
* remove all other code to reduce testing
* add comments
* don't raise error, complete cycle and assert
* remove inf loop protection
* Revert "remove all other code to reduce testing"
This reverts commit 4566a1debd .
* remove error parametrization
* remove comment
* remove pass from class
* rename update_id to offset as the original get_updates() takes argument offset (which is the update_id)
* rename test func to match original func
* fix comment
* shorten for loop
* mock get_updates() behavior when 'offset' is passed. Assert with get_updates()
* remove other functions to reduce testing
* replicate original get_updates()
* move fakeupdate class and list creation outside get_updates and store in var
* loop from 0 to make update_id consistant w array key, just easier to debug
* update comments
* Revert "remove other functions to reduce testing"
This reverts commit 1fb498a6cc .
* fix typo
* Revert "fix typo"
This reverts commit ade9fec609 .
* Revert "Revert "remove other functions to reduce testing""
This reverts commit 734de1371c .
* Revert "update comments"
This reverts commit f3a032e75e .
* Revert "loop from 0 to make update_id consistant w array key, just easier to debug"
This reverts commit 0c6881d8a1 .
* Revert "move fakeupdate class and list creation outside get_updates and store in var"
This reverts commit 71de999300 .
* Revert "replicate original get_updates()"
This reverts commit 5d0710ac3a .
* Revert "remove other functions to reduce testing"
This reverts commit 1fb498a6cc .
* Revert "mock get_updates() behavior when 'offset' is passed. Assert with get_updates()"
This reverts commit 8c727ba1e8 .
* loop from 0 to make update_id consistant w array key, for consitency
Co-authored-by: ikkemaniac <ikkemaniac@localhost>
2020-06-24 00:25:58 +02:00
Hinrich Mahler
15268acb27
Bump to v12.8
2020-06-22 20:20:00 +02:00
Poolitzer
927502e588
API 4.9 ( #1980 )
...
* Add Basketball Dice
Added Basketball Dice Variation
* Update dice.py
* Update dice.py
* Update telegram/dice.py
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
* Update bot.py
* Update filters.py
* Update test_filters.py
* Fixed whitespaces
* Update dice.py
* Fix line length
* adding dice values to docstring
* adding via_bot to message and thumb_mime_type to iqresults
* feat: updating docs
* feat: improving message attribute test
* Fix flake8
Co-authored-by: Jannik <32801117+code1mountain@users.noreply.github.com >
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2020-06-22 20:09:52 +02:00
Yan
0af5cc2db8
Don't override builtin method help() in examples ( #1997 )
...
* Do not override builtin method help()
* Rename inlinebot and inlinekeyboard /help function to not conflict with builtin
2020-06-16 17:07:05 +02:00
Bibo-Joshi
6005861f46
Stabilize CI ( #2000 )
2020-06-15 18:45:38 +02:00
Nils K
8406889179
Remove Python 2 Support ( #1715 )
...
* Remove usages of python-future lib
* Remove python2 datetime.timezone replacement
* Remove python2 workaround in InputFile.__init__
* Remove import of str necessary for python2
* Remove urllib2 import necessary for python2
* Remove a mention of python 2 in doc
* Remove python 2 from travis config file
* Remove python 2 from appveyor config
* Remove python2 from debian build rules
* Remove unnecessarry aliasing of time.perf_counter
* Remove python 2 from github workflow
* Remove mention of python 2 in descriptions/readme
* Remove version check for queue import
* Remove version checks in tests
* Adjust docs to correctly mention supported version
* Fix indentation
* Remove unused 'sys' imports
* Fix indentation
* Remove references to mq.curtime in tests
* Replace super calls by argumentsless version
* Remove future dependency
* Fix error in de_json declaration
* Use python3 metaclass syntax
* Use implicit inheriting from object
* Remove accidentally committed .vscode folder
* Use nameless f-string and raw string
* Fix regex string literal syntax
* Remove old style classes
* Run pyupgrade
* Fix leftover from automatic merge
* Fix lint errors
* Update telegram/files/sticker.py
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2020-06-15 18:20:51 +02:00
n5y
a4e78f6183
Add standalone example on error handlers ( #1983 )
...
* Remove error handlers from examples
Most examples use the same error handler, that error handler logs
update.to_dict but doesn't log error traceback. Hiding error traceback
is quite bad, removing the error handler entirely causes PTB to use
default error logging which does include error traceback.
* adding error handling example
* Change error handler example
Including:
- Change the telegram message to include usual python error message.
- HTML-escape the strings used to build the telegram message.
- Capitalize comments and add more empty lines to hopefully unify the
style with other examples, at least a bit.
- Reorder imports.
* Add an error-rising command to the error handler example
* Slightly change example error handler docstring and comments
* Make telegram message sent by the error handler example more readable
* Rename error_handler.py to errorhandlerbot.py and add a start command
* Change error handler example to work without developer chat id
* Revert "Change error handler example to work without developer chat id"
This reverts commit c4efea6f
* Make bot token a module level constant in the error handler example
Otherwise the example will require two edits 40 lines apart to run.
* Show chat id in start command of the error handler example
The example requires you to set developer chat id, this change will
make things easier for users that don't know how to see their chat id.
* Add errorhandlerbot.py to the examples folder readme
Co-authored-by: poolitzer <25934244+poolitzer@users.noreply.github.com >
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2020-06-12 18:50:12 +02:00
Bibo-Joshi
8c6cb44a85
Update examples Readme ( #1995 )
2020-06-12 13:58:20 +02:00
n5y
ac7cc7fe5e
Ignore private attributes in TelegramObject.to_dict() ( #1989 )
2020-06-10 22:21:25 +02:00
Bibo-Joshi
a42b68933c
Add User.send_poll ( #1968 )
2020-05-27 21:59:49 +02:00
ѕнιναм
c2d91c752f
Typo-Fix ( #1962 )
2020-05-22 15:32:03 +02:00
Bibo-Joshi
5057825586
Doc fixes ( #1940 )
...
* Update notes on editing messages
* Update thumb and InputMedia* doc strings
* Fix attribute docstring for Updater.user_sig_handler
* Improve rendering for CCs attributes
* fix doc str for InputMedia*.media attribute
* Minor fix
2020-05-15 15:59:41 +02:00
Bibo-Joshi
613175b2c4
Allow updating ids/usernames of Filters.{user, chat} ( #1757 )
...
* Make Filters.user attrs mutable
* Add test_filters_user_empty_args
* Add test_filters_user_empty_args
* fix locks
* Make codecov happy
* Make user_ids and usernames sets
* Correct doc string
* Address review
* Review Vol. II
* Apply suggestions from code review
Co-authored-by: Noam Meltzer <tsnoam@gmail.com >
* Review Vol III.
* propery setter is now only a wrapper to a private method + more cleanups
pylint complained on some extra stuff, so cleaned them as well
* Review Vol. IV
* Review Vol. V
* Apply changes to Filters.chat
Co-authored-by: Noam Meltzer <tsnoam@gmail.com >
2020-05-10 12:15:11 +02:00
Bibo-Joshi
1330696259
Improve readability of nested conversation example ( #1943 )
2020-05-04 16:59:51 +02:00
n5y
5898e1fe7a
Remove NullHandlers ( #1913 )
2020-05-03 10:28:03 +02:00
Bibo-Joshi
b6dec118c1
Update contribution guide and stale bot ( #1937 )
...
* * Remove developers Mail from contrib guide
* stricter settings for stale bot
* Remove link, too ...
* Link to TG Group instead
2020-05-02 22:24:12 +02:00
Hinrich Mahler
186fd1b418
Bump version to v12.7
2020-05-02 12:14:38 +02:00
Hinrich Mahler
284786fdb8
Fix doc string of run_monthly
2020-05-02 12:14:01 +02:00
Bibo-Joshi
c7c56ad24e
Api 4.8 ( #1917 )
...
* API 4.8
* Elaborate docs
* Address review
* Fix Message.to_json/dict() test
* More coverage
* Update telegram/bot.py
Co-authored-by: Noam Meltzer <tsnoam@gmail.com >
Co-authored-by: Noam Meltzer <tsnoam@gmail.com >
2020-05-02 11:56:52 +02:00
D David Livingston
ae17ce977e
Add JobQueue.run_monthly() ( #1705 )
...
* added monthly job
* removed fold argument
* addressed pr comments
* addressed pr comments
* made changes from pr review
* updated comments
* clean up code
* Update .pre-commit-config.yaml
* Minor cleanup
* Update according to #1685 , minor robustness changes
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-05-02 08:59:50 +02:00
Bibo-Joshi
7e231183c4
Add tzinfo kwarg to from_timestamp() ( #1621 )
...
* Add tz kwarg to from_timestamp()
* Correct handling of tzinfo=None
* Small Improvements
* None-tz yields naive dto
* Remove legacey compatibility of UTC stuff
* Update telegram/utils/helpers.py
Co-authored-by: Noam Meltzer <tsnoam@gmail.com >
2020-05-01 22:55:13 +02:00
Bibo-Joshi
8427346a0d
Add supegroup for each test bot ( #1919 )
2020-05-01 21:29:18 +03:00
Bibo-Joshi
632b989d90
Use @abstractmethod instead of raising NotImplementedError ( #1905 )
2020-05-01 21:27:34 +03:00
Bibo-Joshi
76567ba635
Stabilize CI ( #1931 )
2020-05-01 13:27:46 +02:00
Bibo-Joshi
2bd3f2a65a
Render Notes correctly ( #1914 )
...
* Renders Notes in JobQueues docs correctly
* Notes: -> Note:
2020-04-25 12:34:13 +02:00
Bibo-Joshi
26a5006bf1
Update question template ( #1910 )
...
* Update formulation in question template
* grammar
2020-04-20 18:11:48 +02:00
Andrej730
110e2df443
Job.next_t ( #1685 )
...
* next_t property is added to Job class
Added new property to Job class - next_t, it will show the datetime when the job will be executed next time.
The property is updated during JobQueue._put method, right after job is added to queue.
Related to #1676
* Fixed newline and trailing whitespace
* Fixed PR issues, added test
1. Added setter for next_t - now JobQueue doesn't access protected Job._next_t.
2. Fixed Job class docstring.
3. Added test for next_t property.
4. Set next_t to None for run_once jobs that already ran.
* Fixed Flake8 issues
* Added next_t setter for datetime, added test
1. next_t setter now can accept datetime type.
2. added test for setting datetime to next_t and added some asserts that check tests results.
3. Also noticed Job.days setter raises ValueError when it's more appropriate to raise TypeError.
* Fixed test_warnings, added Number type to next_t setter
1. Changed type of error raised by interval setter from ValueError to TypeError..
2. Fixed test_warning after changing type of errors in Job.days and Job.interval.
3. Added Number type to next_t setter - now it can accept int too.
* Python 2 compatibility for test_job_next_t_property
Added _UTC and _UtcOffsetTimezone for python 2 compatibility
* Fixed PR issues
1. Replaced "datetime.replace tzinfo" with "datetime.astimezone"
2. Moved testing next_t setter to separate test.
3. Changed test_job_next_t_setter so it now uses non UTC timezone.
* Defining tzinfo from run_once, run_repeating
1. Added option to define Job.tzinfo from run_once (by when.tzinfo) and run_repeating (first.tzinfo)
2. Added test to check that tzinfo is always passed correctly.
* address review
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-04-18 15:08:16 +02:00
Bibo-Joshi
57546795c5
Notes on Filters.text accepting command messages ( #1902 )
2020-04-18 12:16:14 +02:00
Hinrich Mahler
314f87ec44
Bump version to v12.6.1
2020-04-11 09:53:29 +02:00
Bibo-Joshi
4bbcd51ef5
Fix serialization of reply_markups ( #1889 )
2020-04-11 09:44:40 +02:00
Hinrich Mahler
38a33581b1
Bump version to v12.6
2020-04-10 23:52:08 +02:00
Hinrich Mahler
fe821c08e6
Doc Fixes
2020-04-10 23:43:58 +02:00
Harshil
0a9f4bfbdd
Doc fixes ( #1884 )
...
* Bot.py doc fixes
All docs obtained from official Bot API docs
* made flake8 happy
* address review
Also improved consistency of `returns:` in docs
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-04-10 20:05:01 +02:00
Bibo-Joshi
c4364c7166
GitHub Actions: Use checkout@v2 ( #1887 )
2020-04-10 19:57:52 +02:00
Bibo-Joshi
d63e710784
API 4.7 ( #1858 )
...
* Pure API changes
* Address review
* set Bot.commands on successfull call of set_my_commands
* Get started on tests
* More tests!
* More Coverage!
* Reset changes in utils.request
* Filters.dice, Filters.dice.text
* more coverage
* Address review
* Address review
* Test stop_poll with reply_markup
* Test stop_poll also without reply_markup
* Rephrase note on 'dice'
* Fix grammar in note on Filters.dice
* update api version readme
* address review
2020-04-10 19:22:45 +02:00
Bibo-Joshi
f379f54d5a
Tweak persistence handling ( #1827 )
...
* Unify persistence updates in dispatcher
* Ensure user/chat_data is not None when updating it
* Update persistence after job runs
* Increase coverage
2020-04-10 13:23:13 +02:00
Bibo-Joshi
bdf0cb91f3
Pass last valid context to TIMEOUT handlers ( #1826 )
2020-04-10 13:18:43 +02:00
Bibo-Joshi
3101ea8432
Favor concrete types over "Iterable" ( #1882 )
...
* Use concrete types instead of 'iterable'
* Fix overlooked docstring
* address review
2020-04-08 22:49:01 +02:00
Harshil
beb8ba3db0
Doc Fixes ( #1874 )
...
* doc fixes
* Update AUTHORS.rst
* More doc fixes
All docs were obtained from official Bot API docs.
* Shortened line length
Did this so it passes codacy check
* Revert id docstring changes
* typo
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-04-07 17:25:17 +02:00
Bibo-Joshi
f0b1aeb6fd
Customize issue template chooser ( #1880 )
...
* Customize issue template chooser
* Improve wording
2020-04-07 15:45:17 +02:00
Bibo-Joshi
d65558888e
Add note on UTC to run_{repeating, once} ( #1854 )
2020-03-31 00:05:08 +02:00
Bibo-Joshi
61a66a32c8
Add tests for empty string as switch_inline_query(_current_chat) ( #1635 )
2020-03-31 00:03:45 +02:00
Hinrich Mahler
392d4e1a9c
Bump version to v12.5.1
2020-03-30 18:25:53 +02:00
Andrej730
9cb34af65a
Fix UTC as default tzinfo for Jobs ( #1696 )
...
1. Made sure that default tzinfo in JobQueue is UTC #1693 .
2. Added test that checks that all methods by default set job.tzinfo as UTC.
2020-03-30 18:10:27 +02:00
Bibo-Joshi
e9cb6675ca
PrefixHandlers command and prefix editable ( #1636 )
...
* Rename internal list of PrefixHandler
* Make PFH.prefix and .command setable attributes
* Improve coverage
2020-03-30 17:49:50 +02:00
Bibo-Joshi
982f6707e1
Make ConversationHandler attributes immutable ( #1756 )
...
* Make ConversationHandler attributes immutable
* Add forgotten name property to test_immutable
2020-03-30 17:37:37 +02:00
Rys Artem
d55d981e22
Reorder tests to make them more stable ( #1835 )
2020-03-30 17:06:24 +02:00
Iulian Onofrei
f20953f7a9
Fix docs wording ( #1855 )
2020-03-30 00:32:06 +03:00
Bibo-Joshi
e18220be10
Add docs for PollHandler and PollAnswerHandler ( #1853 )
2020-03-29 11:24:44 +02:00
Hinrich Mahler
90729c21d7
Bump version to v12.5
2020-03-29 10:01:11 +02:00
Poolitzer
55e3ecf9f8
API 4.6 ( #1723 )
...
* First take on 4.6 support
* improved docs
* Minor doc formattings
* added poll and poll_answer to filters
* added tests, fixed mentioned issues
* added poll_answer + poll filter tests
* Update docs according to official API docs
* introducing pollhandler and pollanswerhandler
* First take on 4.6 support
* improved docs
* Minor doc formattings
* added poll and poll_answer to filters
* added tests, fixed mentioned issues
* added poll_answer + poll filter tests
* Update docs according to official API docs
* introducing pollhandler and pollanswerhandler
* correct_option_id validated with None
when trying to send a poll with correct option id 0 it was failing. Now None check is done so that even when 0 is passed it is assigned.
* improving example
* improving code
* adding poll filter example to the pollbot.py
* Update Readme
* simplify pollbot.py and add some comments
* add tests for Poll(Answer)Handler
* We just want Filters.poll, not Filters.update.poll
* Make test_official fail again
* Handle ME.language in M._parse_*
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
Co-authored-by: Sharun Kumar <715417+sharunkumar@users.noreply.github.com >
2020-03-29 09:52:30 +02:00
Bibo-Joshi
8d2c7af1f3
API 4.5 ( #1508 )
...
* Allow for nested MessageEntities in Message._parse_markdown/html, adjust tests
* remove testing relict
* Use MessageEntitys new equality check (#1465 )
* Remove unused variable
* Update to custom_title feature and slow_mode_delay option
Changes:
- custom_title for ChatMember
- new method setChatAdministratorCustomTitle for Bot
- new slow_mode_delay for Chat
Update due to new API future `custom_title` from API 4.5 (https://core.telegram.org/bots/api#december-31-2019 )
* Minor typo fix
* Comply with Flake8
* Add new MessageEntities and MarkdownV2
* Added file_unique_id attrs from API 4.5 and updated tests for it
* Fixed test and checked using flake8
* Fixed ChatPhoto documentation
* Fix Flake8
* Add setChatAdminCstmTitle to Bot
* Rename MDV2 methods
* Change files id attrs to unique id
* correct id_attrs for chat_photo
* Revert "temporarily skip tests failing b/c missing api 4.5 (#1738 )"
This reverts commit 7cde6ca268 .
* Fix text_markdown_v2 for monospace and text_links
* closing remarks from pieter
* Minor fix in escape_markdown, improve tests for it
* Fix offset bug in Message._parse_*
* Add test_chatphoto.py
* remove debug print from test_message.py
* try making codecov happy
* Update readme
* all hail codecov
* Improve Link handling for MarkdownV1 and adjust tests. Closes #1654
* Dont use beginning of pre-entity as language in _parse_markdown
* Remove debug print
* Dummy commit to try fix codecov
Co-authored-by: Hoi Dmytro <dmytro.hoi@gmail.com >
Co-authored-by: Dmytro Hoi <code@dmytrohoi.com >
Co-authored-by: poolitzer <25934244+poolitzer@users.noreply.github.com >
2020-03-28 16:37:26 +01:00
Pietu R
e86ae25a62
Update CallbackQuery docstrings ( #1818 )
...
* mark chat_instance as required
* change ordering and add bot
2020-03-28 15:52:37 +01:00
Bibo-Joshi
2d3357bfeb
Ignore Message.default_quote in test_official ( #1848 )
2020-03-28 14:32:16 +01:00
Bibo-Joshi
b6f4783fd3
Revert accitendtal change in vendored urllib3 ( #1775 )
2020-03-28 12:15:51 +01:00
Bibo-Joshi
f94ea9acbb
Answer CQs and use edit_message_text in examples ( #1721 )
2020-03-28 12:07:23 +01:00
Aleksey
157652cfdf
Fixe typo in edit_message_media ( #1779 )
2020-03-28 12:01:06 +01:00
Bibo-Joshi
104d0127aa
Doc Fixes ( #1778 )
...
* Update docs according to official docs
* Add note to Updater according to #1772
* Add note on ChatPermissions
* Fix rendering for arg type of conversation_timeout
2020-03-28 11:49:47 +01:00
Bibo-Joshi
e0b22e60b4
Update label in question template ( #1840 )
2020-03-20 23:19:32 +02:00
Bibo-Joshi
16613d7ce0
Don't comment when labeling issue as stale ( #1829 )
2020-03-12 10:14:00 +02:00
Bibo-Joshi
eac7f02211
Add Py3.8 to docs ( #1824 )
2020-03-11 23:36:34 +02:00
Ak4zh
28ded6718e
Add link property to Bot ( #1770 )
...
* added link property to bot
link property was available in User and Chat objects but not in Bot which was inconsistent.
* added 'link' property to Bot object
Bot will always have username so it does not require hasattr check
* add tests
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-03-09 23:17:05 +02:00
Noam Meltzer
13a641b3d7
Python 3.8 support ( #1614 )
...
* github workflow: Add python-3.8
* workaround for tornado issue on win with py>=3.8
* add workaround to webhookhandler
* Try making codecov and codacy happy
* Fix stupid mistake
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de >
2020-03-09 23:13:16 +02:00
Bibo-Joshi
27cccc7734
Add stale bot ( #1820 )
...
* add stale.yml for stale bot
* move stale.yml to the right directory
2020-03-08 23:40:22 +02:00
Noam Meltzer
f7ec7a7c4c
Use temporary directories in test_persistence ( #1808 )
2020-03-04 23:58:19 +02:00
Bibo-Joshi
8d6970ab02
Remove references to travis and appveyor ( #1791 )
2020-02-23 23:04:56 +02:00
Bibo-Joshi
1dc67dcbda
Remove builtin names where possible ( #1792 )
2020-02-23 23:03:58 +02:00
Poolitzer
14f712b3c4
Update pre-commit config file ( #1787 )
2020-02-21 07:43:48 +02:00
Poolitzer
0fb0fbb93f
Remove legacy CI files ( #1783 )
2020-02-20 17:33:03 +02:00
Pieter Schutz
72ecc696cb
Bump to v12.4.2
2020-02-10 11:39:26 +01:00
Bibo-Joshi
a447760411
Make sure PP can read files that dont have bot_data ( #1760 )
...
* Make sure PP can read files that dont have bot_data
* Improve workaround
2020-02-08 19:24:35 +02:00
Bibo-Joshi
6da529c46b
Pass correct parse_mode to InlineResults if bot.defaults is None ( #1763 )
...
* Pass correct parse_mode to InlineResults if bot.defaults is None
* Add tests for inlinequeryresults with (default)parse_mode
* enhance tests
2020-02-08 18:52:22 +02:00
Noam Meltzer
bd1b2fb6c1
Bump version to v12.4.1
2020-02-08 15:06:05 +02:00
Bibo-Joshi
f9a8cd924c
Make Filters.command only accept MessageEntity commands ( #1744 )
...
* Make Filters.command only accept MessageEntitie commands
* Add option to filters.command to allow cmds anywhere in the message
* Make codecov happy, also retroactive for #1631
2020-02-08 14:54:21 +02:00
Bibo-Joshi
7b3b278c7c
Bump version to v12.4
2020-02-08 10:01:41 +02:00
Bibo-Joshi
cf3635d408
make test_webhook_invalid_posts flaky ( #1758 )
2020-02-07 18:32:38 +02:00
Bibo-Joshi
84cfc6f7fa
Rename Test suite … ( #1750 )
...
* Rename Test suite
* Actually change the badge in readme
* fix download without path arguments (#1591 )
* fix download without path arguments
* fix download without path arguments
* solved downloading a file without file_path or custom_path
* if no file_path, download as file_id
* Add test case
* Elaborate doc string
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
* Add default values (#1490 )
* added parse_mode parameter in Updater and in Bot class to set a default parse mode for bot
* DefaultValue
* Add default parse_mode everywhere
* Renome to default_parse_mode
* Test def parse_mode for send_*, edit_message_*
* Remove duplicate code in Input* classes
* Improve handling of def_p_m for Bot methods
* Remove unneeded deletion of kwargs
* Make @log preserve signature, add bots with defaults to tests
* Fix Codacy
* Fix Travis Error
* Add default_disable_notification
* Add default_disable_web_page_preview
* Add default_disable_timeout
* add default_disable_web_page_preview for InputTextMessageContent
* add default_quote
* Try fixing test_pin_and_unpin
* Just run 3.5 tests for paranoia
* add tests for Defaults
* Revert "Just run 3.5 tests for paranoia"
This reverts commit 1baa91a3a1 .
* Tidy up parameters, move Defaults to ext
* Stage new files, because im an idiot
* remove debug prints
* change equality checks for DEFAULT_NONE
* Some last changes
* fix S&R error so that tests actually run
Co-authored-by: Ak4zh <agwl.akash@gmail.com >
Co-authored-by: Eldinnie <Eldinnie@users.noreply.github.com >
* Skip test relying on ordered dicts for 3.5 (#1752 )
* Rename Test suite
* Actually change the badge in readme
Co-authored-by: Gabriel Simonetto <42247511+GabrielSimonetto@users.noreply.github.com >
Co-authored-by: Ak4zh <agwl.akash@gmail.com >
Co-authored-by: Eldinnie <Eldinnie@users.noreply.github.com >
2020-02-06 11:38:21 +01:00
Bibo-Joshi
bf06fa2c18
Skip test relying on ordered dicts for 3.5 ( #1752 )
2020-02-06 11:28:27 +01:00
Bibo-Joshi
960c7a0c70
Add default values ( #1490 )
...
* added parse_mode parameter in Updater and in Bot class to set a default parse mode for bot
* DefaultValue
* Add default parse_mode everywhere
* Renome to default_parse_mode
* Test def parse_mode for send_*, edit_message_*
* Remove duplicate code in Input* classes
* Improve handling of def_p_m for Bot methods
* Remove unneeded deletion of kwargs
* Make @log preserve signature, add bots with defaults to tests
* Fix Codacy
* Fix Travis Error
* Add default_disable_notification
* Add default_disable_web_page_preview
* Add default_disable_timeout
* add default_disable_web_page_preview for InputTextMessageContent
* add default_quote
* Try fixing test_pin_and_unpin
* Just run 3.5 tests for paranoia
* add tests for Defaults
* Revert "Just run 3.5 tests for paranoia"
This reverts commit 1baa91a3a1 .
* Tidy up parameters, move Defaults to ext
* Stage new files, because im an idiot
* remove debug prints
* change equality checks for DEFAULT_NONE
* Some last changes
* fix S&R error so that tests actually run
Co-authored-by: Ak4zh <agwl.akash@gmail.com >
Co-authored-by: Eldinnie <Eldinnie@users.noreply.github.com >
2020-02-06 11:22:56 +01:00
Gabriel Simonetto
bacabbe767
fix download without path arguments ( #1591 )
...
* fix download without path arguments
* fix download without path arguments
* solved downloading a file without file_path or custom_path
* if no file_path, download as file_id
* Add test case
* Elaborate doc string
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de >
2020-02-06 11:21:21 +01:00
Eldinnie
d8dcdeea75
fix test_pin_and_unpin_message ( #1749 )
...
Make it flaky and timeout
2020-02-02 23:39:08 +01:00
isinstance
818475bd93
Fix Server response could not be decoded using UTF-8 ( #1623 )
...
Co-authored-by: Noam Meltzer <tsnoam@gmail.com >
2020-02-03 00:12:27 +02:00
Bibo-Joshi
f97ac90af7
skip test_json on TestDictPersistence on py3.5 ( #1748 )
2020-02-03 00:10:48 +02:00
billchenchina
90eeb40ae8
Add base_file_url support for telegram.ext.Updater ( #1679 )
...
Co-authored-by: Noam Meltzer <tsnoam@gmail.com >
2020-02-02 23:47:02 +02:00
Bibo-Joshi
6d9d11b8bd
Handler persistence for nested ConversationHandlers ( #1711 )
...
* Handler persistence for nested ConversationHandlers
* Add tests for persistence w/ nested CHs
2020-02-02 22:31:56 +01:00
Bibo-Joshi
f6b663f175
bot_data as global memory (V12 version of #1322 ) ( #1325 )
...
* Update AUTHORS.rst
* Update AUTHORS.rst
* Add bot_data to CallbackContext as global memory
* Minor fixes in docstrings
* Incorp. req. changes, Flake8 Fixes
* Persist before stop
* Fix CI errors
* Implement #1342 for bot_data
* Add check pickle_persistence_only_bot similar to #1462
* Fix test_persistence
* Try dispatching error before logging it
* Fix test
Co-authored-by: Eldinnie <Eldinnie@users.noreply.github.com >
2020-02-02 22:20:31 +01:00
Noam Meltzer
43bfebb150
Update copyright date to 2020 ( #1746 )
2020-02-02 23:08:54 +02:00
Jelle Besseling
743e2fce07
Add --with-upstream-urllib3 option to remove vendored version ( #1725 )
...
Co-authored-by: Noam Meltzer <tsnoam@gmail.com >
2020-02-02 22:56:25 +02:00
Shreyas Thirumalai
4c2a3d07ce
Remove duplicate entries from docs. ( #1739 )
...
Fixes #1726
2020-02-02 20:35:52 +01:00
Poolitzer
423794f473
fixing message.link ( #1741 )
...
* fixing message.link
* improving if clause
2020-02-02 20:27:53 +01:00
Bibo-Joshi
a397e6c3c6
Doc fixes ( #1642 )
...
* Add missing DispatcherHandlerStop to docs
* Forgot to stage new file ...
* update docstring for bot.edit_message_*
* make job callback docs context based
* Flake8
* Fix doc strings of message.reply_
* Update thumb size docs
* Add missing DispatcherHandlerStop to docs
* Forgot to stage new file ...
* update docstring for bot.edit_message_*
* make job callback docs context based
* Flake8
* Fix doc strings of message.reply_
* Update thumb size docs
* Update docs on InlineQuery.query length
* Minor doc updates
* change module to class in to_float_timestamp doc string
2020-02-02 20:20:54 +01:00
Bibo-Joshi
7cde6ca268
temporarily skip tests failing b/c missing api 4.5 ( #1738 )
2020-01-30 20:57:16 +02:00
Bibo-Joshi
408062dd43
Add note on how to run test_official to contrib guide ( #1740 )
2020-01-29 22:43:57 +02:00
Poolitzer
d96d233dc5
dropping 2.7, 3.3, 3.4 support from setup.py and README.rst ( #1734 )
...
Fixes #1720
2020-01-26 23:47:52 +02:00
Bibo-Joshi
3eb2cef600
Make Filters.text accept leading slash ( #1680 )
...
Fixes #1678
2020-01-26 23:19:38 +02:00
Poolitzer
0b87f4b274
contibuting guide: warning about adding requirements ( #1718 )
2020-01-26 23:15:42 +02:00
Bibo-Joshi
0df526d390
jobqueue: Log datetimes correctly (minor change) ( #1714 )
2020-01-26 23:08:33 +02:00
Bibo-Joshi
cb9af36937
Fix None check in JobQueue._put() ( #1707 )
...
fixes #1701
2020-01-26 23:07:17 +02:00
Poolitzer
fbb7e0e645
No more unitests for py2.7 ( #1731 )
...
Still not removing any py2.7 specific code, but no reason to waste precious CPU and unitest time on py2.7.
2020-01-26 23:01:29 +02:00
Eana Hufwe
d9d65cc2ac
Add poll messages support to filters ( #1673 )
2020-01-26 22:57:48 +02:00
Bibo-Joshi
62f514f068
CallbackContext: Expose dispatcher as a property ( #1684 )
...
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com >
2020-01-26 22:55:00 +02:00
David Auer
08bbeca8ec
Fix typo in example text ( #1703 )
2020-01-26 22:35:34 +02:00
Mayur Newase
38b9f4b9bc
Dispatcher.__init__: Remove double assignmed to self.job_queue ( #1698 )
...
Co-authored-by: mayur741 <mayur@wipadika.com >
2020-01-26 22:34:25 +02:00
Viktor Oreshkin
3d59b2f581
Docstring fix: thumb limits were changed with Bot API 4.2 ( #1669 )
2020-01-26 22:30:26 +02:00
rizlas
e3c8466e41
Rename enocde_conversations_to_json() -> enocde_conversations_to_json() ( #1661 )
...
Fixes #1660
2020-01-26 22:24:00 +02:00
compSciKai
1d92f52c6a
Minor documentation fix ( #1647 )
2020-01-26 22:19:59 +02:00
Bibo-Joshi
33280a7fe0
Add missing name for Filters.update classes ( #1632 )
2020-01-26 22:18:29 +02:00
Poolitzer
4b5ba15d31
both google python style links have been moved ( #1624 )
...
I choose https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html , based on https://web.archive.org/web/20160322212330/http://www.sphinx-doc.org/en/stable/ext/example_google.html
and http://google.github.io/styleguide/pyguide.html based on https://web.archive.org/web/20160304111857/https://google.github.io/styleguide/pyguide.html
2020-01-26 22:16:19 +02:00
Poolitzer
d2466f1e6e
CI: Fix running on master after push + official can fail ( #1716 )
...
allowing official to fail is only temporary until we'll add the latest bot api support
2020-01-26 22:07:24 +02:00
Bibo-Joshi
883c6b5901
Add dispatcher argument to Updater ( #1484 )
2020-01-26 21:59:47 +02:00
Noam Meltzer
1e7f4fae6f
Bump version to v12.3.0
2020-01-11 21:21:46 +02:00
Noam Meltzer
dae5ab47a0
CHANGES.rst: Update towards v12.3.0 release
2020-01-11 21:08:03 +02:00
Bibo-Joshi
a9d9b1d750
Add #1653 to changelog
2020-01-11 20:57:58 +02:00
Hinrich Mahler
90496f70a5
Prepare for v12.3.0
2020-01-11 20:57:58 +02:00
tobiaswicker
940b42e048
ConversationHandler: Fix wrong signature call for timeout handlers
...
Fixes #1652
Co-authored-by: Eldinnie <Eldinnie@users.noreply.github.com >
2020-01-11 20:51:31 +02:00
Poolitzer
a582515766
README.rst: replace travis and appveyor with github ( #1645 )
2020-01-11 20:47:21 +02:00
Eldinnie
3d42df3366
Fix documentation about return values in message ( #1656 )
...
* Fix documentation about return values in message
* flake8 satisfaction
2019-12-16 14:22:11 +01:00
Poolitzer
2c67a9833b
add private /c links to message.links object ( #1619 )
...
* add private /c links to message.links object
* fixing ids for basic groups
* fixing ids for non basic chats and the test
* Improve tests for Message.link
* Simplify id_to_link
2019-11-29 13:50:44 +01:00
Bibo-Joshi
5e8a961669
Refactor msg_in ( #1631 )
...
* Revert "Add msg_in filter (new) (#1570 )"
This reverts commit 34bdbc632a .
* Refactor msg_in, add Filters.caption on the fly
* Update docstrings
* Fix copy-paste typo
2019-11-29 13:09:44 +01:00
Bibo-Joshi
a5ba64becb
Remove checks for None on assignement for opt args ( #1600 )
2019-11-23 18:05:03 +02:00
Noam Meltzer
2a3169a22f
Fix deprecation warning with Python 3.8 triggered by vendored urllib3 ( #1618 )
...
Fixes #1586
2019-11-16 14:37:15 +02:00
Poolitzer
894d8281ab
github workflow: add a cron job ( #1615 )
2019-11-16 00:19:47 +02:00
Noam Meltzer
2fdf48023b
github workflow: give pre-commit its own job ( #1612 )
2019-11-15 23:35:44 +02:00
Paolo Lammens
4e717a172b
Fix UTC/local inconsistencies for naive datetimes ( #1506 )
2019-11-15 22:51:22 +02:00
Noam Meltzer
10c9ec2313
workflow: run test-official in its own job ( #1607 )
2019-11-09 22:38:23 +02:00
Noam Meltzer
096a7c3593
Allow PRs to test ( #1606 )
2019-11-09 22:13:02 +02:00
Noam Meltzer
e9d9f01bd4
Fix windows actions ( #1605 )
...
* Stop testing with ujson
* Fix timing issue with test_delete_message
* ignore pip deprecation warning. hopefully it will fix windows+py2.7
* telegram replies to deleteing old messages are not consistent
2019-11-09 20:33:51 +02:00
Jasmin Bom
8b4b22cc89
Implement Github Actions CI ( #1556 )
...
* Add test workflow
* Attempt github grouping
* Improve bot info fetching
- Add support for b64+json encoded github secret with all the vars
- Add bot_name and bot_username since it's needed for a proper get_me test
* Improve test workflow a lot
- Add coverage
- Install ujson
- test_official only run on in single job
- Pass bot info to pytest
* Improve github grouping by having shorter titles
* Run pytest with coverage
* Improve coverage report
* Proper exitcode behaviour for pytest
* Proper test official handling
* Proper error handling
* Skip jobqueue tests on windows
* run coverage tests even if nocoverage ones fail
* Skip messagequeue tests on windows
* Clean up to satisfy flake8
* Run meta tests
2019-10-27 14:28:33 +01:00
Bibo-Joshi
b294c92bad
question template: Add info about users' group ( #1577 )
2019-10-27 14:33:30 +02:00
Poolitzer
264de2b7c1
Github actions - notify maintainers about changed examples ( #1555 )
2019-10-27 01:42:47 +03:00
Julian Ste
ac64027580
Fixed comments in examples ( #1566 )
2019-10-27 01:15:09 +03:00
Bibo-Joshi
34bdbc632a
Add msg_in filter (new) ( #1570 )
...
Closes #1144
2019-10-27 01:12:54 +03:00
Bibo-Joshi
bbcff96804
Doc fixes ( #1572 )
...
Fixes #1576
2019-10-27 01:04:48 +03:00
Bibo-Joshi
93449443b2
Add *args, **kwargs to Message.forward() ( #1574 )
2019-10-27 01:00:27 +03:00
Poolitzer
8cdb20a85a
updating example to V12 ( #1579 )
2019-10-27 00:51:29 +03:00
Jannes Höke
6fddb49af5
📝 Update section "Getting help"
2019-10-22 00:04:31 +02:00
Jannes Höke
b0aef0c718
🔀 Update issue templates ( #1569 )
...
* 📝 Update issue templates
* 👌 Update question template
* 🔥 Delete old issue template
2019-10-21 23:51:58 +02:00
Iulian Onofrei
88eccc6608
Add MAX_PHOTOSIZE_UPLOAD size limit constant ( #1560 )
...
* Add MAX_PHOTOSIZE_UPLOAD size limit constant
* Add the other source of the constants' values
2019-10-17 22:24:44 +02:00
Lorenzo Rossi
3d8771bbdf
🔀 Add mutex protection on ConversationHandler ( #1533 )
...
* Add mutex protection on ConversationHandler
* Remove timeout job before child update
* Make locks private
* Add conversation timeout conflict test
2019-10-17 00:03:53 +02:00
Iulian Onofrei
7152b5aaf9
Fix CONTRIBUTING.rst not to install requirements as root ( #1558 )
2019-10-16 21:50:38 +03:00
Noam Meltzer
98147fce32
Bump version to v12.2.0
2019-10-14 21:12:13 +03:00
Poolitzer
e54e9f2347
moving flake config to one file ( #1546 )
2019-10-14 11:10:51 +03:00
Poolitzer
3545139dd7
adding to_dict test ( #1544 )
...
fixes #1541
2019-10-12 23:40:42 +03:00
Poolitzer
d0c27e2d46
adding 3.8 to travis and appveyor ( #1543 )
...
Fixes #1542
2019-10-12 16:12:41 +03:00
Paolo Lammens
3318239cf6
tests: refactor `test_commandhandler.py` ( #1408 )
...
- Improved usage of fixtures
- Replaced fixtures for directly callable factories where
multiple mock objects were needed in the same test function
- Extracted fixtures where possible (in place of literals or
global constants)
- Moved some fixtures to ``conftest.py`` to be used by other
modules
- Made a common base class for both ``TestCommandHandler`` and
``TestPrefixHandler``, extracting common methods, patterns and
signatures
- The extracted patterns in test methods have been named with
leading ``_test``
- Extracted other repeatedly used test utilities into functions
(e.g. ``is_match``) and methods (e.g. ``make_default_handler``)
2019-10-12 16:11:09 +03:00
Bibo-Joshi
aadb6df271
Nested ConversationHandlers ( #1512 )
...
Fixes #405
2019-10-11 22:59:36 +03:00
Noah Evans
2cc9aac7dc
Fix Bot.to_dict to use proper first_name ( #1525 )
...
Fixes #1519
2019-10-11 22:37:28 +03:00
Trainer Jono
1d007b1b60
Fix typos in examples ( #1537 )
2019-10-11 21:10:21 +03:00
Noam Meltzer
3257148d13
travis.yaml: TEST_OFFICIAL removed from allowed_failures
...
it was originally added to allowed_failures until we completed API 4.4
support
2019-10-11 21:02:32 +03:00
Poolitzer
805a798b50
Fix CI failures due to non-backward compat attrs depndency ( #1540 )
2019-10-11 21:01:25 +03:00
Noam Meltzer
e60a42010b
Bump version to v12.1.1
2019-09-17 11:30:52 +03:00
Noam Meltzer
ae88129f0f
Revert accidental change to the git revision of the urllib3 submodule ( #1517 )
...
Fixes #1516
2019-09-17 11:25:54 +03:00
Noam Meltzer
3812251dac
small fix for documentation to compile
2019-09-13 22:31:02 +03:00
Noam Meltzer
e1193425ca
Bump version to v12.1.0
2019-09-13 22:29:06 +03:00
Joscha Götzer
ccf5e6c692
Implemented Tools for deep linking ( #1049 )
2019-09-13 22:09:05 +03:00
zeshuaro
32dd415fb8
Add instance methods to Animation and ChatPhoto ( #1489 )
...
get_file, get_small_file, get_big_file
2019-09-13 22:07:56 +03:00
Bibo-Joshi
f13aeaa2a1
Doc fixes ( #1499 )
2019-09-13 21:49:04 +03:00
Bibo-Joshi
4cd07361d1
Inline Keyboard example ( #1502 )
...
Supersedes. aka. fixes #884
2019-09-13 21:43:03 +03:00
Paolo Lammens
b38a1840b2
docs: Add info on documentation to CONTRIBUTING.rst ( #1500 )
...
I didn't find this information elsewhere in the repository;
I thought it might be useful for new contributors.
2019-09-09 10:01:04 +02:00
Bibo-Joshi
fba3cc90d9
API 4.4 small code cleanup ( #1510 )
2019-09-07 12:42:26 +03:00
Bibo-Joshi
965ad17af8
API 4.4 ( #1464 )
2019-09-06 22:41:43 +03:00
Poolitzer
d5399de99b
raise attribute errors when someone tries to assign values to chat/us… ( #1495 )
...
* raise attribute errors when someone tries to assign values to chat/user_data (closes #1402 )
* fix test
* something something not switching entirely and using a messy patch and no not anymore and argh
2019-09-05 22:48:28 +02:00
Bibo-Joshi
280306d1e9
Remove note about V12b in examples ( #1503 )
2019-09-05 13:51:26 +02:00
Noam Meltzer
c84e21d8eb
Bump version to v<VERSION>
2019-08-29 21:33:51 +03:00
Noam Meltzer
738e5a0784
V12 changelog ( #1480 )
...
* python3.4 is no longer supported
* Prepare CHANGES.RST & README.rst for v12.0.0 release
* CHANGES.rst: small fix
* Add Bibo-Joshi to Credits
* update the changelog - in anticipation for release
* remove line about api 4.4
* fix spelling
* move too long descriptions to wiki
2019-08-29 19:30:29 +02:00
Poolitzer
ec6dc7fa10
fix typo in PicklePersistence ( #1488 )
...
* fix single typo
* fix unitests for picle singe_file -> single_file
2019-08-29 19:09:38 +02:00
Noam Meltzer
b71196dad3
Run test_official in a seperate travis job ( #1491 )
2019-08-28 22:58:58 +03:00
Bibo-Joshi
425912da4a
Use UTC in from_timestamp (breaking change) ( #1485 )
2019-08-28 22:06:41 +03:00
Poolitzer
2c92c356b8
Error handlers now handle all errors ( #1483 )
...
* python3.4 is no longer supported
* Prepare CHANGES.RST & README.rst for v12.0.0 release
* CHANGES.rst: small fix
* Add Bibo-Joshi to Credits
* improving error_handler
* fixing affected tests
2019-08-27 09:09:02 +02:00
Noam Meltzer
f379a34ccd
Run test_official only on py3.7
2019-08-24 01:13:40 +03:00
Noam Meltzer
4328eaefb2
Fix test_photo.py ( #1479 )
...
Telegram had changed their server behaviour again
2019-08-24 01:10:30 +03:00
Noam Meltzer
79dc6edf25
Merge remote-tracking branch 'origin/V12'
2019-08-24 01:04:10 +03:00
Bibo-Joshi
c7e9281068
Make MessageEntity objects comparable ( #1465 )
2019-08-24 00:54:04 +03:00
Eldinnie
edad6e8b53
Add a prefix to threads ( #1358 )
...
* Add a prefix to worker thread
This adds a prefix of `Bot:<id>:worker:` to the name of the worker threads.
Fixes #1332
* Also prefix other threads
* Fix test
* Fix test and remove helper method.
2019-08-23 22:57:08 +02:00
zeshuaro
7eb7c30741
updated inputmedia docstring ( #1436 )
2019-08-23 22:03:43 +02:00
Eldinnie
3ae14dda80
Remove deprecated regexhandler from examples ( #1426 )
2019-08-23 22:32:12 +03:00
Eldinnie
ac60d057a5
All api 4.2 and 4.3 changes ( #1418 )
2019-08-23 22:20:41 +03:00
Marchello00
e492d5b97b
Fix send_location() - latitude may be 0 ( #1437 )
...
Fixes #1435
2019-08-23 22:13:29 +03:00
René Filip
3afb0ae6c3
Improve timer_bot.py example ( #1440 )
...
Fixes #1439
2019-08-23 22:09:46 +03:00
Ales Dokshanin
179cf14bd8
#1410 Call task_done() on update queue after update processing finished ( #1428 )
2019-08-23 21:54:07 +03:00
Bibo-Joshi
a1eabc0cae
Fix for #1452 ( #1462 )
...
Dispatcher force updating persistence object's chat data attribute
2019-08-23 21:52:14 +03:00
Bibo-Joshi
5e90231f4e
Make updates persist even on DispatcherHandlerStop ( #1463 )
2019-08-23 21:38:29 +03:00
Zhuoyun Wei
2cb6377dab
examples/conversationbot2.py: Use context.error in error() ( #1474 )
2019-08-23 18:24:19 +03:00
Bibo-Joshi
316d046628
Indent return statement in parse*entities ( #1473 )
2019-08-23 18:20:07 +03:00
Marco Marinello
5e0e4c01ff
Prepare debian packetization ( #1476 )
2019-08-23 17:47:00 +03:00
Bibo-Joshi
24546bda67
Make all categories lower case to avoid KeyErrors ( #1475 )
2019-08-18 18:39:29 +03:00
Pieter Schutz
d70577b9cf
remove 3.4 from Appveyor
2019-06-05 22:52:26 +02:00
Pieter Schutz
3fc57479f3
Merge branch '4.3' into RC1
2019-06-05 22:19:48 +02:00
Pieter Schutz
e11efa2e5b
Add bot api 4.3
...
Add LoginUrl to InlineKeyboardButton
Add reply_markup to message
2019-06-05 22:15:32 +02:00
Pieter Schutz
d84551134b
Merge branch 'api4.2-poll' into RC1
2019-06-05 22:11:44 +02:00
Pieter Schutz
cebd2d6a86
test poll de_json
2019-06-05 22:11:28 +02:00
Pieter Schutz
725c21b88d
API 4.2 changes
...
actually works now
Add tests
Fix flake8 issues.
Add poll argument to Update.
Fix pre-commit config
Finalizing 4.2
No notify on pin
2019-06-05 15:00:07 +02:00
Noam Meltzer
9d005d5124
jobqueue: Add docstring note about intervals and DST ( #1397 )
...
Fixes #1381
2019-04-27 20:10:56 +02:00
Jason Rhinelander
2cde878d1e
Fix webhook listen ( #1383 )
...
The `listen` argument wasn't being passed through to Tornado; this fixes
it.
Fixes #1382
2019-04-15 10:28:41 +03:00
Jasmin Bom
984bea16d1
Fix trailing whitespace (flake8 error)
2019-04-05 20:03:44 +02:00
Jasmin Bom
474ff8ae41
Add missing message.text check in PrefixHandler check_update ( #1375 )
...
* Add missing message.text check in PrefixHandler check_update
* Remove message length check
2019-04-05 12:59:50 +02:00
Loo Zheng Yuan
2ed4cbd26d
Fix #1366 : _trigger_timeout() missing 1 required positional argument: 'job' ( #1367 )
...
* Fix #1366 : _trigger_timeout() missing 1 required positional argument: 'job'
* Add comments
2019-04-05 12:59:32 +02:00
Jasmin Bom
7944805627
Fix bot tests
...
- telegram how throws an error if you try to reply to nonexistent msg
- telegram also changed the message when you try to delete old msg
2019-04-01 13:05:45 +02:00
Jasmin Bom
b5891a6a61
Making merged filters short-circuit ( #1350 )
...
* Making merged filters short-circuit
* Add notes to docs about short-circuiting
2019-03-14 09:03:21 +01:00
Jasmin Bom
df813c46e1
Pin pre-commit pylint to v2.3.0
...
Fixes issue seen at https://travis-ci.org/python-telegram-bot/python-telegram-bot/jobs/499853384#L702
2019-02-28 22:02:08 +01:00
Eldinnie
36a74da4f4
fix setting bot on ShippingQuery ( #1355 )
...
* fix setting bot on ShippingQuery
* Fix test to test de_json
2019-02-23 21:33:03 +01:00
Eldinnie
0c10c537f7
fix typo in master
...
[CI skip]
2019-02-23 17:39:04 +01:00
Jasmin Bom
26ce9bb343
Documentation fixes ( #1348 )
...
* Clarify InlineKeyboardButton callback-data docstring
Fixes #1267
* Improve documentation slightly
- Prettier changelog
- Link to examples on frontpage
- Link to wiki on frontpage
- Put telegram.ext in own sidebar thingy
* Improve ext.Filters documentation
Superseeds #1089
- Remove `:obj:Filter` as it's pretty obvious that it's a filter since it's in this module. It also made the html output about 1/3 times longer to scroll through.
- Add an __all__ to reorder so Filter is at the top instead of BaseFilter
- Add a proper docstring for document that documents the attributes (this is the #1089 part)
- Also fix a couple of grammar errors.
* Fix indentation in telegram.rst
* Add `git describe --long --tags` to the `python -m telegram` output
* Use admonition for examples to make them *pop* better
* Remove automodule telegram
Sphinx was whining a lot and it doesn't actually seem to be needed in any way?
* Fix Filters.document docstring per CR
Co-Authored-By: jsmnbom <jsmnbom@gmail.com >
* Fix spelling error in docs index
Co-Authored-By: jsmnbom <jsmnbom@gmail.com >
* Setting needs_sphinx to 1.7.9
so we don't have more issues with incongruent versions
* Fixed last warnings
* Make pre-commit happy
2019-02-18 20:04:52 +01:00
Jasmin Bom
39d686b1a1
Tiny spelling fix in CHANGES.rst [ci skip]
2019-02-14 12:31:00 +01:00
Kirill Vasin
60f2044bbd
Entry returns None ends conversation ( #1270 )
...
* Fix unresolvable promises
* added async test and description
* added test_none_on_first_message for conv_handler
* Small change in ConversationHandler docstring
* Fix test to work with new commandhandler
2019-02-14 12:29:58 +01:00
Jasmin Bom
dda7ca18cd
Update CHANGES.rst
...
Also include #1270 even though not merged yet, but it should be very soon :)
2019-02-14 12:03:20 +01:00
Jasmin Bom
07c51d236b
Fix spelling error in example notice
2019-02-14 11:53:09 +01:00
Jasmin Bom
9f1eccf569
Merge branch 'master' into V12
2019-02-14 11:52:31 +01:00
Eldinnie
cd7c642f49
Add WAITING state and behavior ( #1344 )
...
* Add WAITING state and behavior
* Remove `run_async_timeout` and `timed_out_behavior` arguments
* replace with `WAITING` constant and behavior from states
* never wait for promise to resolve (will hang up entire update queue
* see #1250 for discussion
* Fixing pytest version to 4.2.0
Pytest 4.2.1 has a weird bug on top level collect in 4.2.1 Fixing version to 4.2.0
2019-02-14 11:00:21 +01:00
Bibo-Joshi
f7abb21323
Adjust persistence on exit behaviour ( #1312 )
...
* Adjust persistence of exit behaviour
* Fix binary operators in on_flush
* Fix docstring
* Add test
2019-02-13 23:30:29 +01:00
Eldinnie
7e2dbdd4b3
Fix #1297 ( #1342 )
...
* Fix #1297
This makes a deepcopy of the user_data and chat_data dict as suggested by @Bibo-Joshi
* Fix dictpersistence aswel.
2019-02-13 23:28:48 +01:00
Jasmin Bom
b64698e4b6
Use warnings.warn for conversationhandler warnings. ( #1343 )
...
* FIXED: ConversationHandler errors were logged to root logger
* Use warnings.warn instead of self.logger.warning.
2019-02-13 23:28:23 +01:00
Ambro
d0936f76ad
Only one warning for multiple CallbackqueryHandler's on ConversationHandler ( #1319 )
2019-02-13 22:08:49 +01:00
Jasmin Bom
da342af7ed
Small flake8 fixes
2019-02-13 16:04:48 +01:00
Jasmin Bom
446c54cf8d
Bump to version 12.0.0b1
2019-02-13 13:41:04 +01:00
Jasmin Bom
f5bfe2f29c
Update example comments and docstrings to note the V12 beta
2019-02-13 13:38:07 +01:00
Eldinnie
b02b68880f
Make dispatcher use one context per update ( #1283 )
...
* Make dispatcher use one context per update
It gives user the option to `overload` context with their own properties in a lower group handler if they like
* Improve callbackcontext & run_async docstring
- Add note about how you can add custom attributes to context.
- Add warnings about how run_async and custom attributes should not be used together.
* Small documentation improvements. [ci skip]
2019-02-13 12:18:37 +01:00
Eldinnie
2c5eade4f0
Update Filters, CommandHandler and MessageHandler ( #1221 )
...
* update_filter attribute on filters
Makes it possible to have filters work on an update instead of message, while keeping behavior for current filters
* add update_type filter
* Messagehandler rework
- remove allow_edited (deprecated for a while)
- set deprecated defaults to None
- Raise deprecation warning when they're used
- add sensible defaults for filters.
- rework tests
* Commandhandler rework
* Remove deprecation test from new handler
* Some tweaks per CR
- rename update_types -> updates
- added some clarification to docstrings
* run webhook set test only on 3.6 on appveyor
* update_filter attribute on filters
Makes it possible to have filters work on an update instead of message, while keeping behavior for current filters
* add update_type filter
* Messagehandler rework
- remove allow_edited (deprecated for a while)
- set deprecated defaults to None
- Raise deprecation warning when they're used
- add sensible defaults for filters.
- rework tests
* Commandhandler rework
* Remove deprecation test from new handler
* Some tweaks per CR
- rename update_types -> updates
- added some clarification to docstrings
* run webhook set test only on 3.6 on appveyor
* Changes per CR
* Update travis to build v12
* small doc update
* try to make ci build version branches
* doc for BaseFilter
* Modify regexfilter and mergedfilter
Now returns a list of match objects for every regexfilter
* Change callbackcontext (+ docs)
* integrate in CommandHandler and PrefixHandler
* integrate in MessageHandler
* cbqhandler, iqhandler and srhandler
* make regexhandler a shell over MessageHandler
And raise deprecationWarning on creation
* clean up code and add some comments
* Rework based on internal group feedback
- use data_filter instead of regex_filter on BaseFilter
- have these filters return a dict that is then updated onto CallbackContext instead of using a list is before
- Add a .match property on CallbackContext that returns .matches[0] or None
* Fix and add test for callbackcontext.match
* Lots of documentation fixes and improvements [ci skip]
2019-02-13 12:07:25 +01:00
Jasmin Bom
950ec35970
Remove message decorator to fix default timeouts. ( #1156 )
...
* Remove message decorator to fix default timeouts.
* Make message wrapper method private.
* Make tests pass
* Fix callbackquery shortcuts
Closes #1180
* Fix callbackquery shortcut tests
* Fix merge
* Address CR
* Add missing default timeout=20 for some bot file uploads
* Fix wrong return value in convhandler
Probably stems from a combination of bad merge plus quickly merged hacktoberfest PR.
2019-02-13 11:37:13 +01:00
Jasmin Bom
d33e1d9913
Small flake8 fix
2019-02-09 18:45:34 +01:00
Jasmin Bom
2e203e41e4
Merge branch 'master' into V12
2019-02-09 18:45:00 +01:00
Jasmin Bom
e54a3188ce
Revert "Fix bug: unable to save jobs with timezone aware dates ( #1308 )"
...
This reverts commit 23fe991b
See https://github.com/python-telegram-bot/python-telegram-bot/pull/1308 for more details.
NOTE: Keeping Ambro17 in AUTHORS.rst as I'm pretty sure they've contributed more since then :)
2019-02-09 18:44:04 +01:00
Jasmin Bom
710f43a23a
travis: Use xenial dist for pypy
...
Cryptography started complaning about old openssl - hopefully xenial has a newer version
2019-02-09 18:26:17 +01:00
Jasmin Bom
27b757df32
Reorder some stickset tests to hopefully make them pass
2019-02-09 18:21:12 +01:00
Jasmin Bom
66e43c5932
Fix a bunch of flake8 W504 errors
2019-02-08 20:55:40 +01:00
Jasmin Bom
7fcbfc19f5
Mark location sending test as xfail as it seems to fail randomly
2019-02-08 20:22:44 +01:00
Jasmin Bom
a60c07f549
Update test animation size
...
Telegram must've again chagned internal stuff
2019-02-08 20:21:24 +01:00
Jasmin Bom
1b52e6148e
Merge branch 'master' into V12
2019-02-08 12:49:28 +01:00
Ambro
487bce18dd
Improve regex filter docstring and avoid compiling compiled regex ( #1314 )
...
* Improve regex docstring and add test case
* Add Ambro17 as contributor
* rename regex filter
* Fix sphinx documentation for Filters.regex
* Add spacing to render Note with blue background
2019-02-08 11:12:49 +01:00
Gregory Petukhov
5c45e469d5
Fix #1335 : Message.MESSAGE_TYPES does not contain "left_chat_member" ( #1336 )
2019-02-08 11:02:54 +01:00
Jasmin Bom
25e5449e97
Fix TestDispatcher::test_error_handler using pytest >= 4.0
2019-01-30 20:56:15 +01:00
Jasmin Bom
a8bade4d73
Fix a bunch of tests
...
Looks like it's once again time for: Telegram changed some weird internal stuff and how thumbnails take up either 4 times as much space or half as much space. Oh and they also seemingly randomized the width and height of said thumbnails....
2019-01-30 20:40:53 +01:00
Jasmin Bom
e08afe7fb2
Fix flake8 errors that only show in CI??
2019-01-30 20:20:35 +01:00
Jasmin Bom
9817310788
Reflow docstrings in replykeyboardmarkup to satisfy flake8
2019-01-30 19:50:33 +01:00
Jasmin Bom
ed33c4a7a9
Merge remote-tracking branch 'origin/master'
2019-01-30 19:45:37 +01:00
Jasmin Bom
1ee53e9e17
Updating the pylint that pre-commit uses
...
Fixes #1321
2019-01-30 19:42:57 +01:00
Gregory Petukhov
3e8d71582d
Fix #1328 : custom timeout argument does not work ( #1330 )
...
* Fix #1328 : custom timeout argument does not work
* Remove unused import
2019-01-30 19:38:15 +01:00
Tanuj
c03160c07f
Add convenience classmethods for InlineKeyboardMarkup ( fixes #1186 ) ( #1260 )
...
* Add convenience classmethods for InlineKeyboardMarkup (#1186 )
* Switch to row and column methods
* Also add convenience classmethods for ReplyKeyboardMarkup
* Add some simple tests
2019-01-04 21:04:45 +01:00
Ambro
23fe991b85
Fix bug: unable to save jobs with timezone aware dates ( #1308 )
...
* Fix bug on jobs with timezone aware dates
* Add Ambro17 as colaborator
2019-01-04 20:29:07 +01:00
Bibo-Joshi
7eeb670a59
Fix check for effective chat/user in persistence ( #1303 )
2018-12-05 00:12:43 +01:00
Bibo-Joshi
f23298a13b
Fix typos in telegram/bot.py ( #1305 )
2018-12-04 15:06:48 +01:00
Konstantin Zemlyak
92f407bfb3
Update setup.py ( #1306 )
2018-12-04 15:06:22 +01:00
Steve Sandke
0cf0cccbc5
Fix description for JobQueue's run_daily and run_repeating methods. ( #1299 )
2018-11-22 13:03:58 +01:00
Jasmin Bom
378784f55e
Fix persistence with non telegram.Update updates ( #1271 )
...
* Allow persistence with no telegram.Update updates
For use with TypeHandler
* Add test
2018-11-09 11:44:20 +01:00
Pieter Schutz
384173115f
Merge branch 'master' into V12
2018-11-01 11:45:51 +01:00
Pieter Schutz
ea5b301b59
fix pre-commit hooks
2018-11-01 11:08:09 +01:00
Pieter Schutz
9b66681ee4
fix pre-commit hooks
2018-11-01 11:08:09 +01:00
Pieter Schutz
92e7427689
Merge remote-tracking branch 'origin/master'
2018-11-01 10:53:46 +01:00
Pieter Schutz
f82ceee777
Merge remote-tracking branch 'origin/master'
2018-11-01 10:53:46 +01:00
Pieter Schutz
d2e2fe9ccc
fix last flake8 errors
2018-11-01 10:52:36 +01:00
Pieter Schutz
76a72e9742
fix last flake8 errors
2018-11-01 10:52:36 +01:00
Noam Meltzer
cf69a234d4
fix accidental commit to submodule config
2018-11-01 11:25:52 +02:00
Noam Meltzer
eaf6dc2b88
fix accidental commit to submodule config
2018-11-01 11:25:52 +02:00
Noam Meltzer
9596343efd
pep8 fixes
2018-11-01 11:18:07 +02:00
Noam Meltzer
30cc0f8cf9
pep8 fixes
2018-11-01 11:18:07 +02:00
Pieter Schutz
f252436cd4
Merge remote-tracking branch 'origin/master' into V12
2018-11-01 09:32:55 +01:00
Jasmin Bom
c9630ee8c5
Add Conflict error (HTTP error code 409) ( #1154 )
...
* Add conflicting bot id to conflict error message.
* Add test and comment to conflict error
* Don't extract bot id in Conflict exception per PR comments
2018-10-29 22:08:52 +01:00
Eldinnie
9d99660ba9
Change MAX_CAPTION_LENGTH to 1024 ( #1262 )
...
* update MAX_CAPTION_LENGTH
Telegram silently changed the max length for captions to 1024 chars.
* Update test_constants.py
* change docstrings to reflect new length
* remove message
* clear message and proper match
2018-10-16 19:51:57 +02:00
Jasmin Bom
eca0ccf6b3
Update tests to support new test bots
2018-10-14 12:15:27 +02:00
Pavel Shakhov
9ece7fdb1c
Mistake in MessageQueue.__call__'s docstring ( #1249 )
2018-10-08 15:36:59 +02:00
Evan Haberecht
4861d1a20d
Removed unneccessary else and replaced with comment ( #1247 )
...
* Resolved issue #1163 : Removed unneccessary else and replaced with comment
* Added myself to AUTHORS.rst
2018-10-08 08:18:33 +02:00
simonvorobjev
dbf364e168
Allowed to use Handlers on conversation timeout ( #1217 )
...
* handler for ConversationHandler.END (timeout one) #1136
* review fixes
* review fixes
* review fixes
* review fixes
* docs and tests
* fixing stuff
* Fix problem
* fix conftest
* now it should work
* Add ConversationTimeoutContext
As discussed in the developers group. Use a class as the jobs context over using a dict.
* less verbosity
2018-10-04 08:58:40 +02:00
dbxnr
d6d0dec6e0
remove extra else clause ( #1239 )
...
Fix #1236
2018-10-02 11:29:30 +02:00
Eldinnie
0bbca65a95
add sleep to bailout error test ( #1241 )
...
Hopefully it won;t hit the race condition so often on appveyor
2018-10-02 09:00:38 +02:00
Holden Oullette
1d715f0d36
Removed empty quotes ( #1237 )
2018-10-01 23:29:46 +02:00
Eldinnie
f6f8667d6c
add codacy badge to readme ( #1232 )
2018-10-01 22:16:48 +02:00
Pieter Schutz
8731365911
Merge branch 'master' into V12
2018-10-01 21:12:21 +02:00
Jasmin Bom
d9ae4be2b3
Add 3.7 to travis and make pypy allowed_failures ( #1215 )
...
* Add 3.7 to travis build matrix using workaround
See https://github.com/travis-ci/travis-ci/issues/9815 for workaround discussion
* Add 3.7 to pypi classifiers
* Format build matrix differently
* Try adding pypy6.0.0 to travis build matrix
* Add py3.7 to appveyor
* Try pypy 5.10.1 instead
6.0.0 isn't on travis yet: https://github.com/travis-ci/travis-ci/issues/9542
* pypy2-5.10.0 isn't on travis yet either...
* allow failures on travis pypy
2018-10-01 20:50:44 +02:00
Pieter Schutz
b5a3d7852a
try to make ci build version branches
2018-10-01 11:48:10 +02:00
Pieter Schutz
3d8ab23d66
try to make ci build version branches
2018-10-01 11:46:48 +02:00
Pieter Schutz
6c36316aed
Change yamls to build v12 on travis an appveyor
2018-10-01 10:25:06 +02:00
Jasmin Bom
4c66ba3a8d
Allow filenames without dots in them when sending files ( #1228 )
...
* Fix issue 1227 by allowing filenames without dots in them
* Touch new test data file
* Satisfy flake8
2018-09-30 12:07:17 +02:00
reablaz
c714a177d1
Update data.py to be compatible with example ( #1213 )
...
* Update data.py to be compatible with example
for now, if you process personal_info with example code, then you got an error if there is no set option to get native fist and last name.
setting default value will allow to process personal_info without native name/surname transation
* fixing line length
i hope i understood right this. sorry for delay, just starting using github!
2018-09-26 15:46:25 +02:00
Ehsan
3829666a53
add text mention for message parse ( #1206 )
...
* add text mention for message parse
* add author
* Update .gitignore
2018-09-25 20:07:55 +02:00
Pieter Schutz
9c1b493f37
Make persistence example context-based
2018-09-21 13:57:44 +02:00
Pieter Schutz
af2d716129
Fix test_persistence
...
* To work with new CommandHandler
* To make tests context-based
2018-09-21 13:57:36 +02:00
Jasmin Bom
5252a493cb
Pass check result into handle_update
...
Missed during merge
2018-09-21 09:20:35 +02:00
Jasmin Bom
e75615cbf6
Revert "Revert "CommandHandler overhaul and PrefixHandler added ( #1114 )""
...
This reverts commit 9e2357b
2018-09-21 08:57:43 +02:00
Jasmin Bom
cf95027308
Revert "Revert "Context based callbacks ( #1100 )""
...
This reverts commit f8a17cd
2018-09-21 08:57:01 +02:00
Eldinnie
439790375e
Persistence ( #1017 )
...
* BasePersistence
* basic construct
* Keep working
* Continue work
Add tests for Basepersistence
* Finish up BasePersistence and implementation
* PickelPersistence and start tests
* Finishing up
* Oops, left in some typings
* Compatibilty issues regarding py2 solved
For Py2 compatibility
* increasing coverage
* Small changes due to CR
* All persistence tests in one file
* add DictPersistence
* Last changes per CR
* forgot change
* changes per CR
* call update_* only with relevant data
As discussed with @jsmnbom
* Add conversationbot Example
* should not have committed API-key
2018-09-20 22:50:40 +02:00
Marcelo G. de Andrade
b9f56ca479
fixes comment on examples/conversationbot2.py ( #1216 )
2018-09-12 21:27:35 +02:00
Jasmin Bom
e247fa7c2c
Fix uploading files with unicode filenames ( #1214 )
...
* Patch urllib3RequestField to make it *not* support RFC2231
* Add new required test data file
* Fix on py2
* Remove weird legacy code from inputfile
Not needed anymore, and also makes it not work... so that was not great
2018-09-10 21:08:05 +02:00
Kirill Vasin
b8c288ff4a
Make ConversationHandler and run_async work together properly ( #1176 )
...
* #1175
* fix issue with timeout
* exception in promise resolve is treated as None result
* removed useless variables
2018-09-10 20:05:45 +02:00
Jasmin Bom
bbe633e571
Remove GAE support message
...
We still kinda support it, but not more so than other providers.
2018-09-10 15:58:25 +02:00
Kirill Vasin
f2b06728e9
Replace http.server with Tornado ( #1191 )
...
Fixes #1189
2018-09-08 23:25:48 +03:00
Jasmin Bom
b2fb4264a3
Small test fixes to make them more stable on travis CI
2018-09-07 16:07:27 +02:00
Noam Meltzer
19591c955a
Allow SOCKSConnection to parse username and password from URL ( #1211 )
2018-09-07 15:21:01 +02:00
Jasmin Bom
259a1faedc
Releasing v11.1
2018-09-01 17:27:35 +02:00
Jasmin Bom
09bdb88822
Bot api 4.1 ( #1198 )
...
* Fix passport decryption failing at random times
Sometimes a decrypted secret was being treated as b64 and therefore got decoded even further. Fix by decoding b64 right before call to decrypt so we have better control of when not to do it
* Bot api 4.1
Telegram passport 1.1
Added support for middle names.
Added support for translations for documents
Add errors for translations for documents
Added support for requesting names in the language of the user's country of residence
Replaced the payload parameter with the new parameter nonce
NOTE: Scope stuff is NOT implemented, as we wanna STRONGLY encourage users to use the telegram provided SDKs anyway (and not generate telegram auth links in their bot, but rather on a server)
* Minor fixes
* Add hash to EncryptedPassportElement
For use with PassportElementErrorUnspecified apparently
2018-09-01 16:58:08 +02:00
Jasmin Bom
937be3d2e8
Use a dual license file until we can add two files.
2018-08-29 15:49:52 +02:00
Jasmin Bom
aa3ebb1180
Add LICENSE.lesser as wheel license
...
Really we need both the LICENSE and LICENSE.lesser, but we can't until wheel releases a build with https://github.com/pypa/wheel/commit/59976ab294e1b118f42cab404d95df66ed55f7e4 merged.
2018-08-29 15:39:44 +02:00
Jasmin Bom
4473d620de
Prepare for 11.0.0 release
2018-08-29 15:21:02 +02:00
Eldinnie
4689a80c2e
Bot API 4.0 ( #1168 )
...
Telegram Passport (#1174 ):
- Add full support for telegram passport.
- New types: PassportData, PassportFile, EncryptedPassportElement, EncryptedCredentials, PassportElementError, PassportElementErrorDataField, PassportElementErrorFrontSide, PassportElementErrorReverseSide, PassportElementErrorSelfie, PassportElementErrorFile and PassportElementErrorFiles.
- New bot method: set_passport_data_errors
- New filter: Filters.passport_data
- Field passport_data field on Message
- PassportData is automagically decrypted when you specify your private key when creating Updater or Bot.
- PassportFiles is also automagically decrypted as you download/retrieve them.
- See new passportbot.py example for details on how to use, or go to our telegram passport wiki page for more info
- NOTE: Passport decryption requires new dependency `cryptography`.
Inputfile rework (#1184 ):
- Change how Inputfile is handled internally
- This allows support for specifying the thumbnails of photos and videos using the thumb= argument in the different send_ methods.
- Also allows Bot.send_media_group to actually finally send more than one media.
- Add thumb to Audio, Video and Videonote
- Add Bot.edit_message_media together with InputMediaAnimation, InputMediaAudio, and inputMediaDocument.
Other Bot API 4.0 changes:
- Add forusquare_type to Venue, InlineQueryResultVenue, InputVenueMessageContent, and Bot.send_venue. (#1170 )
- Add vCard support by adding vcard field to Contact, InlineQueryResultContact, InputContactMessageContent, and Bot.send_contact. (#1166 )
- Support new message entities: CASHTAG and PHONE_NUMBER. (#1179 )
- Cashtag seems to be things like $USD and $GBP, but it seems telegram doesn't currently send them to bots.
- Phone number also seems to have limited support for now
- Add Bot.send_animation, add width, height, and duration to Animation, and add Filters.animation. (#1172 )
Co-authored-by: Jasmin Bom <jsmnbom@gmail.com >
Co-authored-by: code1mountain <32801117+code1mountain@users.noreply.github.com >
Co-authored-by: Eldinnie <pieter.schutz+github@gmail.com >
Co-authored-by: mathefreak1 <mathefreak@hi2.in >
2018-08-29 14:18:58 +02:00
Jannes Höke
353410242f
🐛 Use '==' operator for integer comparison ( #1147 )
2018-08-26 20:39:19 +02:00
Dmitry Grigoryev
8acff56145
Fix Filters.regex failing on non-text message ( #1158 )
...
* Fix #1115
* Improve regex filter test
2018-08-26 20:39:01 +02:00
Jasmin Bom
d4b5bd40a5
Update AUTHORS.rst
...
Name change, plus adding @eldinnie and I to maintainers.
2018-06-26 19:51:45 +02:00
Marcos Del Sol Vives
d2059ed184
Fix ProcessLookupError if process finishes before we kill it ( #1126 )
2018-06-01 23:27:09 +03:00
Jacob Bom
f8a17cddcb
Revert "Context based callbacks ( #1100 )"
...
This reverts commit 247577b2e2 .
2018-05-31 14:22:57 +02:00
Eldinnie
9e2357bc33
Revert "CommandHandler overhaul and PrefixHandler added ( #1114 )"
...
This reverts commit 87afd98e02 .
2018-05-31 14:22:43 +02:00
Eldinnie
42daf96d20
mention_markdown/html py2 fixes + unitests ( #1112 )
...
Fixes #1108
2018-05-28 23:51:39 +03:00
Eldinnie
87afd98e02
CommandHandler overhaul and PrefixHandler added ( #1114 )
...
* Commandhandler reworked
* Make CommandHandler strict
Only register valid botcommands, else raise ValueError
* Add PrefixHandler
* declare encoding on test_commandhandler
* Fix some tests dependend on CommandHandler
* CR changes
* small docfix.
* Test all possibilities for PrefixHandler
2018-05-22 21:44:20 +02:00
Jacob Bom
247577b2e2
Context based callbacks ( #1100 )
...
See https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-11.0 under Context based callbacks and Filters in handlers for a good guide on the changes in this commit.
* Change handlers so context is supported
* Attempt to make parameter "guessing" work on py < 3.5
* Document use_context in all handlers
* Add Context to docs
* Minor fixes to context handling
* Add tests for context stuff
* Allow the signature check to work on py<3.5 with methods
* Fix order of operations
* Address most issues raised in CR
* Make CommandHandler no longer support filter lists
* Fix indent
(pycharm can be an arse sometimes)
* Improve readability in conversationhandler
* Make context have Match instead of groups & groupdict
* Remove filter list support from messagehandler too
* Small fix to StringCommandHandler
* More small fixes to handlers
* Amend CHANGES
* Fix tests and fix bugs raised by tests
* Don't allow users to ignore errors without messing with the warning filters themselves
* Ignore our own deprecation warnings when testing
* Skipping deprecationwarning test on py2
* Forgot some changes
* Handler: Improved documentation and text of deprecation warnings
* HandlerContext: Keep only dispatcher and use properties; improved doc
* Complete fixing the documentation.
- Fixes per Eldinnie's comments.
- Fixes per warnings when running sphinx.
* Some small doc fixes (interlinks and optionals)
* Change add_error_handler to use HandlerContext too
* More context based changes
Context Based Handlers -> Context Based Callbacks
No longer use_context args on every single Handler
Instead set dispatcher/updater .use_context=True to use
Works with
- Handler callbacks
- Error handler callbacks
- Job callbacks
Change examples to context based callbacks so new users are not confused
Rename and move the context object from Handlers.HandlerContext to CallbackContext, since it doesn't only apply to handlers anymore.
Fix tests by adding a new fixture `cpd` which is a dispatcher with use_context=True
* Forgot about conversationhandler
* Forgot jobqueue
* Add tests for callbackcontext & for context based callback job
* Fix as per review :)
2018-05-21 15:00:47 +02:00
Trainer Jono
94abf16a7f
Add t.me links for User, Chat and Message if available and update User.mention_* ( #1092 )
...
* Add User.link and update User.mention_*
* Add Chat.link
* Add Message.link
* Link returns None on default
* Add test link
2018-05-09 11:42:12 +02:00
Eldinnie
3d8abc184a
Add 3.7-dev to travis ( #1106 )
2018-05-08 15:51:56 +03:00
Eldinnie
efbd951b74
Remove wheel from yamls
2018-05-05 17:28:07 +02:00
Noam Meltzer
3ff4cc4445
requirements-dev.txt: Added missing 'wheel' package
...
Without it we can't run 'setup.py bdist_wheel'
2018-05-05 00:47:34 +03:00
Noam Meltzer
32afc007aa
Bump version to v10.1.0
2018-05-05 00:37:13 +03:00
Noam Meltzer
c758c19ef4
bot.py: Remove an inaccurate note from docstring
2018-05-05 00:22:23 +03:00
Eldinnie
3bef2fa752
Updating sphinx to py3 ( #1096 )
...
* Use python 3 on read the docs
This has multiple improvements on the inspection of classes. Mainly that method signatures propely display the arguments for the method.
* Add note to telegram.Bot about camelCase
Switching to py3 means that the camelCase method descriptors will no longer be displayed in the docs. Adding a note to Bot to clarify they exist.
* Add Alias links for all camelCase
2018-05-03 15:34:50 +02:00
Jacob Bom
b4cabecca2
Remove pytest-catchlog from requirements ( #1099 )
2018-05-03 16:28:57 +03:00
Noam Meltzer
0a8abccc78
InputFile: Fix proper naming of file when reading from subprocess.PIPE ( #1079 )
2018-05-03 00:17:54 +03:00
Igor Strebezhev
5ff34fc0ba
Fix send_sticker() timeout=20 ( #1088 )
...
Documentation was correct. Code wasn't.
2018-05-01 22:48:31 +03:00
Trainer Jono
78fee3c1dc
Fixed docstring of {User,Chat}.send_* methods ( #1081 )
...
* Changed all "User.chat_id"s to "User.id"
* Chat.chat_id --> Chat.id
2018-04-25 23:21:11 +03:00
Noam Meltzer
38d6f4d9f2
Inputfile encode filenames ( #1086 )
...
* Unitest to recreate issue #1083
* InputFile: Encode unicode filenames
Fixes #1083
2018-04-25 23:13:00 +03:00
Noam Meltzer
1ec12343f0
Add urllib3 fix for socks5h support ( #1085 )
...
FIxes #1077
Changes semantics of socks proxy behaviour.
Until now - socks5:// was actually socs5h:// and we didn't really have socks5://
2018-04-25 21:23:48 +03:00
Paul Larsen
b5196f00b2
Add a caption_entity filter for filtering caption entities ( #1068 )
...
* Add a caption_entity filter for filtering caption entities
* remove unneeded list comprehensions
2018-04-20 13:24:40 +02:00
Noam Meltzer
39c679e519
Update all appveyor links in README
2018-04-19 16:56:12 +03:00
Noam Meltzer
7a6d2be101
README fixes ( #1078 )
...
* Link for the group on the README top
* Fix widget to appveyor build
2018-04-19 16:52:38 +03:00
Dillon Flamand
ef74c525b2
Simplify sentence in examples/README.md ( #1061 )
2018-04-19 15:20:16 +03:00
Pieter Schutz
6d453b7fa2
Bump to v10.0.2
2018-04-17 09:07:19 +02:00
Rahiel Kasim
716f52684f
pypi.python.org -> pypi.org ( #1059 )
2018-04-17 07:45:05 +03:00
Joel Williams
42497367c1
Correct documentation of Dispatcher.add_handler ( #1071 )
2018-04-17 07:42:09 +03:00
Jannes Höke
b77b329dd6
Handle utf8 decoding errors ( #1076 )
2018-04-17 07:40:02 +03:00
Wagner Macedo
5efd5e2586
CommandHandler faster check ( #1074 )
...
Fixes #1073
2018-04-17 07:37:29 +03:00
Daniel Reed
cbfb7df643
Explicitly make Bot.full_name return a unicode object, rather than implicitly a unicode object in Python 3 and a str object on Python 2. ( #1063 )
2018-04-16 10:37:41 +02:00
Or Bin
712baf0c07
Added video note filter ( #1067 )
2018-04-14 21:53:54 +02:00
Eldinnie
59659eaf5e
Update README.rst
2018-04-09 21:30:37 +02:00
Emilio Molinari
3ccf40e8cc
Make chat_id a positional argument inside shortcut methods of Chat and User classes #1048 ( #1050 )
...
* Make chat_id a positional argument #1048
* Fixed tests
2018-03-17 00:10:11 +01:00
Jannik
38e3b91a87
Filters for Category and file types ( #1046 )
...
* Added extra Filters for File Type and Category
Added extra Filters for File Type and Category, based on the provided Mime-Type
* Added tests for the new Filters
Added Tests for the Category and File Types Filters.
* Fixed Tests
Fixed the Tests from the last commit
* Little Fix
* Revert of unwanted changes
* Update filters.py
* Changed the strings
* Changed file_type to mime_type
* Fixed Tests
2018-03-16 23:41:48 +01:00
Eldinnie
e182046376
Fix in telegram.Message ( #1042 )
...
* Fix in telegram.Message
The `_parse_(html|markdown)` methods now properly return `None` on an empty `Message.text` or an empty `Message.caption`
* As per CR
2018-03-16 21:42:39 +01:00
Joscha Götzer
1530ed20e5
New filter: regex ( #1028 )
2018-03-15 06:59:27 +02:00
Eldinnie
2b221da9b9
extra whitespace needed on header
2018-03-05 13:57:21 +01:00
Pieter Schutz
d9f77d6ee1
Bump to v10.0.1
2018-03-05 12:46:19 +01:00
Eldinnie
698a91427a
Fix conversationhandler timeout ( #1032 )
...
* Fix conversationhandler
As found by @nmlorg and described in #1031
closes #1031
* adding another test and definitely finish conversationhandler
It seems another problem was when the job executed the timeout, it wasn;t removed from `self.conversation_timeouts` which made it still fail because job would be present in the handler dict, although it was already disabled.
This should fix it properly.
2018-03-05 12:18:40 +01:00
Jannes Höke
5956aae235
Add missing docs utils ( #912 )
...
* add documentation for telegram.utils.promise and .request
* improve documentation for telegram.utils.promise and .request
* add missing 's' to new_chat_member(s) in all docstrings
* fix docs for `set_chat_photo`
[CI skip]
2018-03-05 12:17:56 +01:00
Noam Meltzer
0811f566a2
Bump version to v10.0.0
...
[ci skip]
2018-03-03 01:23:08 +02:00
Noam Meltzer
69acd2b3bd
Fix documentation build to include CHANGES.rst
...
Use forward slashes instead of the Windows backward slashes.
2018-03-03 01:23:08 +02:00
Noam Meltzer
a6bf456645
Updater improvements ( #1018 )
...
- Refactor bootstrap phase to be resilient for network errors
- Retry bootstrap phase indefinitely (by default) on network errors
- Improved logs
- Improved unitests for polling updater
fixes #605
2018-03-02 23:11:16 +02:00
Evgen
811369d1a0
Added conversation timeout in ConversationHandler ( #895 )
2018-03-01 11:34:47 +02:00
Paul Larsen
b67ea7a691
CommandHandler - ignore strings in entities and "/" followed by whitespace ( #1020 )
2018-03-01 10:11:16 +02:00
Noam Meltzer
f6332d45a8
Improved File.download ( #1019 )
...
- File.download_as_bytearray - new method to get a d/led file as bytearray
This is much more convenient and straight forward than using a file
object.
- File.download(): Now returns a meaningful return value
- File.download*(): New and/or better unitests
2018-03-01 10:10:04 +02:00
Eldinnie
b275031a16
Add Message caption html/markdown methods ( #1013 )
...
Closes #1010
2018-02-22 17:38:54 +02:00
Eldinnie
a9a503b9c3
Increase timeouts on creation of fixtures in tests ( #1015 )
2018-02-22 15:13:57 +02:00
Noam Meltzer
3762792cca
Remove deprecated code ( #1012 )
...
* JobQueue: Remove deprecated prevent_autostart & put()
* Bot, Updater: Remove deprecated network_delay
* Remove deprecated Message.new_chat_member
closes #795
2018-02-22 14:17:06 +02:00
Eldinnie
36a93e0636
remove codeclimate ( #1014 )
...
* remove codeclimate
* Remove codecov PR comments
2018-02-19 21:30:28 +01:00
Noam Meltzer
baec1bb554
flake8 revamp
...
- Use pre-commit v1.2.0 flake8
- Make sure we're running flake8 on examples and tests
- Fix what had to be fixed
2018-02-19 12:41:38 +02:00
Noam Meltzer
746ae0caf3
Get jobs by name ( #1011 )
2018-02-19 10:36:40 +02:00
Eldinnie
0bed087542
remove unnecessary to_dict() ( #834 )
...
We have some objects that have exactly the same to_dict() method, only specifying that `from_user` should be `from` in the `data`-dict. I refractored this logic to `TelegramObject` and removed those to_dicts() from the code.
2018-02-19 10:31:38 +02:00
Unknown
efea0361c5
Fix attribute order error
2018-02-18 18:12:08 +01:00
Noam Meltzer
91ae35e26c
updater.py: Better handling of timeouts during getUpdates ( #1007 )
...
TimedOut exception is an expected an normal event. To reduce noise and
make things more "fluent" we now:
- Make sure that we don't sleep after the timeout but rather retry
immediately.
- Log debug instead of error level.
Fixes #802
2018-02-18 17:50:38 +02:00
Jacob Bom
ebcc40ae92
More instance methods ( #963 )
...
* Bot.get_file now allows passing a file in addition to file_id
* Add .get_file() to Audio, Document, PhotoSize, Sticker, Video, VideoNote and Voice
* Add .send_*() methods to User and Chat
2018-02-18 17:49:52 +02:00
Noam Meltzer
dcb510e62c
travis.yml: Removed pypy3.5
...
Travis keeps failing on weird INTERNAL ERROR messages and it just fails
the build. I don't see any other choice but to disable pypy3.5 tests.
2018-02-18 17:41:45 +02:00
Jannik
c152d6583e
Support v3.6 API ( #1006 )
...
* Added support for new field `telegram.Message.connected_message`
* Added support for new field `telegram.Message.connected_message`
* Added support for parse_mode in captions
* Added parse_mode parameter for captions in InlineQueryResult*
* Added supports_streaming parameter in telegram.Bot.send_video and telegram.InputMediaVideo
Fixed Docstrings for parse_mode in captions
* pypy3.5 unitests are now running with a new version due internal errors on travis.
closes #1005
2018-02-18 17:11:04 +02:00
Joscha Götzer
9338dc4697
Added utils.helpers.effective_message_type ( #826 )
2018-02-15 11:21:19 +02:00
Daniel Reed
063704c0b9
Explicitly check update.effective_chat in ConversationHandler.check_update ( #959 )
...
Fixes #927
2018-02-12 16:09:51 +02:00
Oleg
62e76f1fba
bot.py: Add shortcut method reply_media_group ( #994 )
...
fixes #936
2018-02-12 15:51:18 +02:00
Joscha Götzer
f0dfdfb203
bot.py: Add shortcut methods reply_{markdown,html} ( #827 )
2018-02-12 15:39:46 +02:00
Willem
c19e464324
README.md: Fixed link to paymentbot example ( #983 )
...
[ci skip]
2018-02-12 15:32:35 +02:00
Eldinnie
d5c9212f2e
Add two arguments to send_invoice ( #986 )
...
Telegram silently added `send_phone_number_to_provider` and `send_email_to_provider` to the send_invoice method.
2018-02-10 17:54:09 +02:00
Noam Meltzer
8690ba256e
webhookhandler: Fix exception thrown during error handling ( #985 )
...
BaseServer.handle_error() default behaviour is to print to stdout or
stderr (depends on the python version). In case that the file descriptor
is closed an additional exception will be raised, causing the webhook
thread to quit.
Fixes #970
2018-01-25 10:42:48 +02:00
Noam Meltzer
d6b47da593
Update code of conduct ( #980 )
...
* Update code of conduct
* fix typo [ci skip]
* remove ending periods [ci skip]
2018-01-20 18:17:06 +01:00
Noam Meltzer
ddf3a1fcad
jobqueue: Thread safety fixes ( #977 )
...
- Fix JobQueue.jobs to obtain a lock on the internal queue object prior
to iterating over it.
- Rename JobQueue.queue to JobQueue._queue. This shouldn't be
accessible by the user directly, but rather only with sanitized
thread safe methods.
- JobQueue.interval_seconds - access self.interval only once to avoid
race conditions.
Fixes #968
2018-01-20 15:27:01 +02:00
Eldinnie
820f4e1d59
Fix user profile photo unitests ( #967 )
...
Telegram changed something again.
2018-01-09 17:56:43 +02:00
Mischa Krüger
eb67c039f1
Updater: Issue INFO log upon received signal ( #951 )
...
Fixes #946
2018-01-09 17:54:07 +02:00
Jacob Bom
2ca7ff82ef
Update headers to 2018 ( #962 )
...
Also add two missing headers.
[ci skip]
2018-01-04 17:16:06 +02:00
Noam Meltzer
a2c04313d3
Fix documentation & coding style of User.name & User.full_name ( #956 )
...
- Use string `format` instead of dict comprehension.
- Better documentation to signify the semantics difference between
`name` and `full_name`.
- Use string `format` instead of dict comprehension.
- Better documentation to signify the semantics difference between
`name` and `full_name`.
* Removed the NOTE and mentinoed the "@" prefix.
2017-12-30 22:58:32 +02:00
Eldinnie
0faa19726a
wrong link to paymentbot ( #942 )
...
[CI skip]
2017-12-30 15:17:36 +02:00
graynk
d347c0d45e
User.full_name convinience property ( #949 )
...
Fixes #943
2017-12-30 15:13:06 +02:00
Daniel Reed
5c8470e552
Store bot in PreCheckoutQuery ( #953 )
...
Fixes #937
2017-12-30 14:48:38 +02:00
Eldin
3d4e0500bf
Bump to 9.0.0 + changelog
2017-12-08 23:08:42 +01:00
Eldinnie
042d4bb2a4
add support for 3.5 api ( #920 )
...
* add support for 3.5 api
* removed "unused" import by accident
* Hardcoded values
Appearantly TG decided to change the size of a send image (again)
* test_official
* Improve coverage
* Finishing up
* spelling error
* pytest fixed tot < than 3.3 for python 3.3 support
* flake8
* rollback requirements
* as per CR
* object for provider_data
Make it possible to send an object that will be json-serialized for send_invoice + tests
* shorten error message
* using string_types
2017-12-08 22:38:59 +01:00
Eldinnie
1e22d570a3
Drop 3.3 from support ( #930 )
...
* Remove 3.3 from testsuite and setup.py
* add changelog to the docs
[CI skip]
2017-12-08 22:38:23 +01:00
Jacob Bom
2719c54899
Small changes to the examples readme ( #893 )
...
- Add paymentbot.py
- More docs links
2017-12-06 13:26:51 +01:00
Erjan Kalybek
a5c8e98ee7
Fix sendPhoto method description ( #919 )
2017-12-06 13:24:34 +01:00
Eldinnie
40113bb3ad
make codecov less aggressive ( #929 )
...
[CI skip]
2017-12-06 13:23:49 +01:00
Eldinnie
e8fac19de3
codecov tweaking ( #897 )
...
Reduces the size and amount of info from the codecov bot on PR
2017-11-07 14:33:24 +01:00
Jacob Bom
820ae3b7d6
Create CODE_OF_CONDUCT.md ( #892 )
2017-10-26 19:57:38 +02:00
Noam Meltzer
4b3315db6f
Fix race condition in dispatcher start/stop ( #887 )
...
fixes #881
2017-10-21 14:40:24 +03:00
Jannes Höke
3ed05991ad
log error trace if there is no error handler registered ( #694 )
2017-10-21 12:35:11 +03:00
Simon Schürrle
38637ecf62
Update examples with consistent string formatting ( #870 )
...
* Use the modern string.format().
* Wherever logging is involved, let logging take care of the expansion.
2017-10-20 21:24:00 +03:00
Simon Schürrle
bb5357a815
Fix typo in the docstring ( #878 )
...
Changed `Filters.status_update.new_chat_member` to `Filters.status_update.new_chat_members`
Thanks to @ajbvn for pointing it out.
[ci skip]
2017-10-18 22:00:17 +03:00
Rahiel Kasim
f55018abd9
CHANGES.rst: fix some typo's ( #874 )
2017-10-15 16:59:41 +02:00
Jacob Bom
8df35fd53b
Fix for crashes on 8.1 ( #873 )
...
* Make Commandhandler not crash on single char messages
* Bump release and update CHANGES.rst for 8.1.1
* No error on single / and test
2017-10-15 16:59:10 +02:00
Noam Meltzer
23774383dc
Bump version & update CHANGES.rst for 8.1.0 release
2017-10-15 00:04:35 +03:00
Eldinnie
28680ac1d5
edited_updates also for channel_posts ( #832 )
2017-10-14 23:48:06 +03:00
Jannes Höke
ec9b16ac7b
Fix command not recognized if it is directly followed by a newline ( #869 )
...
fixes #868
2017-10-14 21:04:02 +03:00
Eldinnie
bfad2fa1f3
support 3.4 API ( #865 )
2017-10-14 21:03:02 +03:00
Noam Meltzer
8a8b1215c8
Fix documentation of Request object initialization (for advanced users) ( #866 )
...
fixes #676
2017-10-12 00:39:09 +03:00
Eldinnie
2aa456d637
remove Bot._message_wrapper ( #822 )
...
Moved tho code to the @message decorator instead
fixes #752
2017-10-11 23:38:00 +03:00
Jannes Höke
445bcde686
Update README.rst
2017-10-10 13:09:11 +02:00
Rahiel Kasim
6facde9534
README: show AppVeyor logo in badge ( #861 )
2017-10-09 15:23:59 +02:00
Rahiel Kasim
046ec28361
README: add AppVeyor badge ( closes #591 ) ( #856 )
2017-10-07 18:36:31 +02:00
Eldinnie
3d00ae25df
Update .codeclimate.yml
...
Last edit :S
2017-09-25 21:42:17 +02:00
Eldinnie
aeedcfb874
Update .codeclimate.yml
2017-09-25 21:38:47 +02:00
Eldinnie
6d7a61ae72
mistake in codeclimate
2017-09-25 21:37:53 +02:00
Eldinnie
d75e0f6014
Stabilize Coverage ( #846 )
...
* test_error added
* ignore unstables for coverage
2017-09-25 20:58:10 +02:00
Jeff
dbb3b16edc
Add Job Class to docs ( #845 )
...
* fix job class missing from docs
* fix typo
2017-09-25 20:57:53 +02:00
Eldinnie
7c3bba42cc
loosen codeclimate ( #833 )
...
Codeclimate's defaults are pretty strict. Our complexity is High for objects and bot methods so I decreased the RADON-setting to be a bit more forgiving.
Secondly I removed the warning for `similar` code leaving only `duplicate` code.
2017-09-25 20:57:06 +02:00
Eldinnie
8754980448
add utils.helpers to docs ( #828 )
2017-09-25 20:56:28 +02:00
Jeff
5614af1847
Docstring Fix for ext/filters.py ( #830 )
2017-09-15 23:56:16 +02:00
Marco Túlio Zuquim
e362a5b59d
Small documentation fix in user.py ( #829 )
2017-09-15 23:55:35 +02:00
Eldinnie
dd20237f55
Enable appveyor ( #823 )
...
* modify tests and appveyor.yml
* modify test_meta
* Add pytest-cov to requirements
* appveyor.yaml adjustment
* another try
* oops
* skipping jobqueue tests on appveyor
appveyor is terrible at precise timings.
* adding reasons to skips
* modify test_official
* coverage trouble
* Make it look good
* appveyor.yml
* codecov flags
* oops
* update appveyor.yml
* shorten decorators
* removed redundant quotes
2017-09-14 17:54:00 +02:00
Eldinnie
c5ab8930b9
Update appveyor.yml
...
small update
2017-09-09 23:53:49 +02:00
Jacob Bom
f5b746f1ba
Switch to codecov ( #819 )
...
* Switch to codecov
We've talked about it in the dev group for a while now, finally doing it
* Update coverage in readme
[ci skip]
2017-09-09 23:38:19 +02:00
Eldinnie
4fe4eea893
only run coverage for relevant test ( #818 )
...
* fix test troubles
* another try
* testing travis build?
* trying pytestmark
2017-09-09 23:37:07 +02:00
Yii Kuo Chong
e39b6abe61
Small documentation fix ( #815 )
...
Fixes #799
2017-09-07 22:55:06 +03:00
Pieter Schutz
6012fa65c1
Bump to version 8.0
2017-09-01 10:38:15 +02:00
Pieter Schutz
ef9dbacf7e
Fix last issues for new release
2017-09-01 10:38:04 +02:00
Eldinnie
e13cd58773
Fix sticker tests ( #807 )
...
* Fix sticker tests
Added flaky, timeout and xfails to the stickerset bot method tests.
* Make sure the first stickersettest worked before modifying in test 2
* some mor changes to make the deletion more stable
2017-09-01 08:47:34 +02:00
Jannes Höke
1f5311b473
catch exceptions in error handlerfor errors that happen during polling (2) ( #810 )
...
* catch exceptions in error handlerfor errors that happen during polling
* add tests for error handlers that raise exceptions
2017-09-01 08:46:21 +02:00
Eldinnie
eae139d3e9
remove de_json() ( #789 )
...
* remove de_json()
* Remove or rename obsolete tests
* fixes according to rc
2017-09-01 08:45:22 +02:00
Eldinnie
160ffed5ad
Remove Botan ( #776 )
2017-09-01 08:45:01 +02:00
Jacob Bom
8cda3f7a71
Turn on branch coverage ( #790 )
...
* Run pre commit hook tests on all platforms TEMPORARILY
* Use os.system instead of subprocess.call
* Turn on branch coverage
* Let's try this then
* More testing!
* Update test_meta.py
2017-09-01 08:44:45 +02:00
Jacob Bom
d7929a8de4
Test UserProfilePhotos ( #796 )
2017-09-01 08:44:26 +02:00
Noam Meltzer
e018445513
Documentation update to PEP ( #797 )
2017-09-01 08:43:08 +02:00
Eldinnie
4601eedf0f
Show status_updates in docs ( #798 )
...
* Show status_updates in docs
* Show status_updates in docs
2017-09-01 08:41:15 +02:00
Eldinnie
6cd0c14c02
Show what parameter/attribute is missing in test_offical ( #808 )
...
* Show what parameter/attribute is missing in test_offical
* Only run test_official on py3.6
Down from 3.5 and 3.6
2017-09-01 08:40:52 +02:00
Jeff
b6a0853896
Add Bot API 3.3 ( #806 )
...
* Bot API 3.3
* simpler helper methods (accept only custom names now)
attempt to fix circular import (not sure if its the correct way tho)
added helper methods into User object
* fix User objects in tests to contain is_bot required value
* fix User objects in tests to contain is_bot required value
* delete extra line that caused flake8 error
* fix swapped arguments
2017-09-01 08:40:05 +02:00
Noam Meltzer
16a49ec659
Remove DispatcherHandlerContinue + more unitests for dispatcher ( #792 )
...
The idea was nice, but it really complicated things for us and for the
user.
If a user wants to run more than one handler on an update, he can put
the handlers in different groups or he can have a single handler.
If a user wants to have multiple handlers in the same group which only
one of them should run on the update, he should use check_update().
Since we haven't released this code yet, there's no problem with
backward compatability.
2017-08-12 18:57:12 +03:00
Noam Meltzer
ee34d57521
Warn on small con_pool_size during custom initalization of Updater ( #793 )
...
fixes #787
2017-08-12 16:45:38 +03:00
Jacob Bom
5d7c6ad541
Switch to pytest + required fixes to code ( #788 )
...
Required fixes:
- CallbackQuery is now comparable.
- Message.effective_attachment, Message.photo,
Message.new_chat_members, Message.new_chat_photo &
Game.text_entitties semantic fixes - when they are not defined,
return an empty list.
- Docstring fix to Update class.
2017-08-12 00:58:41 +03:00
Noam Meltzer
915cd64140
Effective attachment ( #766 )
...
fixes #746
2017-08-08 00:25:19 +03:00
Eldinnie
56f7d18853
bot.py semantic fixes ( #774 )
...
offset for get_user_profile_photo can be zero.
edit_message_caption should raise ValueError in compliance with other methods. Also changed to snake_case
edit_message_reply_markup was even weirder
2017-08-08 00:13:32 +03:00
Eldinnie
b04869f36a
docstring correction ( #775 )
...
[ci skip]
2017-08-08 00:11:44 +03:00
Eldinnie
70057a67c5
Regression fix for text_html & text_markdown ( #777 )
...
`text_html` & `text_markdown` reverted to the old semantics - URLs are not converted to hyperlinks.
To get the new behaviour there are matching `text_html_urled` & `text_markdown_urled` properties.
fixes #773
2017-08-08 00:10:48 +03:00
Eldinnie
8d4b484f7b
Fix Game.to_dict() ( #767 )
...
`Game.to_dict()` fails if the `optional` parameter `test_entities` has it's default value `None`
This fixes that.
2017-08-05 00:02:51 +03:00
Jacob Bom
073bed3a01
Fix get_game_high_scores ( #771 )
2017-08-04 20:41:27 +03:00
Noam Meltzer
5ceb6f8f36
Docs fixes ( #765 )
...
* Clean warnings during build_sphinx
* fix documentation types
2017-08-02 05:56:07 +03:00
Ihor Polyakov
b6ef30a454
Authors list ( #758 )
2017-08-01 23:10:07 +03:00
Ihor Polyakov
1b515a16d6
CONTRIBUTING.rst: Note about git behaviour ( #763 )
2017-08-01 23:09:15 +03:00
Jacob Bom
b3069348ca
Add rich comparison to CallbackQuery ( #764 )
...
We currently have no tests for it. Noted for #756 and #757 .
2017-08-01 23:07:12 +03:00
Ihor Polyakov
454ab050c0
Decrease number of requests in tests ( #755 )
2017-08-01 00:16:44 +03:00
Eldinnie
d19ae5084a
Add RESTRICTED as constant to ChatMember ( #761 )
2017-07-31 23:37:00 +03:00
Ihor Polyakov
6aacde189e
Flow control ability in Dispatcher ( #738 )
...
fixes #666
2017-07-29 20:15:43 +03:00
Noam Meltzer
5d3f5575ab
Sane defaults for tcp socket options on linux ( #754 )
...
Currently only for linux as most of our userbase is there.
fixes #535
2017-07-29 14:30:27 +03:00
Noam Meltzer
13ab6d43d3
CHANGES.rst: Added 7.0.1 release notes.
...
[ci skip]
2017-07-28 21:22:48 +03:00
Eldinnie
2ba7505eaf
Fix TypeError exception in RegexHandler ( #751 )
...
fixes #750
2017-07-28 20:47:42 +03:00
Eldinnie
5ed06df840
callback query docstring ( #749 )
...
showed from instead of from_user and was missing the informational note about it.
[ci skip]
2017-07-28 17:41:25 +03:00
Noam Meltzer
eef1238d60
Comment out unitest test_send_contact_with_contact
...
Caused too many "RetryAfter: Flood control exceeded" errors.
[ci skip]
2017-07-28 17:39:21 +03:00
Noam Meltzer
2aae602082
CHANGES.rst: cosmetic fix
...
[ci skip]
2017-07-25 23:07:26 +03:00
Noam Meltzer
796583323d
Bump version to v7.0.0
2017-07-25 22:53:20 +03:00
Noam Meltzer
5392bfead0
CHANGES.rst: And some more tweaks
...
[ci skip]
2017-07-25 22:48:18 +03:00
Noam Meltzer
46d9240f36
Update vendored urllib3 gitmodule to the proper git revision
...
Refs #720
2017-07-25 22:37:58 +03:00
Noam Meltzer
af56dd5a58
Updated CHANGES.rst - preparing to release v7.0.0
2017-07-25 22:33:28 +03:00
Ali Mirlou
e5b0795916
Typo fixed for docs ( #747 )
...
[ci skip]
2017-07-25 21:32:20 +03:00
Eldinnie
ae29620cd6
Remove duplicate test ( #748 )
2017-07-25 21:31:30 +03:00
Eldinnie
8d1d38cc4c
send_* now accepts tg-objects ( #742 )
...
Fixes #731
2017-07-25 01:35:22 +03:00
Eldinnie
2d1028acb6
Add kwargs to data dict ( #744 )
...
Add kwargs to data dict for all bot-methods that are not decorated with `@message`
Fixes #733
2017-07-25 01:19:09 +03:00
Eldinnie
94e0d3c2ac
Update Issue template ( #745 )
...
With a note that questions about usage should be asked in the group, not as an issue
[ci skip]
2017-07-25 00:27:30 +03:00
Noam Meltzer
f0638df390
Disable webhook unitests
...
Telegram servers don't like the endless game of set/delete webhooks and
refusing our requests. We're better of without testing it.
2017-07-25 00:23:11 +03:00
Noam Meltzer
2aa31c6faa
Remove urllib3 from reported packages for creating new github issues
...
[ci skip]
2017-07-25 00:22:03 +03:00
Eldinnie
81987c38d4
Update .readthedocs.yml ( #741 )
2017-07-24 00:05:40 +03:00
Eldinnie
b3b94240a5
Docs update ( #728 )
...
Amazing new documentation.
2017-07-23 23:33:08 +03:00
Rahiel Kasim
19ce9e4512
Delete deprecated code ( #693 )
...
* remove Botan import from utils
* remove telegram.Emoji
* remove ReplyKeyboardHide
* remove edit_message argument of bot.set_game_score
2017-07-23 22:58:20 +03:00
Noam Meltzer
c02613559d
README/CHANGES: Bot API 3.2 is now supported
...
[ci skip]
2017-07-23 22:41:50 +03:00
Rahiel Kasim
9bd5042cc3
README: add downloads/month badge ( #692 )
...
Fixes #293
[ci skip]
2017-07-23 22:32:12 +03:00
Jelle Besseling
8320227b2a
ConvesationHandler - check if a user exist before using it ( #699 )
...
Fixes #695
2017-07-23 22:29:52 +03:00
Ihor Polyakov
08d298eb60
TelegramObject.de_json became classmethod ( #737 )
...
Fixes #734
2017-07-23 22:14:38 +03:00
Jacob Bom
5a37af6f89
Bot api 3.2 ( #732 )
...
NOTE: Currently not testing StickerSet in terms of bot methods (interaction with telegrams servers) as there's no delete operations.
2017-07-22 14:34:51 +03:00
Rahiel Kasim
881da40978
Read the Docs configuration ( #729 )
...
[ci skip]
2017-07-22 14:13:49 +03:00
thodnev
f72f4090c6
Fixed args dispatching in messagequeue decorator ( #705 )
2017-07-08 07:18:10 +03:00
Jacob Bom
94ed4cb38d
Bot api 3.1 ( #698 ) + minor improvements
...
- Added all the new and shiny features from API 3.1.
- Not API 3.1 changes:
- Use future.utils.string_types for string isinstance checks.
- Stall between retries of test_set_webhook_get_webhook_info() &
test_delete_webhook().
2017-07-01 18:08:45 +03:00
Jacob Bom
cbafdc289f
Fix Message.text_*
...
Didn't work with URL type MessageEntities
(when you type a url in a tg client and tg converts it to a link for you)
2017-06-24 11:12:35 +03:00
Noam Meltzer
ebb2556176
Fix download of URLs with UTF-8 chars in path
...
refs #650
2017-06-24 11:10:43 +03:00
Jacob Bom
564d361cdf
Add folding to travis script section ( #686 )
2017-06-24 11:09:44 +03:00
Eldinnie
b4b0eb4686
Tests files from website ( #687 )
...
Use website for send from url tests instead of github.
2017-06-23 21:10:43 +03:00
Noam Meltzer
8703ae0b8d
Merge pull request #683 from python-telegram-bot/no_hardcoded_fileids
...
No hardcoded fileids
2017-06-23 00:47:13 +03:00
Noam Meltzer
8fcfdca25b
updated pre-commit tools versions
2017-06-22 22:06:37 +03:00
Noam Meltzer
d216b83728
Merge pull request #685 from python-telegram-bot/cache-pip-ci
...
Cache pip for travis and appveyor + update to travis trusty container
2017-06-22 21:48:00 +03:00
Noam Meltzer
56949bcad6
Merge pull request #674 from python-telegram-bot/restructure-internal
...
Move a lot of files
2017-06-22 21:26:47 +03:00
Noam Meltzer
470ee86497
Merge pull request #677 from evgfilim1/new-filters
...
New filters for handling messages from specific chat/user id
2017-06-22 21:25:39 +03:00
Jacob Bom
5b9bb904c2
Skip "official" tests on pypy
...
inspect.signature() seems to return a string instead of an actual signature on pypy
2017-06-22 20:18:31 +02:00
Jacob Bom
9264264a02
Does this version work?
...
See travis-ci/travis-ci#6727 for more info too
2017-06-22 19:31:52 +02:00
Jacob Bom
3dabc3146a
Update pypy so it hopefully is found in trusty python archive
...
See also #655
2017-06-22 19:29:34 +02:00
Eldin
cedc38dcdf
finalising
...
* Added telegram.jpg to gitignore since we're downloading it now
* moved download tests to the right tests to make test_file file_id free
2017-06-22 18:29:21 +02:00
Jacob Bom
51759307d7
Try updating to trusty
...
Currently about 1min of build time is spent updating libssl... maybe it's newer on trusty?
2017-06-22 18:09:29 +02:00
Eldin
ac0793caa2
test_sticker modified
...
* cleanup assertions in test_video
* modify test_sticker to same standard as the others.
2017-06-22 18:04:19 +02:00
Eldin
28836b7735
stickerfile added
2017-06-22 17:45:06 +02:00
Eldin
4fad382f26
standardize assertions
2017-06-22 17:17:40 +02:00
Jacob Bom
4b16d0937b
Wheel not wheels
2017-06-22 16:28:13 +02:00
Jacob Bom
db8ae7602b
Cache pip for travis and appveyor
...
Updating wheels package since caching was introduced in v7 and I'm not sure what version is default on travis.
2017-06-22 15:49:46 +02:00
Jacob Bom
512ca2643f
Fix weird import in phototest
2017-06-22 15:40:43 +02:00
evgfilim1
ecfcc69cf9
Fixed tests
2017-06-22 15:20:11 +05:00
evgfilim1
7e81a1510d
Added ability to process list of ids/usernames
2017-06-22 15:19:49 +05:00
evgfilim1
ca9068f2b5
Simplified if statement, fixed docs
2017-06-22 13:39:41 +05:00
Noam Meltzer
45d4ea083d
Merge pull request #671 from alateas/master
...
Make error output more clear for too big uploads.
2017-06-22 10:33:25 +03:00
Noam Meltzer
7a89dcb911
Properly try to parse server message before raising errors
2017-06-21 23:34:35 +03:00
Noam Meltzer
4b3b0cb4cd
Merge pull request #668 from python-telegram-bot/official-test
...
Add an "official test"
2017-06-21 23:14:10 +03:00
Noam Meltzer
3ea16cb1c7
Merge pull request #675 from python-telegram-bot/name-filters
...
Allow filters to have a name.
2017-06-21 23:11:26 +03:00
Eldin
85e52f1930
delete test file
2017-06-21 19:02:36 +02:00
Eldin
976ad1b987
new shorter audiofile
2017-06-21 19:01:20 +02:00
Eldin
1f9f3ae8a1
shorter mp3 file
2017-06-21 18:55:59 +02:00
Eldin
d2f89382a0
sending from web stuff
...
* Audiofile sent from web is shorter then from local
* web-photo's send more than two imagesizes
2017-06-21 18:46:50 +02:00
Eldin
b49431931a
Reworked get_bot
...
It now decides wich bot to give depending on CI, and made ready or more bot's per version.
2017-06-21 18:25:04 +02:00
Eldin
fca64f5fc6
Move photo tests from test_bot to test_photo
2017-06-21 18:10:00 +02:00
Eldin
c92ebc4046
test_audio done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
* changed some tests in all file
2017-06-21 17:59:35 +02:00
Eldin
281bd67298
test_document done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 17:38:20 +02:00
Eldin
f6a98d7888
test_photo done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 17:21:18 +02:00
Eldin
e7b839b69e
Simple assertions in setUpClass
...
Py2 does not implement TestCase's assertions until setUp() is done. Hence we need simple assertions in the setUpClass
2017-06-21 16:50:40 +02:00
Eldin
4fe805ee0c
Clean up after conversation
...
Clean setUpClass + add assertions
remove obsolete tests
add test_expected_values
2017-06-21 16:09:51 +02:00
Jacob Bom
04acbc4117
Remove the need for calling super() in filters
2017-06-21 13:46:03 +02:00
Eldin
4bf63d7358
reformat code
2017-06-21 00:34:46 +02:00
Eldin
991ee2bc88
sys.path why?
2017-06-21 00:33:23 +02:00
Eldin
c91ffc122a
test_videonote done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 00:31:14 +02:00
Eldin
7b7c4a81bb
test_voice done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 00:22:11 +02:00
Eldin
6b7ce7b8f0
test_video done
...
* Changed to new method of non-static file_id
* removed obsolete tests.
2017-06-21 00:12:26 +02:00
Eldin
8a89265c2d
first tries
2017-06-20 23:55:35 +02:00
Jacob Bom
4b53ed1c65
Fix videonote import
2017-06-20 22:41:02 +02:00
Jacob Bom
1e4248136c
Merge branch 'master' into restructure-internal
2017-06-20 22:28:14 +02:00
Jacob Bom
9f1b63b165
Add module name to tests name
...
So they fit in with the rest better
2017-06-20 21:49:16 +02:00
Eldinnie
eee0f78b15
Add appveyor.yml ( #660 )
...
[ci skip]
2017-06-20 22:45:49 +03:00
Jacob Bom
0afe83ac30
Merge branch 'master' into official-test
2017-06-20 21:42:33 +02:00
Jacob Bom
6cc84b2c32
Only write repr as str will invoke it implicitly
2017-06-20 21:41:23 +02:00
evgfilim1
3bf4399a4f
Fixed tests
2017-06-20 12:49:01 +05:00
evgfilim1
9bccbdab2a
Added ability to filter by username
2017-06-20 12:43:07 +05:00
Jacob Bom
dba4739f76
Add a tiny test for unnamed filters
...
Increases coverage by 1 (one) line! Woo :D
2017-06-19 21:49:42 +02:00
Jacob Bom
a964b7bfd0
Okay, so not even *args followed by a kwarg is allowed on py2...
...
So just remove it for now. Better than doing annoying stuff with parsing a **kwargs dict in my opinion. It didn't even *really* need to be kwarg only anyways I guess...
2017-06-19 21:46:34 +02:00
evgfilim1
e18ebd035c
Added tests
2017-06-19 22:53:44 +05:00
evgfilim1
5a62255675
Added new filters for handling specific chat id and user id
2017-06-19 22:50:44 +05:00
Jacob Bom
01f3d88788
Update filter test
2017-06-18 16:25:48 +02:00
Jacob Bom
2b871e6f93
* for keyword only arguments isn't supported on py2 it seems...
2017-06-18 16:22:59 +02:00
Jacob Bom
788b9dab0c
Fill in super() calls
2017-06-18 16:03:32 +02:00
Jacob Bom
4c41f3870c
Allow filters to have a name.
...
So their string representation is user friendly.
2017-06-18 15:28:48 +02:00
Jannes Höke
d5583190b8
Bump version to v6.1.0
2017-06-18 12:35:16 +02:00
Jacob Bom
5c2893111a
Move a lot of files
2017-06-18 12:35:00 +02:00
Jacob Bom
faddb92395
Clean up Bot code a bit ( #673 )
...
* Clean up Bot code a bit
- Move decorators to module. It really wasn't clear how decorators inside classes work, and why they didn't have a self parameter, but still wasn't static. This also makes them effectively private without having to underscore them, which I think we should have done long time ago atm. Note that this might break backwards compatibility slightly (only if people are daft enough to have used the decorators themselves)
- Don't call _message_wrapper directly. Ever. Instead always use the message decorator, since it's what it's there for. Closes #627
- Don't use the message decorator if the method isn't supposed to return a message. The decorator could handle values like True (which is often the return value), but to someone reading the code, it seems like it's a message returning method even when it wasn't.
- Always document timeout and **kwargs
- Log all methods
* Add test to make sure timeout propagates properly despite decorators
2017-06-18 12:14:24 +02:00
saschalalala
9b5e014a0a
Simplification of boolean checks ( #662 )
...
* Simplification of boolean checks
* Cast ok to bool for Telegram API json encoding
2017-06-18 12:09:32 +02:00
Jannes Höke
845312da59
Merge branch 'master' of github.com:python-telegram-bot/python-telegram-bot
2017-06-16 04:16:45 +02:00
Alateas
6ffd75e421
Try to process response data after checking errors, not before. Add 413 File too large http error message.
2017-06-15 18:44:39 +03:00
Jacob Bom
dfb0ff27d3
Add bs4 to requirements
2017-06-14 14:04:39 +02:00
Jacob Bom
9b84a558fb
Fix width+height in sendVideo + game in Message
...
First errors found by the official test thingy
2017-06-14 13:48:45 +02:00
Jacob Bom
3ca6f6aa0e
Add official test
...
Cross references method and class signatures with official docs
2017-06-14 13:42:57 +02:00
saschalalala
3863b4f371
Rename shortcut functions to snake_case ( #661 )
...
* Rename shortcut functions to snake_case
* More function renaming
* Example function rewrite
* Add myself to authors.rst
* More function renaming
* Rename mockbot test functions
* Break comment line for flake max line length
2017-06-14 00:07:03 +02:00
Eldinnie
25912dca6e
add --recursive in contributing guide ( #664 )
2017-06-14 00:02:16 +02:00
alateas
6877886f7d
Change hard-coded 20. to timeout parameter ( #663 )
...
* Change hard-coded 20. to timeout paramter
Passing timeout parameter to _message_wrapper in send_audio instead of hard-coded 20 seconds
* add myself to contributors
2017-06-14 00:01:38 +02:00
Noam Meltzer
d16d38530c
Merge pull request #658 from jeffffc/paymentbot_example_and_fixes
...
Add PaymentBot Example, Bugfixes on payment methods
2017-06-11 00:18:20 +03:00
Jeff
c7ed87d475
add telegram doc link comment
2017-06-11 04:30:21 +08:00
Jeff
a68e0ad044
bugfixes on error in answer_shipping_query and answer_precheckout_query
2017-06-11 03:45:48 +08:00
Jeff
ad603bd2f9
add new payment example
2017-06-11 03:43:38 +08:00
Jannes Höke
179fc141bb
Merge branch 'master' of github.com:python-telegram-bot/python-telegram-bot
2017-06-10 21:24:28 +02:00
Noam Meltzer
da8a3cee44
Merge pull request #631 from jeffffc/paymenthandlers
...
Add both handlers for queries from new Payment API
2017-06-09 18:23:29 +03:00
Eldin
bc3669fa4b
make commandhandler case insensitive
2017-06-09 17:45:15 +03:00
Eldin
7def2c53e1
fix tests for pycharm windows
...
Refractored self.id in new tests to self._id (as I did before) so testrunner in pycharm can run under Windows.
2017-06-09 17:44:43 +03:00
Noam Meltzer
09230e6e84
Merge pull request #649 from python-telegram-bot/fix-docs
...
Fix some documentation stuff
[ci skip]
2017-06-09 13:14:03 +03:00
Eldin
011e321583
Update gitignore with new video file
2017-06-09 12:27:10 +03:00
Eldin
0afb38f45c
Fix video_note tests
...
Added a video_note to send.
2017-06-09 12:27:10 +03:00
Jeff
4247dc0e21
tiny changes upon PR review
2017-06-08 09:47:19 +08:00
Jacob Bom
896392d01e
Merge branch 'master' into fix-docs
2017-06-07 13:12:32 +02:00
Jacob Bom
61c5d6ff08
Remove more warnings
2017-06-07 13:07:45 +02:00
Jacob Bom
aa1c4e0e02
Fix most of "more than one target found for cross-reference" warnings
2017-06-07 12:53:02 +02:00
Jacob Bom
92183a5bbc
Some objects don't have a module
2017-06-07 12:52:36 +02:00
Jacob Bom
87b096c7f9
Only document functions/methods that are 100% lowercase + use favicon
...
In bot.py we did stuff like sendAudio = send_audio, which made sphinx document both, which led to clutter in our docs.
2017-06-07 12:40:09 +02:00
Jacob Bom
3329d15691
Add orange favicon
...
Do we need a blue one too?
2017-06-07 12:37:29 +02:00
Noam Meltzer
0fb00c4c8b
When Promise running throws an uncaught exception - log it
2017-06-03 16:34:03 +03:00
Noam Meltzer
2680740316
Merge pull request #641 from azogue/fixes
...
fix setting default mimetype of inputfile
2017-06-03 00:22:32 +03:00
Jeff
b6ba66ba8e
Fix typo in filter test
2017-06-03 02:05:26 +08:00
Jeff
eaf765dcbc
Remove duplicated/useless codes, added Filters.invoice test
2017-06-03 01:48:30 +08:00
Jeff
f735a37828
Merge from master and resolve conflicts
...
Merge from master and resolve conflicts
2017-06-03 01:19:29 +08:00
Jeff
e9d08c6f7a
Merge branch 'master' into paymenthandlers-new
...
# Conflicts:
# telegram/bot.py
# telegram/message.py
# telegram/precheckoutquery.py
# telegram/shippingquery.py
2017-06-03 01:09:17 +08:00
Noam Meltzer
c0e3453a62
Travis: add test to make sure setup.py doesn't break
...
Refs #635
2017-06-02 11:51:31 +03:00
Noam Meltzer
90e9e32632
Merge pull request #622 from python-telegram-bot/payment
...
Payment stuff
refs #617
2017-06-02 11:14:18 +03:00
azogue
1e3e8973ba
added myself to authors
2017-06-02 08:25:39 +02:00
Noam Meltzer
0ed997cc53
Merge remote-tracking branch 'origin/master' into payment
2017-06-01 22:07:14 +03:00
Jacob Bom
760737345d
Fix tests for video_note
...
It would seem that length is no longer incorrectly required so that's good
However they stopped sending the file_size when you send via a file_id which is a bit odd
2017-06-01 22:06:34 +03:00
Noam Meltzer
137ffe2e73
Merge remote-tracking branch 'origin/master' into payment
2017-06-01 22:01:04 +03:00
Noam Meltzer
c4b78673a3
payment: cr fixes
2017-06-01 21:52:47 +03:00
Noam Meltzer
ee1cf6b9b0
test_set_webhook_get_webhook_info: Retry more
...
Unitests fail too much on this one. Lets retry more, maybe we'll stop
seeing this.
[ci skip]
2017-06-01 21:25:00 +03:00
Noam Meltzer
c15371e8c0
Merge pull request #642 from evgfilim1/new-filters
...
New filters
2017-06-01 21:21:22 +03:00
evgfilim1
f66076b06c
Returned old tests
2017-06-01 16:37:39 +05:00
evgfilim1
5b1252ac2d
Perfomance optimizations
...
Using `or` instead of `|`
2017-06-01 16:36:32 +05:00
Rahiel Kasim
647059735c
CHANGES: document introduction of telegram.constants ( #643 )
2017-06-01 11:33:36 +02:00
evgfilim1
d0f6860bac
Fixed tests to use new filters
2017-06-01 07:10:26 +05:00
evgfilim1
d98b18d1e3
Added new status_update filters
2017-06-01 07:09:30 +05:00
Jannes Höke
9d6c394b02
Bump version to v6.0.3
2017-05-29 22:55:15 +02:00
Jannes Höke
1951d6fdcd
Bump version to v6.0.2
2017-05-29 21:24:12 +02:00
azogue
84b59c8cb2
unittest sending non standard jpg photo with bytesio stream
2017-05-29 09:38:02 +02:00
azogue
b46bdf5304
fix setting default mimetype of inputfile
2017-05-29 08:30:29 +02:00
Noam Meltzer
cd24bb4ba5
payment: Small fixes
...
- Semantic fixes bot.py (if XXX is not None: ...).
- Documentation fixes (arguments which are optional).
2017-05-26 20:02:18 +03:00
Noam Meltzer
ae33d33580
Merge pull request #625 from python-telegram-bot/videonote
...
Add VideoNote
2017-05-26 19:34:13 +03:00
Noam Meltzer
706f79fa99
Fix setup.py with urllib3 vendoring
...
fixes #635
2017-05-26 19:24:54 +03:00
Noam Meltzer
a5bfc52326
videonote: Semantic fix according to CR
2017-05-26 18:36:21 +03:00
Noam Meltzer
858684ab64
Merge pull request #628 from python-telegram-bot/may18minor
...
May 18 minor changes
2017-05-26 18:23:31 +03:00
Jacob Bom
f4c6197c5f
Update filters to new_chat_members instead of new_chat_member
2017-05-25 14:45:47 +02:00
Jacob Bom
a7044562af
Fix stuff as per @tsnoam's comments
2017-05-25 14:16:53 +02:00
Jacob Bom
27a4fa8dba
Move *_duration attributes as to keep backwardscompat
2017-05-25 14:05:08 +02:00
Jacob Bom
a41ee3b040
Actually deprecate new_chat_member to help users switch
2017-05-25 14:02:41 +02:00
Jacob Bom
8499dcc33c
Better deprecation warnings
...
Actually shows where in the users code the error happened, not just where the warning came from in our internal code
2017-05-25 13:53:35 +02:00
Noam Meltzer
ff897ce9ef
Avoid confusion with user's urllib3 by renaming vendored urllib3
2017-05-24 13:14:33 +03:00
Jeff
f314915954
fix typo again
2017-05-23 16:26:04 +08:00
Jeff
1bf0078573
add missing "need_email" in sendInvoice, fix pep8/flake
2017-05-23 16:21:45 +08:00
Jeff
1210e4ef04
Finalize Payment API
...
bugfixes
added payment-related handlers
2017-05-23 02:19:23 +08:00
Jeff
05ed693fb6
fix authors typo
2017-05-22 18:11:19 +00:00
Jeff
18822d1396
Merge branch 'fix-paymenthandlers' into paymenthandlers-final
2017-05-22 17:47:43 +00:00
Jeff
73ac259721
fix typo...
2017-05-23 00:13:30 +08:00
Jeff
96171112bf
fix crucial typo in filters
2017-05-22 23:42:09 +08:00
Jeff
27238c52e2
add successful_payment filter under message
2017-05-22 23:39:28 +08:00
Jeff
43f4128b31
fix answer* methods not sending api requests
2017-05-22 22:55:19 +08:00
Jeff
1142953108
add checks for answer* methods
2017-05-22 22:47:35 +08:00
Jeff
1e250f2415
add kwargs to answer* methods
2017-05-22 21:37:15 +08:00
Jeff
8f2f29c7d4
fix typo, add bot and kwargs to class init
2017-05-22 21:32:42 +08:00
Jeff
3767d26fc8
Add both handlers for queries from new Payment API ( #630 )
...
* add handlers for new payment API
* fix typo
* fix docstring mistakes
* added missing 'from_user'
2017-05-22 14:07:53 +02:00
Jeff
a78f72c086
added missing 'from_user'
2017-05-22 20:04:03 +08:00
Jeff
cc03649f1c
fix docstring mistakes
2017-05-22 19:59:13 +08:00
Jeff
ee057e76ef
fix typo
2017-05-22 19:42:48 +08:00
Jeff
2c05b03fba
add handlers for new payment API
2017-05-22 19:20:26 +08:00
Jacob Bom
630b63ec10
Add payment filters
2017-05-22 12:13:00 +02:00
Jannes Höke
23b37c9ea4
mention beta version in README
2017-05-21 22:10:08 +02:00
Jacob Bom
01430a24a5
Import order fix
2017-05-21 15:51:01 +02:00
Jacob Bom
acda19b7e7
Merge branch 'may18minor' into beta
2017-05-21 15:45:40 +02:00
Jacob Bom
48fa3d975b
Merge branch 'videonote' into beta
...
# Conflicts:
# telegram/__init__.py
# telegram/message.py
2017-05-21 15:45:20 +02:00
Jacob Bom
d220ff4e38
Merge branch 'payment' into beta
2017-05-21 15:42:24 +02:00
Jacob Bom
5a15d1b5d6
Add mpeg4_duration and gif_duration to inline gif and mpeg4gif
2017-05-21 14:38:12 +02:00
Jacob Bom
ad347b5c02
new_chat_member -> new_chat_members
...
Keep old for now... we can remove it in the future when telegram stops parsing it along.
Also: TODO: write proper Message tests
2017-05-21 14:32:36 +02:00
Jannes Höke
017fdeaae8
run yapf with --diff
2017-05-21 14:29:24 +02:00
Jannes Höke
ba6c4fd517
Bump version to v6.0.1
2017-05-21 14:25:40 +02:00
Jacob Bom
99ecac5649
assertRaisesRegex doesn't exist on py2 (also fuck yapf)
...
This deprecation is totally gonna come back and bite us when the regexp
gets removed completely in never version´
2017-05-21 14:10:55 +02:00
Jannes Höke
1c4c228cf1
add support for User.language_code ( #624 )
...
* add support for User.language_code
* Add language filter
Useful is you wanna do something like restrict your shop to a single or a few locales or something like that.
2017-05-21 14:00:53 +02:00
Jacob Bom
2e89e21261
Fix text_markdown and text_html ( #623 )
...
* Fix text_markdown and text_html
* Missed a few narrow build checks
* Added tests for emoji-first strings and emojis in url
2017-05-21 14:00:07 +02:00
Jacob Bom
7583fa9d65
Tests for video notes
2017-05-21 13:51:58 +02:00
Jacob Bom
2dd5290ec2
Add reply_video_note in line with other reply_*
2017-05-21 13:51:27 +02:00
Jacob Bom
41299244b7
Allow InputFile to handle video notes
2017-05-21 13:50:52 +02:00
Jacob Bom
0e2bcf28a6
Export VideoNote
2017-05-21 13:50:15 +02:00
Jacob Bom
2746ab77e5
Add sendVideoNote to Bot
2017-05-20 19:35:55 +02:00
Jacob Bom
ae39c902ed
Add video_note to Message
2017-05-20 19:30:07 +02:00
Jacob Bom
65929a0813
VideoNote chatactions
2017-05-20 19:26:26 +02:00
Jacob Bom
4426eb0c61
Add VideoNote
2017-05-20 19:25:24 +02:00
Jacob Bom
d4f2f2e077
Getting instead of popping
...
I really think we should be popping and I'm unable to see why it makes our tests fail, but for now.. rolling back.
2017-05-20 19:02:01 +02:00
Jacob Bom
73d75b964a
Remove extra space from payment provider token
2017-05-20 18:55:21 +02:00
Jacob Bom
45897048aa
Add invoice test and there's no EUD currency, whoops
2017-05-20 18:51:31 +02:00
Jacob Bom
76db279624
We have to send and array... that's new...
2017-05-20 18:46:39 +02:00
Jacob Bom
a97da5cb20
Sooo apparently python 2 doesn't like ‘ (\xe2)
2017-05-20 17:36:10 +02:00
Jacob Bom
9f6ec125b9
Basic tests for payment stuff
2017-05-20 17:31:46 +02:00
Jacob Bom
5f96c507b9
Payment ids should be unique... probably
2017-05-20 17:31:46 +02:00
Jacob Bom
402e1381bb
OrderInfo can be completely empty
...
In which case it should still be an OrderInfo not None
2017-05-20 17:31:46 +02:00
Jacob Bom
b276b06b31
Pop instead of get if our name doesn't match telegrams (user/from_user)
2017-05-20 17:31:46 +02:00
Jacob Bom
b69ecc3015
Fix import order
2017-05-20 17:31:46 +02:00
Jacob Bom
77f06888cb
MessageEntity != Sticker :P
2017-05-20 17:31:46 +02:00
Jannes Höke
6479e15578
Bump version to v6.0.0
2017-05-19 21:49:01 +02:00
Jannes Höke
5dd3a660e3
forgot some escaping
2017-05-19 20:57:52 +02:00
Eldinnie
e2a651afc8
Allow edited as seperate input ( #608 )
...
* Allow edited as seperate input
In short made it possible to tune messagehandler more to your wishes. and choose exactly what updates to receive. messages, edited_message or channel_post or a combination.
- Added the edited_updates argument to MessageHandler
- Added DepricationWarning when using allow_edited
- replaced _is_allowed_message and _is_allowed_channel_post with _is_allowed_update
- Modified tests to reflect new way
* oops
Spelled deprecation wrong
made an error in the _is_allowed_update.
* Python 2 does not have assertWarns.
* remove unneeded statements
2017-05-19 20:26:10 +02:00
Jacob Bom
834c1ab3c5
Merge branch 'master' into payment
2017-05-19 20:25:46 +02:00
Evgen
33512ffd2e
Improved CommandHandler ( #613 )
...
* Improved CommandHandler
Now you can pass list of commands instead of one command
* Added tests for list of commands
* Return backward compatibility
Renamed `commands` to `command` in CommandHandler
* Added test for a command not in the list
* Fixed py2 unicode command support in `CommandHandler`
2017-05-19 20:21:37 +02:00
Evgen
c2c5452829
Updated docstring in deleteMessage methods ( #618 )
...
* Removed "undocumented" notice
* Updated docstring according to Bot API documentation
* Removed extra line
2017-05-19 20:21:20 +02:00
Jacob Bom
c78d697b0e
Add invoice and successful_payment to Message
2017-05-19 20:06:58 +02:00
Jacob Bom
2929c76248
Fix docstring for Message
2017-05-19 20:04:24 +02:00
Jacob Bom
034bcf0895
Add pay inlinekeyboardbutton type
2017-05-19 19:49:31 +02:00
Jacob Bom
8be57198b4
New payment bot methods
...
sendInvoice, answerShippingQuery, and answerPreCheckoutQuery
2017-05-19 19:46:42 +02:00
Jacob Bom
8e62b02ff6
Add new payment classes
...
Invoice, LabeledPrice, OrderInfo, PreCheckoutQuery, ShippingAddress, ShippingOption, ShippingQuery and SuccessfulPayment
2017-05-19 19:41:06 +02:00
Jannes Höke
9aa5522694
sanitize html and markdown in Message.text_html and text_markdown ( #621 )
...
* sanitize html and markdown in Message.text_html and text_markdown
* add import for escape_html
2017-05-19 19:11:40 +02:00
Noam Meltzer
9720f59d7e
Fix docs ( #614 )
...
* Spelling fixes in `README.rst`
Fixes #609 and #610
* Fixed and added some type hints in docstrings
2017-05-17 22:46:06 +03:00
evgfilim1
578627feca
Fixed and added some type hints in docstrings
2017-05-17 21:41:08 +05:00
evgfilim1
257b8321f8
Spelling fixes in README.rst
...
Fixes #609 and #610
2017-05-16 22:59:02 +05:00
Eldinnie
4f2ea5b0f1
Update readme to reflect changed install procedure ( #610 )
...
Fixes #609
2017-05-16 10:32:36 +03:00
Noam Meltzer
9a2d5e0410
Update copyright notice to include 2017 - missing files from another PR
2017-05-15 00:37:40 +03:00
Jacob Bom
1b7f83625c
Update copyright notice to include 2017
...
Not strictly needed, but it helps show that the project is being actively
developed which I find important.
2017-05-15 00:36:49 +03:00
Jacob Bom
da01601ff9
Add equality rich comparision operators to telegram objects ( #604 )
...
fixes #587
2017-05-15 00:29:31 +03:00
Evgen
752b64769d
Fix for #601 ( #603 )
2017-05-12 17:42:02 +02:00
Evgen
f3b75d95c4
Implemented undocumented 'deleteMessage' method ( #602 )
...
* Implemented `Bot.delete_message()` and `Message.delete()` methods
* Added tests for `Bot.delete_message()` and `Messsage.delete()`
* Added myself to `AUTHORS.rst`
* Using `assertRaisesRegexp` instead of `assertRaisesRegex` in tests
Now tests can run on Python 2.7 without raising 'AttributeError'
* Fix docstring
Added a warning to the docstring describing that this method is undocumented and not guaranteed to work
2017-05-12 17:40:57 +02:00
Eldinnie
36b98b0ab4
fix mimetype errors in video tests ( #600 )
2017-05-12 17:39:28 +02:00
Eldinnie
05b85d4334
Skip test_idle() and test_UserSignal on Windows ( #599 )
2017-05-12 17:39:14 +02:00
Eldinnie
f27807552f
refactor self.id -> self._id to let pycharms testrunner run ( #598 )
2017-05-12 17:38:51 +02:00
Eldinnie
f3aca42e69
pass errormessage to Unauthorized ( #597 )
2017-05-12 17:38:36 +02:00
Noam Meltzer
ed49bdb19c
Merge pull request #592 from python-telegram-bot/snake_case
...
prefer snake_case for telegram.Bot methods
2017-05-08 00:30:05 +03:00
Rahiel Kasim
9f3afa5fa2
prefer snake_case for telegram.Bot methods
2017-05-07 16:09:58 +02:00
Joscha Götzer
cdf36a20b7
Fixed deprecation warning ( #586 )
2017-04-29 19:56:27 +02:00
manorom
c5598b96bc
Fix Bug #571 (second try) ( #574 )
...
* Fix Bug #571
ConversationHandler will not process CallbackQuery if per_chat=True and
the CallbackQuery has no message attached to it (as is the case with
buttons on inline results)
* Adds test case for CallbackQuery without Chat
2017-04-29 15:51:48 +02:00
Noam Meltzer
ca4351079f
Merge pull request #542 from python-telegram-bot/urllib3-vendor-beta
...
Vendor (embed) urllib3 with our package.
2017-04-29 16:38:44 +03:00
Noam Meltzer
34059c951d
Don't run coveralls on the vendor subdir
2017-04-29 15:52:31 +03:00
Jannes Höke
c7dbdce3dc
Allow CallbackQueryHandler in ConversationHandler with per_mess… ( #561 )
...
* 🐛 Allow CallbackQueryHandler in ConversationHandler with per_message=False
but show a warning #556
* ⏪ warning logs instead of ValueErrors
#556
2017-04-29 15:15:17 +03:00
Noam Meltzer
fe5ae8ed84
request.py: Fix warning on stderr irrelevant for most users
...
Attempting to import urllib3.contrib.socks may fail if PySocks is not
installed. Most users won't care for that.
Only import that module if the user requested to use a socks proxy.
2017-04-29 14:42:36 +03:00
Noam Meltzer
a6b28b022a
Merge remote-tracking branch 'origin/master' into urllib3-vendor-beta
2017-04-29 14:09:45 +03:00
Noam Meltzer
284f16b87b
Merge pull request #583 from whipermr5/gae-urllib3-support
...
Compatibility with GAE via urllib3.contrib package
2017-04-29 12:29:51 +03:00
John Yong
785245a57e
Add myself to authors list
2017-04-27 17:00:31 +08:00
John Yong
1d905d567c
GAE support via urllib3.contrib.appengine module #334
2017-04-27 16:59:35 +08:00
Jannes Höke
4541476143
enforce urllib3==1.20 ( #580 )
...
* 🚑 enforce urllib3==1.20
#579
* 🚑 Bump version to v5.3.1
#579
2017-04-25 17:26:54 +02:00
Dickson Tan
11a3de67ea
Remove deprecated code #408 part 1 ( #564 )
...
* Remove non-pep8 dispatcher methods
* callbackqueryhandler: Remove non-pep8 compliant methods
* commandhandler: Remove non-pep8 compliant methods
* handler: Remove non-pep8 compliant methods
* messagehandler: Remove non-pep8 compliant methods
* stringcommandhandler: Remove non-pep8 compliant methods
* stringregexhandler: Remove non-pep8 compliant methods
* test_updater: fix usage of deprecated methods
* dispatcher: fix accidental misalignment of comments by pre-commit hook
* Add myself to list of contributors
2017-04-25 10:39:02 +02:00
Eldinnie
90bf26c09b
Issue 566 ( #577 )
...
* stripping token of whitespaces before starting bot
* Line feed
* - Case insensitivity for commandhandler
- Ignore pylint case on windows.
2017-04-25 10:37:06 +02:00
Eldinnie
b5b09884b1
Group filters ( #575 )
...
* stripping token of whitespaces before starting bot
* Line feed
* show exception that's caused (fixes flake8 failing)
* Add private/group filters
Add filters:
- Filters.private (for messages in private chats)
- Filters.group (for messages in group chats)
* use constants
2017-04-23 23:22:05 +02:00
Rahiel Kasim
35132271af
contributing: how to run tests without make; AUTHORS: fix formatting ( #567 )
2017-04-17 14:49:42 +03:00
Iulian Onofrei
44d7bad11c
Update constants.py ( #553 )
...
Add maximum inline query results constant
2017-03-29 17:31:26 +02:00
Jacob Bom
ad5f009ce7
Add the ability to invert (not) filters ( #552 )
...
* Add InvertedFilter and use it from __invert__
* Add docstrings and __str__ for inverting filters
* Tests for inverted filters
2017-03-28 18:38:44 +02:00
Jannes Höke
8fe6e13ff2
Update handlers ( #532 )
...
* 🔨 Refactor `Update.extract_` methods to `Update.effective_` properties
#507
* ✨ Update RegexHandler to work with edited messages and channel posts
* 🔨 messagehandler.py: refactor channel_posts_updates -> channel_post_updates
* 🔨 handler.py: use effective_ properties
2017-03-26 14:36:45 +02:00
Jannes Höke
ff39e2436e
Refactor Update.extract_ methods to Update.effective_ properties ( #531 )
...
* 🔨 Refactor `Update.extract_` methods to `Update.effective_` properties
#507
* 🔨 handler.py: use effective_ properties
2017-03-26 14:36:34 +02:00
Alex Hirschfeld
5b14b134dc
Added user defined function for updater's signalHandler ( #512 )
...
* Added user defined function for updater's signalHandler
* Added test_userSignal to test_updater
* Added test_userSignal to test_updater
Fixing paren
2017-03-26 14:36:13 +02:00
Jannes Höke
5897affa07
add missing allowed_updates to start_webhook ( #549 )
...
* 🐛 add missing allowed_updates to start_webhook
#548
* 🔨 fix webhook-related tests
#548
2017-03-25 12:46:37 +01:00
Jannes Höke
9982f3c908
🐛 fix message date parsing for messages without a timestamp ( #550 )
...
#546
2017-03-25 12:15:37 +01:00
thodnev
22142e7cbd
Introduce MessageQueue ( #537 )
...
* Introduce MessageQueue
* minor documentation and terminology fixes according to the review
* minor documentation and terminology fixes according to the review
* minor documentation and terminology fixes according to the review
* pep8 fix
2017-03-15 17:35:33 +01:00
Noam Meltzer
4c8d1c9a5e
Fix Bot.sendDocument
2017-03-11 23:55:26 +02:00
Noam Meltzer
bef6651da0
travis: when running nosetests run only the telegram tests (not urllib3)
2017-03-11 23:50:30 +02:00
Noam Meltzer
8c2ee0b439
Remove urllib3 from requirements.txt
2017-03-11 23:50:30 +02:00
Noam Meltzer
bfb99a688a
AUTHORS.rst: Add self to maintainers and add license info about urllib3
2017-03-11 23:50:30 +02:00
Noam Meltzer
d239f4ee62
setup.py: vendor the urllib3 package
2017-03-11 23:50:30 +02:00
Noam Meltzer
2b930c221d
Sane default for sending files timeout
2017-03-11 16:23:43 +02:00
Jannes Höke
2a1d40bd28
🚧 manipulate sys.path to prefer vendor urllib3
...
#533
2017-03-09 23:29:15 +01:00
Jannes Höke
1d4464ddbd
➕ add git submodule to vendor urllib3
...
#533
2017-03-09 23:16:58 +01:00
Jannes Höke
85b9236641
Update AUTHORS.rst
2017-02-28 15:55:38 +01:00
Jose Luis Salazar Gonzalez
e78d11a99b
Add filters to commandHandler ( #536 )
...
* Add filters to commandHandler
* Add commandHandler tests with filters
* Add myself to authors
2017-02-28 15:44:55 +01:00
Jannes Höke
cc73469dab
Issue 502 ( #530 )
...
* conversationhandler.py: add per_chat, per_user and per_message
* test_conversationhandler.py: test case per_user=False
* test_conversationhandler.py: add test for callbackqueryhandlers
* ✏️ Fix accidental typo in logging format
2017-02-27 17:52:58 +01:00
Jannes Höke
853d823964
🚨 promise.py: remove pylint warning
...
#529
2017-02-27 16:23:04 +01:00
Jannes Höke
69bfb85298
✅ Fix tests (missed one)
...
#494
2017-02-27 15:35:57 +01:00
Jannes Höke
f267646828
✅ Fix tests
...
#494
2017-02-27 15:23:48 +01:00
Jannes Höke
6b7144bbab
🚨 fix yapf
2017-02-27 14:53:28 +01:00
Jannes Höke
f8b13440c1
🔀 Merge thodnev/ptb into ptb/promises-with-exceptions
...
#529
2017-02-27 14:45:12 +01:00
Jannes Höke
a1ade408b0
🔀 Merge master into dec04
...
#483
2017-02-27 14:39:18 +01:00
Jannes Höke
2954ca2bad
🔀 Merge master into fix-460
...
#494
2017-02-27 14:33:58 +01:00
Eldinnie
34ebb7fe5a
Issue 520 ( #521 )
...
* stripping token of whitespaces before starting bot
* Line feed
* fixed chat parameter all_members_are_administrators
2017-02-27 14:27:06 +01:00
Eldinnie
78094b796d
Fix commandhandler ( #515 )
...
* stripping token of whitespaces before starting bot
* Line feed
* CommandHandler checks if message is for this bot
* CommandHandler checks if message is for this bot
- Added tests
* Fixed tests in test_conversationHandler to work with new commandhandler structure
* type in conversationhandler test
2017-02-27 14:26:53 +01:00
thodnev
fb378775a4
Changed promises to handle exceptions
2017-02-26 23:27:03 +02:00
代码家
264b9bd08c
add myself to authors ( #527 )
2017-02-26 13:57:50 +01:00
Noam Meltzer
d714da4b36
Merge pull request #500 from python-telegram-bot/bug470
...
Fix bad formatting of BadRequest exception message
Fixes #470
2017-02-25 22:40:49 +02:00
代码家
e39afad321
Add support for Socks5 proxy. ( #518 )
2017-02-25 20:47:56 +02:00
Rahiel Kasim
0507378509
fix typo's ( #523 ) and comment out failing sticker test
2017-02-18 16:03:50 +01:00
Rahiel Kasim
659ac52d92
fix tests (telegram cache file_id's)
2017-02-05 23:10:48 +01:00
Rahiel Kasim
924c241680
declare support for Python 3.6
2017-02-05 20:40:16 +01:00
Joscha Götzer
ac59f2f37c
Added methods to generate the original markdown/html string from entities contained in Message ( #507 )
...
* Added methods to generate the original markdown/html formatted string from the entities contained in an update
* Added
* Moved the html/markdown parsing methods to `Message`
* Moved extract_* methods from helpers to the appropriate location
* Refactored text_markdown and text_html
* Refactored text_markdown and text_html for efficiency
* Fixed method call in conversationhandler
* Fixed method call in handler
* Fixed `make test` command on windows systems
* Improved method documentation
2017-01-20 20:13:58 +01:00
Jannes Höke
86c8ebbfb7
fix tests
2017-01-16 00:28:47 +01:00
Jannes Höke
cd38bdbed5
bot.py: add delete_webhook alias
2017-01-16 00:28:26 +01:00
Jannes Höke
975d193441
Merge branch 'master' into dec04
2017-01-16 00:15:09 +01:00
Jannes Höke
728ffa432d
updater.py: add allowed_updates parameter to start_polling
2017-01-16 00:07:46 +01:00
Jannes Höke
8ac66698b5
test_bot.py: unit test setWebhook and deleteWebhook
2017-01-16 00:01:32 +01:00
Jannes Höke
c2c93f5d51
webhookinfo.py: add new parameters
2017-01-16 00:00:54 +01:00
Jannes Höke
fc9f36d4db
use deleteWebhook in Updater._bootstrap
2017-01-16 00:00:27 +01:00
Jacob Bom
e69e99ce23
Make everything default to None
...
This effectively removes most type checking from all optional variables... I'm not really sure that's what we want...
2017-01-11 19:41:39 +01:00
Jacob Bom
27b2fd64b7
More IDE friendliness
2017-01-09 19:29:05 +01:00
Jacob Bom
4dee785fba
Last of the classes I think
2017-01-09 19:16:28 +01:00
Noam Meltzer
4c7cc3a05b
Fix test_set_game_score3 - telegram changed something in their responses
2017-01-07 23:37:23 +02:00
Noam Meltzer
1bb5dd224b
Fix bad formatting of BadRequest exception message
...
fixes #470
2017-01-07 23:09:06 +02:00
Noam Meltzer
bd96771a7a
Fix typo
2017-01-07 23:05:58 +02:00
Noam Meltzer
191e442e59
test_jobqueue.py: Fix time delta calculations on several tests
2017-01-07 20:13:08 +02:00
Noam Meltzer
58dddfd9c3
Control the read timeout from telegram servers
...
refs #495
refs #364
2017-01-07 20:13:08 +02:00
Noam Meltzer
68a7d9fa1b
Make sure to hint Telegram servers that we reuse connections
...
refs #495
refs #364
2017-01-07 20:13:08 +02:00
Jacob Bom
38f2064639
Tricky empty string in __init__
2016-12-30 14:03:49 +01:00
Jacob Bom
651119fd69
Fix instances of empty strings in __init__ in example contributing code
2016-12-30 13:58:57 +01:00
Jacob Bom
232a0b0286
Fix instances of empty strings in __init__
...
Should partially fix #460
2016-12-30 13:57:59 +01:00
Anton Tagunov
48bcc3129a
set timeout for post message with file object ( #486 )
2016-12-29 12:01:58 +02:00
Joscha Götzer
6a01164897
ConversationHandler breaks when bot is also used in Channels ( #487 )
...
* ConversationHandler now ignores channel posts
2016-12-25 22:36:01 +02:00
Noam Meltzer
7f6b017ce2
Merge pull request #484 from python-telegram-bot/jobqueue-absolute-simple
...
JobQueue: Simpler API for adding jobs
2016-12-21 00:04:01 +02:00
Jannes Höke
09cb33f52d
rename Job.is_removed to removed
2016-12-20 22:37:36 +01:00
Noam Meltzer
423251f66c
Change Job.is_removed to be a property instead of a method
2016-12-20 00:14:03 +02:00
Noam Meltzer
ed1785981d
disable test_send_contact
2016-12-20 00:12:57 +02:00
Hugo Hakim Damer
a8fecc527d
Prevented modifications to the request object's original data ( #454 )
...
fixes #357
2016-12-20 00:07:35 +02:00
Yan
c3984e1bf1
Download changed ( #459 )
...
* DownBytes added
* File.downbyte changed
* Changed file.download();Remove downbyte()
* Fixed typo
* add docstring, make custom_path and out mutually exclusive, rename downbytes to retrieve
* remove trailing whitespace
* run pre-commit hooks
2016-12-18 03:05:00 +01:00
Noam Meltzer
93bf21a0a4
jobqueue.py: stability improvments
...
- Job.job_queue is now weakref.proxy reducing the risk of cyclic
pointers preventing Job object from being deleted.
- JobQueue._put(): raise if both next_t and job.interval are None
- Don't put repeating job back to queue if user had disabled it was
disabled during the time of execution.
- New method: Job.is_removed() - promising a consistent API (instead of
access to private member Job._remove)
- Documentation fixes.
2016-12-15 00:17:57 +02:00
Jannes Höke
cbf93e1046
switch to run_x naming scheme
2016-12-14 18:01:44 +01:00
Jannes Höke
a1a8628c75
bot.py: fix argument order, setWebhook: make 'url' and 'webhook_url' mutually exclusive
2016-12-14 17:38:06 +01:00
Jannes Höke
d5ce32c672
removed Job.run_immediately and related code
2016-12-14 17:15:52 +01:00
Jannes Höke
09ddc1b1a8
DAAAANGER ZOOOONE
2016-12-14 16:27:45 +01:00
Jannes Höke
c7cd379016
jobqueue.py: move the check for job.interval types into Job.__init__
2016-12-14 06:30:18 +01:00
Jannes Höke
84f3bc0c79
README.rst: update api support date
2016-12-14 00:51:43 +01:00
Jannes Höke
92dc9b81ce
bot.py: implement changes of december 04 (bot api 2.3.1)
2016-12-14 00:50:34 +01:00
Jannes Höke
8ead72e3ef
jobqueue: add support for specifying next_t in datetime.datetime or datetime.time
2016-12-13 23:38:13 +01:00
Jannes Höke
a37add39f4
[ci skip] update timerbot.py to use chat_data
2016-12-13 21:57:37 +01:00
Jannes Höke
71530f404d
Bump version to v5.3.0
2016-12-11 23:51:51 +01:00
Jannes Höke
0cd7ecab50
fix test_filters_reply
2016-12-11 23:16:10 +01:00
Jeong Arm
c5f9e53d44
Add "reply" filter ( #465 )
...
* Add "reply" filter
This filter will filter messages that reply to other's message.
* Add test for "reply" filter
* Add "Kjwon15" to AUTHORS.rst
2016-12-11 22:45:51 +01:00
Noam Meltzer
acf1541395
Botapi2.3 ( #471 )
...
* New fields channel_post and edited_channel_post for Update
refs #468
* setGameScore() changes
- Changed behaviour: messages with high scores will be update with new
high scores by default. (documentation fix)
- Use (new) disable_edit_message in setGameScore to disable the above new
behaviour.
- The edit_message parameter from setGameScore is no longer in use. For
backward compatibility, it will be taken into account for a while,
unless disable_edit_message is passed explicitly.
refs #468
* New field forward_from_message_id for Message.
refs #468
* New parameter cache_time for answerCallbackQuery
refs #468
* replykeyboardhide renamed to replykeyboardremove
refs #468
* Unitests for updated setGameScore semantics
refs #468
* Backward compatibility for ReplyKeyboardHide
refs #468
* Fix docstrings of wrapper methods in Message
* Unitest new field forward_from_message_id of Message
refs #468
* Fix testMaxCaptionLength
Telegram servers changed their behaviour - now they truncate a long
caption instead of returning an error.
* MessageHandler: Added support for channel posts
* Fix flake8 complaints in a manner which yapf will like it too.
* fix rst markup
2016-12-11 22:44:52 +01:00
Jacob Bom
906a1b8d7d
message.edit_reply_markup now correctly edits reply_markup ( #473 )
2016-12-08 13:23:51 +01:00
lisitsky
a2fddbe85c
Fix telegram API change, returning '404 Not found' ( #461 )
...
* Fix telegram API change, returning '404 Not found' with raising own TelegramError rather native exception
* Change exception to InvalidToken in test and request util
* Added myself to AUTHORS. Thx for appreciation :)
2016-11-09 14:36:42 +01:00
Wesley Gahr
68e87db909
Job queue time units ( #452 )
...
* Adding timeunit and day support to the jobqueue
* Adding tests
* Changed the file permission back to 644.
* Changed AssertEqual argument order to (actual, expectd).
* Removed the TimeUnit enum and unit param, instead use datetime.time for interval.
* Removing the TimeUnits enum and unit param in favour of optionally using a datetime.time as the interval.
* Removing the TimeUnits enumeration, forgot the remove it in the last one.
* Removed some old docstrings refering to the TimeUnits enum.
* Removed the old TimeUnits import.
* Adding some error handling for the 'days' argument (only a 'tuple' with 'Days')
* Writing the error message directly in the exception.
* Moving a debug statement wrongfully saying a job would be running on days it wouldn't.
* Writing error messages directly in the exceptions instead of making an extra variable.
* Replacing datetime.time in favour of datetime.timedelta because of the get_seconds() method.
* Adding error handling for the method .
* Splitting the tests up in multiple ones, no float test because I haven't found a reliable way to test it.
* Excluding .exrc file.
* Removing \ at EOF of ValueError.
* Replacing Enums with plain new-style classes.
* Using numbers.number to check for ints/floats instead of seperate int/float checks.
* Fixing typo, number -> Number.
* Changed lower_case Days attributes to UPPER_CASE.
* Different formatting for Days class, removed the get_days function in favour of a tuple.
* Removed redundant function get_days.
* Edited the docstring for next_t to also take datetime.timedelta.
* Removed for-loop in favour of any().
* Changed docstring for interval.
* Removed debug print.
* Changing some docstrings.
* Changing some docstrings (again).
2016-11-08 23:39:25 +01:00
Blue
a7bfb0c3a1
hide inline keyboard in conversationbot example ( #439 )
2016-11-08 22:14:11 +01:00
Jannes Höke
e76ee6bb57
[ci skip] docs: add even more missing classes (wtf)
2016-11-01 09:37:03 +01:00
Jannes Höke
65061f8a99
[ci skip] docs: add all missing classes
2016-11-01 09:01:36 +01:00
Jannes Höke
dabbbcafcb
[ci skip] docs: remove superfluous text in index.rst
2016-11-01 08:15:51 +01:00
Jannes Höke
1eb4b40dbf
[ci skip] docs: add logo to html and pdf builds
2016-11-01 08:09:25 +01:00
Jannes Höke
7167936692
[ci skip] pdf docs: use a4paper, update motto
2016-11-01 07:54:04 +01:00
Jannes Höke
aa3ca38837
Sphinx restructuring: Now builds PDF and better HTML docs ( #449 )
...
* update sphinx source files to properly build latexpdf and improve html build
* fix docstrings and sphinx sources to get rid of warnings
* add telegram.contrib.rst
2016-11-01 06:53:51 +01:00
Jannes Höke
b22c3cc5c0
[ci skip] add state diagrams for conversation handler examples
2016-10-28 08:26:02 +02:00
Jannes Höke
2786252a51
Bump version to v5.2.0
2016-10-25 20:10:36 +02:00
Jannes Höke
3f30f74024
update examples to use bitwise filters
2016-10-25 19:51:56 +02:00
Jannes Höke
79fc3be9cd
Update README.md
2016-10-25 19:37:19 +02:00
Jannes Höke
71c73bdc74
Update README.md
2016-10-25 19:36:57 +02:00
neutronnnate
761547e71d
Issue 422: Fixed start_polling with clean=True can cause 'Too Many Requests' error from Telegram. ( #437 )
2016-10-25 19:30:05 +02:00
Jannes Höke
10bdf8212c
Add pass_user_data and pass_chat_data to Handler ( #436 )
...
* initial commit for user_data
* add chat_data and use defaultdict
* fix chat_data copy-paste error
* add test for user_data and chat_data
* fix case where chat is None
* remove braces from import line
2016-10-25 19:28:34 +02:00
Kristofer Kirss
45936c9982
Remove deprecated argument from Updater docstring ( #444 )
...
Argument (job_queue_tick_interval) was removed with commit 3aedd78 but the docstring in updater.py wasn't.
2016-10-23 00:31:44 +03:00
Jannes Höke
fae1896232
Switch to readthedocs ( #443 )
...
* replace pythonhosted by readthedocs
* fix rtd links in examples/README
2016-10-19 18:00:33 +02:00
Jacob Bom
2518ddac22
Update comtributing guide with explicit kwargs
2016-10-19 13:07:20 +02:00
Jacob Bom
61fe438a8b
Merge pull request #431 from python-telegram-bot/october3
...
Add api changes as of october 3
2016-10-19 12:59:00 +02:00
Jacob Bom
960862ccb1
Merge branch 'master' into october3
...
# Conflicts:
# telegram/bot.py
# telegram/callbackquery.py
# telegram/chat.py
# telegram/ext/messagehandler.py
# telegram/inlinekeyboardbutton.py
# telegram/inlinequeryresultcachedaudio.py
# telegram/message.py
# tests/test_filters.py
2016-10-19 12:35:50 +02:00
Jacob Bom
4e5f4582dd
Merge pull request #411 from python-telegram-bot/bitwise-filters
...
Make filters and/or-able using bitwise operators.
2016-10-19 11:40:35 +02:00
Jacob Bom
225bc24c2a
Merge pull request #442 from python-telegram-bot/explicit-kwargs
...
Use explicit kwargs and change/add a bunch of documentation.
2016-10-19 11:36:19 +02:00
Noam Meltzer
a5f9aa3171
more documentation
2016-10-17 23:44:40 +03:00
Noam Meltzer
78088f4f6a
Fix grammer: 'a object' -> 'an object'
2016-10-17 01:22:40 +03:00
Noam Meltzer
59fa717023
Documentation improvements + small style fixes
2016-10-17 01:11:20 +03:00
Noam Meltzer
31cab0d1b4
editMessageCaption & editMessageReplyMarkup: more validation on input
2016-10-17 01:09:44 +03:00
Jacob Bom
7fafaa1ea3
Update support date in readme.
2016-10-16 16:54:08 +02:00
Jacob Bom
e367b8519d
Use explicit kwargs for all class inits in pure api.
...
While not stickily necessary for most classes (since user isn't directly creating them) it still unifies our approach.
However for some like ReplyKeyboardHide where users are making the classes themselves it should improve IDE autocomplete support.
2016-10-16 16:24:13 +02:00
Jacob Bom
b610316667
Use explicit kwargs for all bot methods.
...
This improves support for many IDEs' autocompletion.
2016-10-16 15:54:48 +02:00
Jacob Bom
39832d2f6b
__str__ behaves differntly on py2 apparently.
2016-10-16 13:19:42 +02:00
Jacob Bom
5408c23e33
assertRegexMatches still exists for now. Use it.
2016-10-16 12:48:45 +02:00
Jacob Bom
62dd3a33e6
Better kwargs defaults.
2016-10-16 12:41:12 +02:00
Jacob Bom
3754cdafb2
send_game has differnt kwargs.
2016-10-16 12:41:12 +02:00
Jacob Bom
305ff93018
set_game_score might return True
2016-10-16 12:41:12 +02:00
Jacob Bom
29e0cc64e9
Fix py2 compat
2016-10-15 23:29:46 +02:00
Jacob Bom
a5671a8fb1
Merge pull request #423 from python-telegram-bot/edit-class-method
...
Add edit_* class methods
2016-10-15 23:03:43 +02:00
Jacob Bom
f99b2f8f3b
Inprove coverage
2016-10-15 22:59:41 +02:00
Jacob Bom
c626044a30
Add "all" filter
...
Since and empty list cannot (in the future, currently only deprecated) be used.
2016-10-15 22:58:55 +02:00
Noam Meltzer
a68cf8d464
Respect RetryAfter with polling Updater
2016-10-15 23:39:50 +03:00
Jacob Bom
de96cc87ea
Only build master branch and PRs on travis. Yapf only on py3.5.
2016-10-14 11:24:00 +02:00
Jacob Bom
ca5e3146c6
Fix docstring according to Jannes' commentns.
2016-10-14 10:32:12 +02:00
Noam Meltzer
53a574bbbb
Improve unitests coverage
2016-10-13 22:52:53 +03:00
Noam Meltzer
5b8efe0c14
upgrade yapf to ver 0.12.2
2016-10-12 23:56:57 +03:00
Noam Meltzer
d07a1c3f67
yapf: use our own mirror of yapf & update to version 0.12.2
2016-10-12 23:51:46 +03:00
Noam Meltzer
32a78722ae
yapf fixes
2016-10-12 23:33:52 +03:00
Jacob Bom
04feeeff55
Update test cases
...
Needs proper animation file_id and size.
Also assertEqual can't test if two objects have the same data, so we just check the file_id instead.
2016-10-12 20:30:34 +02:00
Jannes Höke
a1495956aa
temporary fix for documentation builds on readthedocs
2016-10-10 12:51:12 +02:00
Patrick Hofmann
8dc10fc7b2
fixes broken test cases with PhotoSize, Game and Animation classes ( #435 )
...
* fixes broken test with PhotoSize, Game and Animation
However:
testSendGame and test_set_game_score both produces *BadRequest: u'Wrong file identifier/HTTP URL specified'*.
* fixes test_set_game_score
* adds to_dict method to Game to prevent extra collection type checks in base.TelegramObject
2016-10-10 11:44:40 +02:00
Jacob Bom
7ad92dcc65
Add test for set_game_score
2016-10-09 12:39:05 +02:00
Jacob Bom
d1ddfaddf0
Add tests for Game, Animation and sendGame.
...
Still need setGameScore (I'm thinking we can set it to the ever increasing
envvar 'TRAVIS_BUILD_NUMBER') and getGameHighScores.
The tests currently don't work... Since I don't really understand how
PhotoSize works... Please halp :P
2016-10-07 23:57:10 +02:00
Jacob Bom
b7c7612b3f
Add game filter
2016-10-07 22:37:29 +02:00
Jacob Bom
ade89772f4
Fix tests
...
Data is an optional kwargs in CallbackQuery according to Telegram
2016-10-07 22:32:54 +02:00
Jacob Bom
67b98e3190
Merge pull request #433 from PH89/october3
...
small fix for game related parts
2016-10-07 22:25:52 +02:00
Patrick Hofmann
e672625a41
add myself to AUTHORS.rst
2016-10-06 18:17:42 +02:00
Patrick Hofmann
8cab735342
small fix for game related parts
...
* bot.py fix copy paste error in url
* callbackquery.py make data field optional
* message.py introduce optional game field
2016-10-06 17:52:53 +02:00
Noam Meltzer
bfb4c63d60
add unitest for getWebhookInfo
2016-10-06 00:11:28 +03:00
Noam Meltzer
01a5a1c5b3
small documentation fix
2016-10-05 23:22:55 +03:00
Noam Meltzer
1db1b76a7c
fix test_video unitest
2016-10-05 23:19:17 +03:00
Jacob Bom
976f34082f
Add possibly good-enough test for all_members_are_admin
...
Should be good enough... If we /really/ wanted to we could get two different chats from telegram and check them, but it really shouldn't be necessary.
2016-10-05 17:55:00 +02:00
Jacob Bom
6b7788570c
Add tests for captions in audio and voice
2016-10-05 17:50:48 +02:00
Noam Meltzer
1f9d3163dd
Game: use explicit keyword args + added docmentation
2016-10-04 02:17:12 +03:00
Noam Meltzer
837e9d2964
Animation: use explicit keyword args + added documentation
2016-10-04 02:16:33 +03:00
Noam Meltzer
fab97df58a
GameHighScore: added attributes documentation
2016-10-04 02:06:22 +03:00
Noam Meltzer
d70fc48e94
getGameHighScores(): added documentation + fixed copy-paste errors
2016-10-04 01:57:19 +03:00
Noam Meltzer
36192912c2
setGameScore: fixes
...
- fix copy/paste errors
- return Message object
2016-10-04 01:56:05 +03:00
Noam Meltzer
34748ec228
callbackgame: small documentation fix
2016-10-04 01:50:34 +03:00
Noam Meltzer
d5567cd9cd
sendGame(): mall fixes
2016-10-04 01:37:44 +03:00
Noam Meltzer
2463b4b9c8
New exception: RetryAfter
...
Also, small fix to the description text of ChatMigrated
2016-10-04 01:27:45 +03:00
Noam Meltzer
7cf5009517
small documentation fixes
2016-10-04 01:10:30 +03:00
Noam Meltzer
9b74625d4a
answerCallbackQuery: fix copy/paste: show_alert -> url
2016-10-04 00:55:29 +03:00
Noam Meltzer
4180c069b3
InputFile: use self instead of explicit class name
2016-10-04 00:25:32 +03:00
Noam Meltzer
3a0f219783
inputfile: define the file types as constant and use iterator
2016-10-04 00:25:05 +03:00
Noam Meltzer
3c889655c1
Allow http url as a file_id
...
N.B. test_send_video_mp4_file_url() is still failing, probably because
of telegram servers bug. Will contact telegram bot support about that.
2016-10-04 00:20:17 +03:00
Jacob Bom
c2b8c4bf95
Fix regexGroupHandlerCallbackQuery test
2016-10-03 21:29:30 +02:00
Jacob Bom
8234321a20
Fix tests for Inline Voice Queries
2016-10-03 21:28:35 +02:00
Jacob Bom
5e2d96b47d
Make tests actually run at all
2016-10-03 21:07:41 +02:00
Jacob Bom
551f6c556c
Add game parameters in various places
...
Also chat_instance in CallbackQuery which will break a lot of tests probably
2016-10-03 21:01:38 +02:00
Jacob Bom
ae17eb3272
Add InlineQueryResultGame
2016-10-03 20:55:21 +02:00
Jacob Bom
358dd795c7
Add the rest of game_ methods to bot.
2016-10-03 20:43:02 +02:00
Jacob Bom
151a441af7
Add send_game
2016-10-03 20:40:17 +02:00
Noam Meltzer
1f67623615
Fix import order
2016-10-03 21:34:08 +03:00
Noam Meltzer
8737b5de63
fix syntax error by some weird char
2016-10-03 21:17:04 +03:00
Jacob Bom
f3b8a3a5e9
Merge remote-tracking branch 'origin/october3' into october3
2016-10-03 20:10:14 +02:00
Jacob Bom
9e9309eb90
Add all new Game related classes
...
Missing docstrings for now though, wanna add everything first
2016-10-03 20:09:57 +02:00
Noam Meltzer
e8a34d8eef
cosmetic fixes and documentation for getWebhookInfo
2016-10-03 20:43:10 +03:00
Jacob Bom
34c62a633b
Add url to answerCallbackQuery
2016-10-03 15:25:07 +02:00
Jacob Bom
868d9217bc
Add WebhookInfo and getWebhookInfo
...
Still needs tests though
2016-10-03 15:16:43 +02:00
Jacob Bom
f7ede4baea
Add caption fields to voice and audio
...
Or at least the methods/classes for sending.
2016-10-03 15:05:49 +02:00
Jacob Bom
c3e07b1056
Add switch_inline_query_current_chat
2016-10-03 14:52:58 +02:00
Jacob Bom
79bdfe4c5d
Allow filters to be passed without list.
...
Also deprecates actually using a list.
2016-09-29 19:10:22 +02:00
Michael Elovskikh
46657afa95
Start additional threads only when necessary ( #415 )
...
* Start all additional threads only when necessary.
* Deprecate prevent_autostart in the c'tor of JobQueue.
2016-09-27 10:21:35 +03:00
Jacob Bom
79e065a730
Add __str__ and __repr__ to MergedFilter.
2016-09-25 16:31:06 +02:00
Jacob Bom
9928a1eefc
Add test for edit_text
2016-09-25 16:11:19 +02:00
Jacob Bom
0e2c3666c0
Add edit_* family of methods to CallbackQuery.
...
Either edits the message attribute, or the message associated with the inline_message_id.
2016-09-25 16:03:06 +02:00
Jacob Bom
a996e8873f
Add edit_* family of methods to Message.
2016-09-25 15:50:58 +02:00
Jacob Bom
3244417f61
Add docs for filters.
2016-09-25 00:30:04 +02:00
Jacob Bom
61596400e1
__call__ should return the result
...
Also add tests with both & and |.
2016-09-24 18:56:54 +02:00
Jacob Bom
be0f5bc519
Merge branch 'master' into bitwise-filters
...
# Conflicts:
# telegram/ext/messagehandler.py
# tests/test_filters.py
2016-09-24 18:30:58 +02:00
Jacob Bom
921fbae2f3
Merge branch 'master' into bitwise-filters
2016-09-24 18:21:06 +02:00
Jacob Bom
2161681131
Use filter method instead of __call__
...
__call__ is scary looking for users wanted to create their own filters.
Also allows us to put additional logic in __call__ if we want in the future.
2016-09-24 18:20:32 +02:00
Jannes Höke
9d0e0386d9
Link echobot2 example from master
2016-09-24 16:30:39 +02:00
Rahiel Kasim
dc7a459511
README: formatting (adding a newline)
2016-09-24 15:46:02 +02:00
Jannes Höke
be675f0118
update all examples to use instance methods ( #421 )
2016-09-24 15:32:22 +02:00
Jannes Höke
c49058dbb4
Bump version to v5.1
2016-09-24 15:29:23 +02:00
Jannes Höke
8e80a8d273
comment out test_reply_contact
2016-09-24 14:25:31 +02:00
Jannes Höke
cbe057083f
fix test_send_photo_resend
2016-09-24 14:16:04 +02:00
Jacob Bom
5f6138b06b
Merge pull request #409 from python-telegram-bot/entities-filter
...
Add entities filter
2016-09-24 14:02:01 +02:00
Jacob Bom
1b99caa2f9
Merge remote-tracking branch 'origin/master' into entities-filter
2016-09-24 13:46:55 +02:00
Jacob Bom
e16c1da6b1
Change entities filter to be singular.
...
Also remove the faulty example completely since it should be no longer needed.
2016-09-24 13:38:56 +02:00
Jannes Höke
e1242b3b4a
message.py: add quote keyword argument to reply_x methods ( #420 )
2016-09-23 17:44:09 +02:00
Gareth Dwyer
93dde1ac1d
Add install from source instructions to readme ( #419 )
2016-09-23 17:13:32 +02:00
Jannes Höke
05fb9d161a
Link echobot2 example from tag v5.0
2016-09-23 17:13:06 +02:00
Eli Gao
a91fe5f8f6
Properly split and handle arguments in CommandHandler ( #414 )
...
* Properly split and handle arguments in CommandHandler
* Update the docstring for pass_args in CommandHandler
* Properly split and handle arguments in StringCommandHandler
2016-09-20 06:38:49 +02:00
Jannes Höke
5116a77221
Class methods ( #362 )
...
* bot.py: add create_references method
* create bot reference in webhook handler, use create_references on new updates
* message.py: implement reply_text
* echobot2.py: use Message.reply_text
* fix create_references in webhook handler
* add some more instance methods
* Chat.kick_member and unban_member
* bot.py: Create bot references in outgoing messages
* add tests for everything testable
* test_updater.py: add create_references method to MockBot
* remove Bot.create_references and refactor TelegramObject.de_json to take the additional parameter bot
* List bot as named kwarg where used
* file.py: Use Bot.request property instead of Bot._request attr
2016-09-20 06:36:55 +02:00
Jannes Höke
1f597c6b4a
Merge branch 'LiaungYip-master'
2016-09-20 05:07:00 +02:00
Jannes Höke
1efd330e59
ConversationHandler: Fix #373
2016-09-20 05:00:39 +02:00
Jannes Höke
af3e8c6440
Merge branch 'master' of https://github.com/LiaungYip/python-telegram-bot into LiaungYip-master
2016-09-20 04:10:39 +02:00
Jacob Bom
f34c09dd72
Fix image sizes in tests.
2016-09-14 19:58:30 +02:00
Jacob Bom
71e74da0a2
Make filters and/or-able using bitwise operators.
...
See associated PR for more info.
2016-09-14 19:29:15 +02:00
Jacob Bom
97bb04cd38
Faulty example was faulty.
2016-09-13 20:50:25 +02:00
Jacob Bom
7ab007d8d4
Add Filters.entities test.
2016-09-13 20:47:43 +02:00
Jacob Bom
f7b497c1b4
Fix in keyword ordering
...
We're testing for a string in list, not the other way around :P
2016-09-13 20:45:42 +02:00
Jacob Bom
4e60008086
Add entities filter
...
Should ideally superseed #375 .
2016-09-13 20:09:46 +02:00
Rahiel Kasim
5285f63e4a
Merge pull request #388 from python-telegram-bot/emoji
...
deprecate telegram.Emoji
2016-09-13 19:25:58 +02:00
Jacob Bom
6647ae3c25
Add methods to parse entities in Message
...
Should close #400 .
* Add parse_entity
* Add parse_entities
* Add MessageEntity types as constants to MessageEntity.
* Add MAX_MESSAGE_ENTITIES to constants.py
Note: the value has been found by experimentation as opposed to extracted from the api docs.
* Add tests for parse_entity and parse_entities
2016-09-07 08:49:09 +02:00
Noam Meltzer
e4a132c0e4
Reusable dispatcher ( #402 )
...
* Create a Request class which maintains its own connection pool
* When creating a Bot instance a new Request instance will be created if one wasn't supplied.
* Updater is responsible for creating a Request instance if a Bot instance wasn't provided.
* Dispatcher: add method to run async functions without decorator
* Dispatcher can now run as a singleton (allowing run_async decorator to work) as it always did and as multiple instances (where run_async decorator will raise RuntimeError)
2016-09-06 16:38:07 +03:00
Rahiel Kasim
ca81a75f29
Merge pull request #396 from python-telegram-bot/json
...
use ujson as JSON en/decoder if available
2016-08-26 11:42:28 +02:00
Rahiel Kasim
da87d4ba78
fix yapf
2016-08-26 11:17:05 +02:00
Rahiel Kasim
4753d27bd5
bump yapf to 0.11.0
2016-08-26 10:55:41 +02:00
Rahiel Kasim
eabfc0b06b
set ujson as optional dependency, test CPython builds with ujson
2016-08-26 10:23:17 +02:00
Rahiel Kasim
fcda567f8c
use ujson as JSON en/decoder if available
2016-08-26 09:40:46 +02:00
Li-aung 'Lewis' Yip
1c36ff46ad
Add myself to AUTHORS.rst
2016-08-24 09:37:23 +08:00
Jacob Bom
ffff0938f4
Add forwarded filter ( #392 )
2016-08-23 16:55:50 +02:00
Li-aung 'Lewis' Yip
ab2d6eb494
Fix "key not found" exception if the very first message handler in a ConversationHandler returns the state ConversationHandler.END.
2016-08-22 05:49:37 +08:00
Rahiel Kasim
fe14000515
remove tests for telegram.Emoji
2016-08-21 11:58:00 +02:00
Rahiel Kasim
5d27059631
deprecate telegram.Emoji
2016-08-21 11:50:22 +02:00
Rahiel Kasim
00bba73673
drop Python 2.6 support ( closes #245 ) ( #386 )
...
* drop Python 2.6 support (closes #245 )
* fix NullHandler import
* README: explicitly mention Py3 and PyPy compatibility
2016-08-20 22:01:07 +02:00
eugenio412
e9c5ee7ad6
unset but ( #383 )
...
solved the bug that prevented the unset to work
2016-08-16 21:13:31 +02:00
MWeesenaar
f2f62423ba
Merge pull request #379 from bomjacob/master
...
Fix #376 : Execfile not in python 3. Take #2
2016-08-11 14:58:24 +02:00
Mikki Weesenaar
26a0a173f4
Manual merge
2016-08-11 14:38:55 +02:00
Jacob Bom
b736e1e855
Move the exec out of function, since that's a whole other scope...
2016-08-11 13:08:28 +02:00
Jacob Bom
bd3fa3bb64
Fix #376 : Execfile does not exist in python 3 ( #377 )
...
* Add execfile function since it's missing in python 3.
* Remove extra space.
2016-08-10 21:39:14 +02:00
Jacob Bom
c252042ddf
Remove extra space.
2016-08-10 21:00:01 +02:00
Jacob Bom
8475c322af
Add execfile function since it's missing in python 3.
2016-08-10 20:59:11 +02:00
Ilya Strukov
dd4c0f0f1d
Add missing return statement in timerbot example ( #368 )
2016-08-07 17:59:58 +02:00
Jannes Höke
555e36ee80
tests
2016-08-06 14:47:45 +02:00
Jannes Höke
5134f71380
Merge branch 'more-regex-handlers' of https://github.com/bomjacob/python-telegram-bot into bomjacob-more-regex-handlers
2016-08-06 14:32:05 +02:00
Jacob Bom
32268597d9
Wrap long lines
2016-08-06 14:19:41 +02:00
Jacob Bom
4feb2553ff
Add self to Authors.rst
2016-08-06 13:45:43 +02:00
Jacob Bom
cd2f956e56
Also fix linebreak ^^
2016-08-06 13:35:58 +02:00
Jacob Bom
18fdb5ed13
Fix weird indent.
2016-08-06 13:35:06 +02:00
Jacob Bom
8c698caa12
Add Regex handling to CallbackQueryHandler and InlineQueryHandler.
...
Mostly a copy-paste from RegexHandler.
Not fully tested! Also needs yapf - sorry.
2016-08-06 13:33:38 +02:00
Jannes Höke
587908457e
move version string to telegram/version.py ( #361 )
2016-07-29 15:40:11 +00:00
Noam Meltzer
4375820863
fixup! updated issue template
2016-07-25 22:31:23 +03:00
Noam Meltzer
171c70b4c2
updated issue template
...
[ci skip]
2016-07-25 22:29:55 +03:00
overquota
f1ee54fa73
ChatMigrated exception ( #353 )
...
* ChatMigrated exception
2016-07-25 21:50:33 +03:00
Jannes Höke
90913724ca
Update README.rst
2016-07-24 02:42:55 +02:00
Jannes Höke
9d4691e50d
Create README.md
2016-07-24 02:35:01 +02:00
Rahiel Kasim
c4928229d6
README: link to website
2016-07-24 01:21:35 +02:00
Jannes Höke
2f2337cac1
update motto in readme
2016-07-24 01:16:57 +02:00
Jannes Höke
f5c57cd6c6
new inlinekeyboard example ( #355 )
2016-07-20 00:15:03 +02:00
Rahiel Kasim
c51c2224da
README: update link to new conversationbot example
2016-07-15 12:36:37 +02:00
Jannes Höke
834bf192b9
Bump version to v5.0.0
2016-07-15 01:48:11 +02:00
Jannes Höke
d5486433e5
use job context for timerbot example
2016-07-15 01:46:27 +02:00
Jannes Höke
c9ec436d68
remove old state machine example
2016-07-15 01:45:43 +02:00
Jannes Höke
ad3eec2af8
ConversationHandler ( #331 )
...
* initial commit for conversationhandler and example
* implement simple Promise for run_async/conversationhandler
* refactor Promise._done to done
* add handling for timed out Promises
* correctly handle promises with None results
* fix handling tuple states
* update comments on example
* Added a first test on the ConversationHandler.
* Fixed a small typo.
* Yapf'd.
* add sphinx doc for conversation handler
* fix title for callbackqueryhandler sphinx docs
2016-07-15 01:30:54 +02:00
leandrotoledo
e3fe1d2632
Merge branch 'master' of https://github.com/python-telegram-bot/python-telegram-bot
2016-07-14 17:19:13 -03:00
leandrotoledo
52bd3daa39
Bumping version of pre-commit [ci skip]
2016-07-14 17:18:29 -03:00
Leandro Toledo
b4e8209f2c
Update CONTRIBUTING.rst
...
Adding a bullet on "assertEqual method's arguments should be in ('actual', 'expected') order"
2016-07-14 17:16:25 -03:00
Valentijn
f5f95ef8c9
Documentation ( #350 )
...
* Small fixes to documentation and add myself to AUTHORS.
* Rework CONTRIBUTIONS.rst
Use code-blocks instead of literals, change headings for portability and use a relative link to AUTHORS instead of linking to a specific copy.
2016-07-14 16:56:05 -03:00
Rahiel Kasim
04a871aff5
introduce constants module ( #342 )
2016-07-14 21:48:31 +02:00
Jannes Höke
81a755a7d8
Merge branch 'urllib3_fix_proxy_auth'
2016-07-13 15:09:23 +02:00
Noam Meltzer
6016aca0ba
Bump version to v4.3.4
2016-07-12 23:34:49 +03:00
Noam Meltzer
7c908db901
urllib3: can now connect through proxies which require auth
...
fixes #343
2016-07-12 23:31:38 +03:00
Noam Meltzer
d192b385ea
dispatcher: add comment to describe the reason for conpool size
2016-07-12 21:58:27 +03:00
Jannes Höke
f0b2028e3f
Merge pull request #344 from python-telegram-bot/silence-webhook-logging
...
Move webhook handler logs to logging at DEBUG level
2016-07-12 14:35:14 +02:00
Mikki Weesenaar
f443003408
Small change in the documentation.
2016-07-12 13:45:37 +02:00
Jannes Höke
afc36a235b
move webhook handler logs to logging at DEBUG level
2016-07-11 23:44:40 +02:00
Noam Meltzer
b76337de87
__main__.py: assist with creating issues on github
...
usage:
python -m telegram
and copy/paste the output
2016-07-09 14:40:53 +03:00
Noam Meltzer
6afee6e0bd
Merge pull request #340 from python-telegram-bot/v4.3.x
...
urllib3: now supports proxy
2016-07-08 23:53:56 +03:00
Jannes Höke
27e57bbf58
Bump version to v4.3.3
2016-07-08 22:13:46 +02:00
Noam Meltzer
4990d664bb
Merge pull request #339 from python-telegram-bot/urllib3_fix_proxy
...
urllib3: now supports proxy
2016-07-08 23:00:02 +03:00
Noam Meltzer
b3e42c3e20
urllib3: now supports proxy
...
fixes #336
2016-07-08 22:33:37 +03:00
Jannes Höke
c2cce40299
Merge branch 'use-timeout'
2016-07-04 21:56:26 +02:00
Jannes Höke
a2ed7b26f1
Bump version to v4.3.2
2016-07-04 21:52:00 +02:00
Jannes Höke
89a3dc8372
use urlopen timeout
2016-07-04 21:40:31 +02:00
Jannes Höke
9fd298a393
Merge pull request #307 from python-telegram-bot/jobqueue-rework
...
Make job queue API similar to the dispatcher, add new functionality
2016-06-29 16:20:43 +02:00
Jannes Höke
ecbc268781
Bump version to v4.3.1
2016-06-29 15:53:52 +02:00
Jannes Höke
c7c21c94ea
update requirement: urllib3>=1.10
2016-06-29 15:53:10 +02:00
Jannes Höke
57efde5e0f
Bump version to v4.3
2016-06-28 13:35:42 +02:00
Jannes Höke
31073101a3
yapf
2016-06-24 19:22:49 +02:00
Noam Meltzer
1e0ebe89f3
JobQueue: minimize the amount of places changing self.__tick state
...
- start the jobqueue (by default) during __init__() instead of during
put()
- protect self._next_peek and self.__tick with a Lock
- rename self._start() to self._main_loop()
- stop() is now blocking until the event loop thread exits
2016-06-24 19:35:54 +03:00
Noam Meltzer
35872d7a8b
test_jobqueue: fix test_jobs_tuple()
...
this test was based on timing and assumed that the JobQueue did not have
time to start processing the queue before checking the assert.
what we really should do is make sure JobQueue does not process anything
2016-06-24 19:13:40 +03:00
Noam Meltzer
f65b6911ea
JobQueue: use class name for the logger name
2016-06-24 19:13:40 +03:00
Noam Meltzer
02af1ea803
jobqueue: cosmetic fixes
2016-06-24 19:13:40 +03:00
Jannes Höke
c4a8ee5175
Merge branch 'master' into jobqueue-rework
...
Conflicts:
tests/test_jobqueue.py
2016-06-20 05:32:15 +02:00
Noam Meltzer
e0539d5992
Merge pull request #327 from python-telegram-bot/urllib3
...
Urllib3
2016-06-20 06:30:25 +03:00
Jannes Höke
738e3213a7
Merge branch 'master' into jobqueue-rework
2016-06-20 00:49:01 +02:00
leandrotoledo
b41f7e3e79
Code style with latest yapf
2016-06-19 17:50:02 -04:00
Jannes Höke
caf72ca490
Merge branch 'urllib3' of github.com:python-telegram-bot/python-telegram-bot into urllib3
2016-06-19 23:46:53 +02:00
Jannes Höke
7635bc0eec
comments, lock thread pool, while 1 and snake_case everywhere
2016-06-19 23:46:34 +02:00
Jannes Höke
703bece155
set loglevel of urllib3 to WARNING by default
2016-06-19 23:40:34 +02:00
Jannes Höke
949f4a4fbd
update requirements: minimum versions of urllib3 and future
2016-06-19 23:39:00 +02:00
leandrotoledo
05522e4321
Merge remote-tracking branch 'origin/master' into urllib3
2016-06-19 17:38:19 -04:00
leandrotoledo
4f101a79bb
Update travis yapf [ci skip]
2016-06-19 17:08:12 -04:00
Noam Meltzer
5b91194cc7
new yapf version, new cosmetic fixes
2016-06-18 20:05:10 +03:00
Noam Meltzer
494a7ec1e4
ypaf fixes
2016-06-18 19:57:11 +03:00
Noam Meltzer
fc05d3a626
switch back to PoolManager
...
telegram servers might send a reponse with HTTP 302 (redirect) to
another hostname. in such case HTTPSConnectionPool will fail to do the
job
2016-06-18 19:50:18 +03:00
Noam Meltzer
bc77c845ea
test_updater: make sure that conpool is stopped before setting updater
...
even for the first unitest, it might come after another unitests from
another file which had already init the conpool.
2016-06-18 09:53:08 +03:00
Noam Meltzer
a814e9de6b
make sure to stop conpool between sensitive unitests
2016-06-18 00:50:44 +03:00
Noam Meltzer
d37b6d6735
make sure to stop Updater after the test_createBot is over
2016-06-18 00:01:36 +03:00
Noam Meltzer
e479c7f25e
type hinting (cosmetic fix)
2016-06-17 23:59:32 +03:00
Noam Meltzer
a30411c9fa
make sure to remove the stopped dispatcher threads from ASYNC_THREADS
2016-06-17 23:58:22 +03:00
Noam Meltzer
881d1d0e25
fix/hack Updater.stop() not working on extreme cases
...
during test_bootstrap_retries_fail() there is an exception raised (by
design): TelegramError('test')
For a reason I haven't managed to pinpoint the above exception in its
precise timing caused the Updater to be left in a state which is
'self.running == False', but the dispatcher threads already initialized.
This patch identifies this extreme case and makes sure to go over the
stop procedure.
2016-06-17 23:53:18 +03:00
Noam Meltzer
cb6ddfded5
Merge remote-tracking branch 'origin/master' into urllib3
2016-06-17 17:54:04 +03:00
Noam Meltzer
bda0244ed8
updater: fix print in log
2016-06-17 16:52:25 +03:00
Rahiel Kasim
9338f93d24
Merge pull request #325 from python-telegram-bot/examples
...
more robust echobot, let roboed go
2016-06-12 17:08:15 +02:00
Rahiel Kasim
e10fa66286
echobot: simplify handling messageless updates
2016-06-12 17:06:03 +02:00
Rahiel Kasim
deb9de0ba0
README: remove roboed, rename example
2016-06-12 16:58:18 +02:00
Rahiel Kasim
94fd6851ab
more robust echobot, let roboed go
2016-06-12 15:30:56 +02:00
leandrotoledo
897f9615f0
Bump version to v4.2.1
2016-06-10 09:44:17 -04:00
Leandro Toledo
86676d59f1
Merge pull request #321 from python-telegram-bot/editMessageText-decorator
...
Adds @message decorator to editMessageText #320
2016-06-04 05:19:27 -04:00
leandrotoledo
f0b91ecf46
Fix travis
2016-06-03 13:44:24 -04:00
leandrotoledo
bbbc622517
Adds @message decorator to editMessageText #320
2016-06-03 13:28:29 -04:00
Noam Meltzer
1f5601dae2
fix SyntaxWarning
2016-06-01 22:38:08 +03:00
Noam Meltzer
3608c2bbe5
dispatcher: if connection pool is already initialized raise exception
...
this will better protect the user from wrong usage
2016-06-01 22:30:34 +03:00
Noam Meltzer
c28763c5be
dispatcher: cosmetic fix
2016-06-01 22:30:33 +03:00
Noam Meltzer
dd8b6219b9
dispatcher: a little performance improvment
2016-06-01 22:30:33 +03:00
Noam Meltzer
78f9bdcac9
dispatcher: pep8 style fix
...
globals are supposed to be upper case
2016-06-01 22:30:09 +03:00
Jannes Höke
da95341d5b
Update README.rst
2016-06-01 00:05:09 +02:00
Jannes Höke
98be6abc11
Remove clibot.py example
2016-05-31 21:07:47 +02:00
Jannes Höke
b08d41d0ff
formatting
2016-05-31 15:35:40 +02:00
Jannes Höke
de2d732135
Merge branch 'master' into jobqueue-rework
...
Conflicts:
README.rst
telegram/ext/commandhandler.py
telegram/ext/messagehandler.py
2016-05-31 15:34:36 +02:00
Jannes Höke
1ff348adbb
issue warning if connection pool was initialized before Dispatcher
2016-05-31 13:47:43 +02:00
Jannes Höke
6b457bada5
use keepalive for connection pool
2016-05-31 13:45:43 +02:00
Jannes Höke
74283bd414
use HTTPSConnectionPool instead of PoolManager
2016-05-30 17:12:50 +02:00
Jannes Höke
41f6591ac6
more sensible logging
2016-05-30 17:12:27 +02:00
Leandro Toledo
6d08e1bc7f
Merge pull request #317 from jlmadurga/issue/316
...
Fix callbackquery to_dict
2016-05-30 11:35:44 -03:00
Juan Madurga
073d7949dc
fix callbackquery to_dict
2016-05-30 15:59:45 +02:00
Jannes Höke
dd91ce1f39
use single queue for thread pool, initialize connection pool with n+3
2016-05-30 13:09:23 +02:00
Jannes Höke
57759d8e6d
[drunk] use actual thread pool and queue new functions into the pool instead of starting new threads every time
2016-05-30 03:16:33 +02:00
Noam Meltzer
574fc8cddf
urllib3: validate https certificate
2016-05-30 01:05:19 +03:00
Noam Meltzer
b040568b07
test_bot: fix for urllib3 compatibility
2016-05-30 01:05:19 +03:00
Noam Meltzer
3076dfc086
use urllib3 instead of urllib(2)
2016-05-30 01:05:19 +03:00
Jannes Höke
f8a9722573
remove duplicate target names
2016-05-29 12:35:52 +02:00
Leandro Toledo
527daaf93d
Merge pull request #315 from jlmadurga/typo/changes
...
Fix typo in Transition to 4.0 link
2016-05-29 06:50:57 -03:00
Juan Madurga
986add59ab
fix typo in Transition to 4.0 link
2016-05-29 11:37:35 +02:00
Jannes Höke
bc62a1813a
fix rst according to collective.checkdocs
2016-05-28 23:36:51 +02:00
Jannes Höke
41432f5b02
bump version to v4.2.0
2016-05-28 22:49:15 +02:00
Jannes Höke
f737ab780a
Merge pull request #314 from python-telegram-bot/docs-restructuring
...
Move large parts from README to Wiki
2016-05-28 22:44:17 +02:00
Rahiel Kasim
e0e8f6b085
README: update docs badge link, https some links
2016-05-28 22:40:18 +02:00
Jannes Höke
17abf0274e
Fix formatting
2016-05-28 21:52:03 +02:00
Jannes Höke
8fab7ad302
move stuff to wiki, other stuff
2016-05-28 21:44:10 +02:00
Rahiel Kasim
f31bd91673
Merge pull request #305 from python-telegram-bot/move-botan
...
move botan from utils to contrib
2016-05-28 21:32:07 +02:00
Leandro Toledo
32ac617e2e
Merge pull request #312 from python-telegram-bot/timeout_take2
...
set default network_delay to 5 seconds
2016-05-28 15:14:54 -03:00
Noam Meltzer
7e7acdeb23
set default network_delay to 5 seconds
...
fixes #309
2016-05-28 19:34:16 +03:00
Leandro Toledo
792ad62fe8
Merge pull request #308 from python-telegram-bot/bot2.1
...
New methods for Bot 2.1 API
2016-05-28 12:14:01 -03:00
Jannes Höke
25bcfa9b35
add constants for Chat.type and ChatMember.status
2016-05-28 16:51:44 +02:00
Jannes Höke
ff00e211d7
include in warning that Py2.7 will still be supported
2016-05-28 16:44:39 +02:00
Jannes Höke
d40f0a8309
update update_queue and job_queue docstrings on all handlers
2016-05-28 16:04:19 +02:00
Jannes Höke
783f9c375c
move job_queue kwarg to end
2016-05-28 14:21:39 +02:00
Jannes Höke
406303d6bb
refactor: running -> _running, next_peek -> _next_peek
2016-05-28 13:48:30 +02:00
Jannes Höke
2534e0df9b
allow jobs to be ran outside of jobqueue
2016-05-28 13:41:23 +02:00
Rahiel Kasim
b06983a94a
let python 2 find the contrib module
2016-05-28 09:27:17 +02:00
Rahiel Kasim
2f408ab767
generate docs for botan
2016-05-28 09:18:36 +02:00
Rahiel Kasim
c8497424b7
move botan to contrib
2016-05-28 09:12:10 +02:00
Leandro Toledo
80fbe98b44
Reflecting tests for Filters change
2016-05-27 21:14:55 -03:00
Leandro Toledo
22e9326610
Merge remote-tracking branch 'origin/master' into bot2.1
2016-05-27 21:10:24 -03:00
Jannes Höke
a0bb5730c6
add allow_edited parameter to MessageHandler and CommandHandler
2016-05-27 11:07:06 +02:00
Jannes Höke
748cc3a35f
Add isitmaintained.com issue resolving time badge
2016-05-26 23:30:29 +02:00
Leandro Toledo
9a13de4a96
Merge remote-tracking branch 'origin/master' into bot2.1
...
Conflicts:
telegram/bot.py
tests/test_bot.py
2016-05-26 16:15:50 -03:00
Noam Meltzer
561f1c3f02
bot: validate token does not contain white spaces ( #306 )
...
in addition move validation code from validate.py into bot.py and delete
the former file
2016-05-26 22:09:14 +03:00
Leandro Toledo
3907e64966
Adds telegram.utils.botan back using deprecate
2016-05-26 14:13:27 -03:00
Rahiel Kasim
1abbca3324
bot.py: fix snake_case alias
2016-05-26 15:32:02 +02:00
Jannes Höke
e7f4a07b7a
update timerbot example with pass_job_queue
2016-05-26 14:48:50 +02:00
Jannes Höke
bb165b6acf
add pass_job_queue parameter to all handler classes
2016-05-26 14:39:11 +02:00
Jannes Höke
20067ff178
add test for context parameter
2016-05-26 14:07:44 +02:00
Jannes Höke
41daccce07
minor comments and formatting
2016-05-26 14:02:52 +02:00
Jannes Höke
786216305c
Add context parameter in Job class #281
2016-05-26 13:55:56 +02:00
Leandro Toledo
86571bc75d
addHandler to add_handler
2016-05-26 01:55:51 -03:00
Leandro Toledo
663fa0013d
merge master
2016-05-25 22:09:18 -03:00
Leandro Toledo
37c7af2e14
Add docstrings #302
2016-05-25 21:41:12 -03:00
Leandro Toledo
e70625772c
Keeps backwards compatibility to BadRequest #302
2016-05-25 21:24:29 -03:00
Leandro Toledo
1e398821a0
Introducing telegram.error.BadRequest and testLeaveChat testcase #302
2016-05-25 21:15:17 -03:00
Jannes Höke
b3142d2974
yapf
2016-05-25 23:57:29 +02:00
Jannes Höke
8278779a23
Merge branch 'jobqueue-rework' of github.com:python-telegram-bot/python-telegram-bot into jobqueue-rework
2016-05-25 23:37:10 +02:00
Jannes Höke
3aedd78e29
make job queue API similar to the dispatcher, add new functionality
2016-05-25 23:36:41 +02:00
Jannes Höke
6b90ac9f1c
make job queue API similar to the dispatcher, add new functionality
2016-05-25 22:51:13 +02:00
Rahiel Kasim
386b91f708
refactor testing if user is bot
2016-05-25 09:41:48 +02:00
Rahiel Kasim
76b9a7d328
add tests for Bot.getChat*
2016-05-25 01:31:10 +02:00
Leandro Toledo
d90b0f495d
End the madness when bumping versions [ci skip]
2016-05-24 19:43:24 -03:00
Rahiel Kasim
c4d5eff9f3
move botan from utils to ext
2016-05-24 23:40:09 +02:00
Rahiel Kasim
f45ecee820
Merge pull request #304 from TiagoDanin/FixReadme
...
README Update url for contribution guidelines
2016-05-24 23:09:13 +02:00
Tiago Danin
c340585f33
README Update url for contribution guidelines
2016-05-24 15:49:43 -05:00
Leandro Toledo
75490ac757
Fix travis
2016-05-23 22:13:38 -03:00
Leandro Toledo
046e69b1c1
Commenting test for token with newline
2016-05-23 22:02:15 -03:00
Leandro Toledo
7e0be09c58
Merge remote-tracking branch 'origin/master' into bot2.1
2016-05-23 21:56:01 -03:00
Leandro Toledo
18f3f43026
Add issue template #298
2016-05-23 21:54:36 -03:00
Leandro Toledo
0b2fd120d8
Due kwargs I had to change the factory class in favor of InputLocationMessageContent #302
2016-05-23 21:09:07 -03:00
Leandro Toledo
408959e91c
Removes examples from tests
2016-05-23 20:44:47 -03:00
Leandro Toledo
ab2f6e13c9
Add kwargs to API calls #302
2016-05-23 20:43:17 -03:00
Leandro Toledo
108e4264fc
Add user to MessageEntity #302
2016-05-23 20:31:36 -03:00
Leandro Toledo
68b5562c49
Add edit_date to Message #302
2016-05-23 20:28:36 -03:00
Leandro Toledo
e50a3622e1
Add edited_message to Update #302
2016-05-23 20:24:43 -03:00
Leandro Toledo
d7e226ec0f
Add new Bot methods and ChatMember class #302
2016-05-23 20:22:31 -03:00
Leandro Toledo
7c84516d2b
Merge branch 'master' of github.com:python-telegram-bot/python-telegram-bot
2016-05-23 19:44:34 -03:00
Leandro Toledo
53a91be21f
Update CONTRIBUTING.rst
2016-05-23 19:05:56 -03:00
Leandro Toledo
2471eaa778
Adding some style commandments
2016-05-23 19:05:04 -03:00
leandrotoledo
6bfdff8892
Update examples to column width to 99 [ci skip]
2016-05-23 17:45:01 -03:00
leandrotoledo
2389b07382
Updates pre-commit hooks to check examples folder [ci skip]
2016-05-23 17:23:57 -03:00
leandrotoledo
c7db9a96cd
Set split_before_logical_operator to True
2016-05-23 17:19:35 -03:00
Leandro Toledo
af89cbecf3
Add test for unstripped tokens [ci skip]
2016-05-22 18:22:22 -03:00
leandrotoledo
b987c8937c
Hooks for travis
2016-05-22 13:26:57 -03:00
leandrotoledo
5a0696b181
Replace individual checks to pre-commit run --all-files in Travis
2016-05-22 13:12:05 -03:00
leandrotoledo
eb303903ef
Fix travis
2016-05-22 12:55:48 -03:00
leandrotoledo
a00f409992
Updates pre-commit hooks
2016-05-22 12:31:03 -03:00
Jannes Höke
dc27ff41ef
bump version to 4.1.2
2016-05-22 13:01:14 +02:00
Jannes Höke
68ec73afb6
use kwargs on messageentity
2016-05-22 12:58:19 +02:00
Rahiel Kasim
0ace0aa016
README: remove "Getting the Code" section, confuses users like #297
2016-05-19 17:06:28 +02:00
Jannes Höke
f5847be8ca
update file size from 684 to 685
2016-05-17 10:19:00 +02:00
Jannes Höke
ba26a8ba5d
use command filter instead of regexhandler #292
2016-05-17 07:36:04 +02:00
Jannes Höke
d028d4edd0
bump to 4.1.1
2016-05-16 16:05:02 +02:00
Jannes Höke
4d770843cc
use non-deprecated methods
2016-05-16 15:02:51 +02:00
Rahiel Kasim
53de38f6c9
README: fix formatting inline code
2016-05-16 01:46:42 +02:00
Leandro Toledo
be105a2d4a
Update CHANGES.rst
2016-05-15 20:24:09 -03:00
leandrotoledo
ac55ba007e
Bumping version to v4.1 [ci skip]
2016-05-15 20:05:38 -03:00
Leandro Toledo
6bdca1e4f8
Merge pull request #294 from python-telegram-bot/yapf
...
yapf formatter, pre-commit hooks and new travis tests
2016-05-15 19:31:54 -03:00
Leandro Toledo
fd7b571e92
Disables yapf for travis tests for pypy3 (ugh!) #259
2016-05-15 00:19:59 -03:00
Leandro Toledo
9243cd3507
Minor typo fix #259 [ci skip]
2016-05-15 00:11:14 -03:00
Leandro Toledo
1b09738191
Disables yapf for travis tests for pypy3.3 #259
2016-05-15 00:07:59 -03:00
Leandro Toledo
836c50965a
Disables yapf for travis tests for py2.4 and 3.3 #259
2016-05-14 23:59:45 -03:00
Leandro Toledo
1d9d0fc764
Disables yapf for travis tests for py2.4 and 3.3 #259
2016-05-14 23:53:02 -03:00
Leandro Toledo
e57e6dd645
Add yapf to travis and updates CONTRIBUTING doc #259
2016-05-14 23:46:21 -03:00
Leandro Toledo
49122d6a99
Remove \ from base code #259
2016-05-14 23:26:56 -03:00
Leandro Toledo
d445d35ceb
Running yapf for codebase #259
2016-05-14 22:46:40 -03:00
Leandro Toledo
703b8d1301
Adding more pre-commit hooks and testing InputFile #259
2016-05-14 22:24:35 -03:00
Leandro Toledo
46993d5f2d
Adding pre-commit hooks #259
2016-05-14 21:59:08 -03:00
Leandro Toledo
880746baed
Column width to 90 #259
2016-05-14 21:52:35 -03:00
Leandro Toledo
8ad1f330ea
First run of yapf for tests/* #259
2016-05-14 21:39:11 -03:00
Leandro Toledo
56b1d4f5ce
Merge pull request #265 from python-telegram-bot/snakes
...
rename methods to snake_case
2016-05-14 10:56:24 -03:00
Leandro Toledo
df16846d80
Update README.rst
...
#293
2016-05-14 10:28:16 -03:00
Jannes Höke
3ac9a1cd71
Merge pull request #291 from python-telegram-bot/api-2016-05-06
...
Api additions 2016-05-06
2016-05-13 21:31:35 +02:00
Jannes Höke
4d8174edc3
check for py2 and decode
2016-05-12 08:31:47 +02:00
Jannes Höke
235bb72702
use future.utils.text_to_native_str
2016-05-12 08:17:05 +02:00
Rahiel Kasim
9a5ccb1c2d
fix sticker emoji test
...
We always get utf-8 text from Telegram, so we compare to that.
2016-05-12 01:10:04 +02:00
Jannes Höke
a18640a8d3
remove str conversion for emoji
2016-05-12 00:16:29 +02:00
Jannes Höke
fdc3ac0cc5
copy paste mishap
2016-05-11 23:37:46 +02:00
Jannes Höke
d881fa6a5f
add forward_from_chat field to message
2016-05-11 23:22:05 +02:00
Jannes Höke
c551d71735
add emoji field to sticker
2016-05-11 23:19:35 +02:00
Jannes Höke
bee3d881d1
location docstring fix
2016-05-11 23:07:32 +02:00
Jannes Höke
6ec81dd552
move cleaning updates to bootstrapping phase ( #282 )
2016-05-11 00:58:55 +03:00
Rahiel Kasim
6e9f30ca6e
fix merge conflict snakes
2016-05-02 16:37:45 +02:00
Jannes Höke
252cafb04c
fix docs for inlinekeyboardmarkup #277
2016-05-02 14:19:06 +02:00
Jannes Höke
d4f7b7165c
flake8: set max line length to 99
2016-05-02 10:35:20 +02:00
Leandro Toledo
0ed5e8e1a3
Merge pull request #274 from kiote/master
...
Update README.rst
2016-05-01 18:29:55 -03:00
Ekaterina Krivich
335813a11a
Update README.rst
...
answerCallbackQuery mentioned twice
2016-05-02 00:28:09 +03:00
Jannes Höke
10a98211f8
bump version to 4.0.3
2016-05-01 22:13:27 +02:00
Jannes Höke
b5570ddfa5
update CHANGES.rst
2016-05-01 22:13:24 +02:00
Rahiel Kasim
99c9544a27
Merge pull request #273 from python-telegram-bot/inlinequery_location
...
Add location attribute #272
2016-05-01 21:27:19 +02:00
Jannes Höke
0e0611767a
add location attribute #272
2016-05-01 20:08:34 +02:00
Rahiel Kasim
4ba5fbf4f5
Merge pull request #271 from Djaler/master
...
Fix Bot.getUpdates() docstring
2016-05-01 14:31:23 +02:00
Djaler
4b0be65a76
Fix Bot.getUpdates() docstring
2016-05-01 15:25:07 +03:00
Rahiel Kasim
5971cb35f8
fix merge conflict snakes with master
2016-04-30 14:56:48 +02:00
Jannes Höke
6e5302c089
pass args in timerbot example #270
2016-04-30 10:19:41 +02:00
Jannes Höke
5aab4525c2
add keyboard changes
2016-04-29 19:31:45 +02:00
Jannes Höke
62c651d167
bump version to 4.0.2
2016-04-29 19:31:45 +02:00
Jannes Höke
41e457f5ed
Merge pull request #269 from python-telegram-bot/buttons
...
support str and KeyboardButton for reply_markup
2016-04-29 19:29:12 +02:00
Jannes Höke
4ce0ab53d0
Merge branch 'tsnoam-cr4.0_api2'
2016-04-29 18:57:23 +02:00
Jannes Höke
d940afa718
merge master into cr4.0
2016-04-29 18:37:41 +02:00
Rahiel Kasim
a327e9d6ff
support str and KeyboardButton for reply_markup
2016-04-29 17:42:45 +02:00
Rahiel Kasim
5e5510d42b
add deprecation warning for Python 2.6 users
2016-04-28 17:56:03 +02:00
Rahiel Kasim
73c60ee817
simpler py2/py3 input in clibot example
2016-04-28 17:32:10 +02:00
Rahiel Kasim
474d5f0c9f
update README and examples to new snake_case methods
2016-04-28 17:29:34 +02:00
Rahiel Kasim
74a2baf03d
update CONTRIBUTING guide
2016-04-28 15:41:44 +02:00
Rahiel Kasim
0612385233
set project max line length to 99 (flake8)
2016-04-28 15:03:43 +02:00
Rahiel Kasim
c0489db17c
fix import of deprecate function
2016-04-28 14:47:56 +02:00
Rahiel Kasim
592352c849
dispatcher/*handler methods to snake_case + deprecation warnings
2016-04-28 14:29:27 +02:00
Rahiel Kasim
9d367e9f2c
telegram.utils.deprecate: helper module to facilitate deprecation
2016-04-28 14:24:12 +02:00
Rahiel Kasim
d86ca30601
README: document snake_case alias methods for telegram.Bot
2016-04-28 12:44:35 +02:00
Rahiel Kasim
ec15e866be
add snake_case aliases for CamelCase methods
2016-04-28 12:20:42 +02:00
Leandro Toledo
998040da92
Update clibot.py
...
Changes group=str to int
2016-04-27 22:10:31 -03:00
Noam Meltzer
0c74b3cfb9
bot.py + request.py: network_delay is unique for getUpdates
2016-04-28 01:41:32 +03:00
Noam Meltzer
0ca3ef7a38
utils.request: clean imports using feature.moves
2016-04-28 01:41:32 +03:00
Noam Meltzer
e160355190
remove unused imports, use future for urllib imports
2016-04-28 01:41:32 +03:00
Leandro Toledo
d80e0b4b8c
Add more test cases
2016-04-26 22:48:02 -03:00
Leandro Toledo
96d98084c7
Update README.rst
...
Drops 4.0rc version argument
2016-04-26 20:39:34 -03:00
Jannes Höke
865bba3f3e
bump version to 4.0.1
2016-04-27 01:17:47 +02:00
Jannes Höke
2745023854
Merge branch 'master' of github.com:python-telegram-bot/python-telegram-bot
2016-04-27 01:06:58 +02:00
Jannes Höke
fd15e51e28
bump version to 4.0.0, update CHANGES
2016-04-27 01:02:57 +02:00
Leandro Toledo
d093506ef2
Merge pull request #261 from python-telegram-bot/unittest-bot2.0
...
Unittest for Bot 2.0 features
2016-04-26 19:44:55 -03:00
Jannes Höke
7f463131aa
re-order imports
2016-04-27 00:28:21 +02:00
Leandro Toledo
a79f636345
Formatting
2016-04-26 19:08:35 -03:00
Leandro Toledo
4a4dbcdbf8
unittest2 for py2
2016-04-26 19:02:17 -03:00
Leandro Toledo
7b13adb34b
Renaming methods for InlineKeyboardButton
2016-04-26 18:58:22 -03:00
Leandro Toledo
e905f310c4
Renaming methods for KeyboardButton
2016-04-26 18:57:52 -03:00
Leandro Toledo
631c825c1d
Merge remote-tracking branch 'origin/unittest-bot2.0' into unittest-bot2.0
2016-04-26 18:51:02 -03:00
Leandro Toledo
ed7ecddb8d
address to _address due nose limitations
2016-04-26 18:50:47 -03:00
Jannes Höke
a3dae1f112
use correct filter in command filter test
2016-04-26 23:49:59 +02:00
Leandro Toledo
1d33c39a1b
Merge remote-tracking branch 'origin/unittest-bot2.0' into unittest-bot2.0
2016-04-26 18:43:56 -03:00
Leandro Toledo
14d3f62e44
Minor fix
2016-04-26 18:43:39 -03:00
Jannes Höke
931b22f49e
tests for Filters
2016-04-26 23:42:58 +02:00
Leandro Toledo
f0aafda1b9
Add KeyboardButtonTest
2016-04-26 18:40:48 -03:00
Leandro Toledo
ecb6ddd83d
Add VenueTest
2016-04-26 18:34:25 -03:00
Leandro Toledo
cb46b0373f
Add MessageEntityTest and reformatting.
2016-04-26 18:29:13 -03:00
Leandro Toledo
35f6de326b
Add InlineKeyboardButtonTest and reformatting.
2016-04-26 18:23:15 -03:00
Noam Meltzer
a686db2c6f
bot.Bot: fix class docstring
2016-04-26 23:31:29 +03:00
leandrotoledo
1f29093027
Merge branch 'unittest-bot2.0' of https://github.com/python-telegram-bot/python-telegram-bot into unittest-bot2.0
2016-04-26 14:17:59 -03:00
Noam Meltzer
0e34c0395f
Merge pull request #258 from tsnoam/cr4.0
...
CR & fixes for 4.0 (dispatcher mostly, API2.0 still TODO)
2016-04-26 18:14:34 +03:00
Noam Meltzer
49385493f4
bot: 'if X is not None' is cleaner approach
2016-04-26 17:47:37 +03:00
Noam Meltzer
f107070db2
TelegramObject.to_dict(): cover cases where value is 0 or empty object
2016-04-26 17:47:37 +03:00
Noam Meltzer
3f28633e79
MessageHandler / filters: refactor
...
filters are now functions instead of enum like objects.
their definitions were moved to messagehandler.py
2016-04-26 17:47:37 +03:00
Noam Meltzer
8ff8d57998
TelegramObject.to_dict(): use iterators
2016-04-26 17:47:37 +03:00
Noam Meltzer
e9a782a3c8
dispatcher.addHandler(): fix docstring
2016-04-26 17:47:37 +03:00
Noam Meltzer
1f83e7ae4e
dispatcher.addHandler(): validate value of group is int
2016-04-26 17:47:37 +03:00
Noam Meltzer
856f4460fc
handler: docstring fix
2016-04-26 17:47:37 +03:00
Noam Meltzer
c5ad34b074
dispatcher: style fix
2016-04-26 17:47:37 +03:00
Noam Meltzer
78d1faa21e
dispatcher: on removeHandle(), remove the groups too if it's empty
2016-04-26 17:47:37 +03:00
Noam Meltzer
4ac8f86156
dispatcher: honour the priority of groups
2016-04-26 17:47:37 +03:00
Noam Meltzer
8a087dce69
import queue (like in py3) directly
...
future module takes care of adding the `queue` package to py2
2016-04-26 17:47:37 +03:00
Noam Meltzer
82282ae125
dispatcher: retrieve Handler class name dynamically
...
this way it is more resilient to class name changes
2016-04-26 17:47:37 +03:00
Noam Meltzer
02243f6fda
utils.validater: remove dead code
2016-04-26 17:47:37 +03:00
Noam Meltzer
05a90dc3bc
regexhandler/stringregexhandler: python2 utf8 support
2016-04-26 17:47:37 +03:00
Leandro Toledo
1425533871
Adds docstring to InlineQueryResultCachedAudio
2016-04-25 20:15:05 -03:00
Leandro Toledo
186db99565
Merge remote-tracking branch 'upstream/master' into unittest-bot2.0
2016-04-25 20:14:43 -03:00
Rahiel Kasim
835c4d04c1
Merge pull request #257 from python-telegram-bot/code-highlighting
...
Code highlighting
2016-04-25 12:15:04 +02:00
Rahiel Kasim
5b867b2290
README: format shell code for consistency
2016-04-25 10:34:43 +02:00
Rahiel Kasim
ff66a9fa21
README: fix header formatting
2016-04-25 10:02:45 +02:00
Jannes Höke
3189d4d339
fix quotes
2016-04-25 10:01:57 +02:00
Jannes Höke
d66493b038
use python code highlighting
2016-04-25 09:58:09 +02:00
Leandro Toledo
eca5f66cd6
Update README.rst
...
Add requirements-dev.txt install
2016-04-25 00:25:02 -03:00
Leandro Toledo
f7aec236e7
Merge pull request #254 from rahiel/master
...
readme work
2016-04-25 00:21:24 -03:00
Leandro Toledo
fc7c161018
Merge remote-tracking branch 'origin/master' into unittest-bot2.0
2016-04-24 14:33:17 -03:00
Leandro Toledo
c0d63deae3
Merge remote-tracking branch 'origin/unittest-bot2.0' into unittest-bot2.0
2016-04-24 14:33:04 -03:00
Leandro Toledo
f152195a68
Minor fix
2016-04-24 14:32:52 -03:00
Jannes Höke
b2fd2ba697
add callback data
2016-04-24 19:00:21 +02:00
Rahiel Kasim
d21ee819b7
README: move license to bottom
2016-04-24 18:39:48 +02:00
Rahiel Kasim
d3cec77e78
README: make smaller, fix links, add "Getting help" section
2016-04-24 18:36:08 +02:00
Jannes Höke
94e35d5b1c
Merge pull request #253 from aadeg/master
...
Added caption paramenter to sendDocument method
2016-04-24 18:01:43 +02:00
Andrea Giove
39ba575a4d
Missing a comma
2016-04-24 17:54:36 +02:00
Andrea Giove
87ac962805
Added caption paramenter to sendDocument method
2016-04-24 17:51:15 +02:00
Jannes Höke
01cca924ca
inlinekeyboardmarkup test (failing)
2016-04-24 16:30:53 +02:00
Leandro Toledo
14cb13acfd
Adds @message decorator to editMessageText
2016-04-24 11:19:37 -03:00
Leandro Toledo
4ecb4911db
Adds @message decorator to editMessageText
2016-04-24 11:18:16 -03:00
Leandro Toledo
d47787876a
Merge remote-tracking branch 'origin/master' into unittest-bot2.0
2016-04-24 11:08:35 -03:00
Leandro Toledo
4b173bfd52
Add tests for InputContactMessageContent InputLocationMessageContent InputTextMessageContent InputVenueMessageContent
2016-04-24 11:08:06 -03:00
Leandro Toledo
bfbad1625e
Merge pull request #252 from python-telegram-bot/fix-timeout-args
...
Add timeout and network_delay kwargs to all bot methods.
2016-04-24 11:05:26 -03:00
Jannes Höke
564baea8c3
Merge pull request #251 from python-telegram-bot/fix_run_async
...
release semaphore on exceptions
2016-04-24 15:59:09 +02:00
Leandro Toledo
adc3104214
Add timeout and network_delay kwargs to all bot methods.
2016-04-24 10:06:59 -03:00
Jannes Höke
2f7cccfc9f
revert c0dd9c6
2016-04-24 14:15:01 +02:00
Jannes Höke
5a7a62c3d8
release semaphore on exceptions
2016-04-24 13:43:42 +02:00
Leandro Toledo
ca1fff25f7
Some code reformat and minor fixes
2016-04-23 23:11:25 -03:00
Leandro Toledo
0d6b3a5411
Seems like self.address conflicts with nose. Validating...
2016-04-23 22:47:50 -03:00
Leandro Toledo
6cacea96f7
No clue what's going on with travis and Venue
2016-04-23 22:43:48 -03:00
Leandro Toledo
4775107af0
Trying to isolate the problem.
2016-04-23 22:40:52 -03:00
Leandro Toledo
fe06708d34
Trying to isolate the problem.
2016-04-23 22:37:59 -03:00
Leandro Toledo
6390b7fd9b
Going deeper...
2016-04-23 21:43:27 -03:00
Leandro Toledo
2160ce70a6
This piece of code killed Travis somehow, investigating.
2016-04-23 21:40:36 -03:00
Leandro Toledo
5e5125444c
Adding all the others inlinequeryresult tests #188 .
2016-04-23 21:26:59 -03:00
Leandro Toledo
f86e6f97db
Adding some inlinequeryresult tests #188 .
2016-04-23 21:06:18 -03:00
Leandro Toledo
325d8131ee
Adding input_message_content and reply_markup for existing inlinequery* tests.
2016-04-23 20:40:51 -03:00
Leandro Toledo
f68b8c3a4a
Adds InputContactMessageContent class, fixes InlineQueryResultArticle tests, de_json super calls for replymarkup objects and factory for InputMessageContent #188
2016-04-23 20:19:51 -03:00
Jannes Höke
7c8a0e00c0
update readme pip install command
2016-04-23 15:51:02 +02:00
leandrotoledo
4c0737d7c1
Moving InlineQuery* classes to its own test files
2016-04-23 10:47:10 -03:00
leandrotoledo
5dd95f1968
Renaming some tests
2016-04-23 10:39:52 -03:00
Jannes Höke
b30417681b
Merge pull request #248 from python-telegram-bot/bytes-images-py2
...
InputFile to support any objects with .read attribute
2016-04-23 14:36:59 +02:00
leandrotoledo
37e48b4707
Fixing BufferedReader test #248
2016-04-23 09:23:03 -03:00
Jannes Höke
9e306dce16
Update README.rst
2016-04-23 12:27:37 +02:00
leandrotoledo
9b1a55f9e9
Reverting some master files
2016-04-22 22:15:48 -03:00
leandrotoledo
252abb138d
Using hasattr instead isinstance for file check #119
2016-04-22 21:51:00 -03:00
leandrotoledo
203364d939
Merge branch 'bot-api-2.0' of https://github.com/python-telegram-bot/python-telegram-bot into bot-api-2.0
2016-04-22 21:33:37 -03:00
Jannes Höke
1450478d27
Merge pull request #241 from python-telegram-bot/dispatcher-rework
...
v4.0: Dispatcher rework/Bot API 2.0 (RC1)
2016-04-22 16:37:27 +02:00
Jannes Höke
5b36a85e63
release notes 4.0rc1
2016-04-22 16:27:49 +02:00
Jannes Höke
7daf26198e
bump version to 4.0rc1
2016-04-22 16:24:32 +02:00
Jannes Höke
8c0de59d46
fix rst syntax
2016-04-22 16:13:24 +02:00
Jannes Höke
d46d9a711d
Merge branch 'bot-api-2.0' into dispatcher-rework
...
Conflicts:
docs/source/telegram.ext.jobqueue.rst
docs/source/telegram.rst
2016-04-22 16:12:45 +02:00
Leandro Toledo
b444cd7bce
Adding new modules to docs #232
2016-04-22 11:07:44 -03:00
Jannes Höke
93e15fa9f8
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-22 15:36:51 +02:00
Jannes Höke
d383c10d4e
remove check for inline_query
2016-04-22 15:36:46 +02:00
Jannes Höke
012bbe1307
update readme to bot-api-2.0
2016-04-22 15:34:21 +02:00
Jannes Höke
4faa4774bd
Remove bot token
2016-04-22 09:11:52 +02:00
Jannes Höke
cb79317354
remove lazy import of JobQueue
2016-04-21 20:37:43 +02:00
Jannes Höke
cfdfdeb4fc
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-21 17:20:05 +02:00
Leandro Toledo
67a2d31edf
Merge branch 'bot-api-2.0' of https://github.com/python-telegram-bot/python-telegram-bot into bot-api-2.0
2016-04-21 12:18:59 -03:00
Leandro Toledo
0669c72fe3
Fixing little princes Python 2.6 string format arg #232
2016-04-21 12:18:51 -03:00
Leandro Toledo
185c40da79
Fixing little princes Python 2.6 string format arg #232
2016-04-21 12:15:37 -03:00
Leandro Toledo
5315e072cb
PEP8 for Py2 #232
2016-04-21 11:59:18 -03:00
Leandro Toledo
a8255e4f51
Revert switch_inline_query #232
2016-04-21 11:42:02 -03:00
Leandro Toledo
e56c6dfab6
Revert "Minor fixes #232 "
...
This reverts commit 720c4d22d8 .
2016-04-21 11:20:09 -03:00
Leandro Toledo
263310be36
switch_inline_query defaults to empty string #232
2016-04-21 11:02:34 -03:00
Leandro Toledo
720c4d22d8
Minor fixes #232
2016-04-21 10:56:38 -03:00
Leandro Toledo
3be8b9ecb9
Should fix empty string but set args #232
2016-04-21 09:56:57 -03:00
Leandro Toledo
bb36c725af
More refactoring and docstrings #232
2016-04-21 09:21:12 -03:00
Leandro Toledo
ba7e1cada7
Bot class refactor and its docstrings #232
2016-04-21 08:15:38 -03:00
Jannes Höke
9bf5da5ed3
add test for callback query handler
2016-04-21 13:07:44 +02:00
Jannes Höke
c0dd9c6ffc
always set webhook_url
2016-04-21 12:57:03 +02:00
leandrotoledo
10a96481f5
Merge branch 'bot-api-2.0' of https://github.com/python-telegram-bot/python-telegram-bot into bot-api-2.0
2016-04-19 11:36:00 -03:00
Leandro Toledo
9a96ad8efd
Unused import #232
2016-04-19 09:12:22 -03:00
Leandro Toledo
fc277d7393
Refactor of telegram.Bot class and docstrings #232
2016-04-19 09:04:25 -03:00
Jannes Höke
48eb623f15
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-19 01:24:02 +02:00
Leandro Toledo
9a340d2ea9
Endorsing if empty or 0 or empty string and minor typo fix #232
2016-04-18 20:18:32 -03:00
Jannes Höke
693df6dc2c
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-19 00:08:59 +02:00
Jannes Höke
a98919a86e
fix cache_time==0 case
2016-04-19 00:08:47 +02:00
Jannes Höke
9790d6d8dc
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-18 21:35:50 +02:00
Jannes Höke
7913d09295
fix message.to_dict
2016-04-18 21:35:39 +02:00
Jannes Höke
1db337fe2b
Merge branch 'master' into dispatcher-rework
2016-04-18 21:23:14 +02:00
Leandro Toledo
b40a59f509
Merge pull request #240 from python-telegram-bot/os_exit
...
exit immediately if receiving second interrupt #224
2016-04-18 16:22:21 -03:00
Jannes Höke
0d9d5032ef
exit immediately if receiving second interrupt #224
2016-04-18 19:21:57 +02:00
Jannes Höke
de5619f3ca
tests
2016-04-18 18:50:49 +02:00
Jannes Höke
b6fceefc80
documentation
2016-04-18 18:13:54 +02:00
Jannes Höke
687a3b0ba1
dispatcher: also break on errors in checkHandler
2016-04-18 17:15:41 +02:00
Jannes Höke
bf5ba9a369
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-17 22:22:52 +02:00
Jannes Höke
d879a0d018
convert reply_markup to json
2016-04-17 22:11:29 +02:00
Jannes Höke
ad211655ea
Merge branch 'master' into dispatcher-rework
...
Conflicts:
README.rst
2016-04-17 12:45:31 +02:00
Jannes Höke
3a0eb588cb
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-17 12:43:59 +02:00
Jannes Höke
c9bfa71ff9
decode new message fields
2016-04-17 12:43:34 +02:00
Jannes Höke
5f19452dd7
implement de_list
2016-04-17 12:43:09 +02:00
Jannes Höke
5cccf2603b
reorder imports
2016-04-17 12:42:41 +02:00
Jannes Höke
185b080daa
fix de_json
2016-04-17 12:42:30 +02:00
Jannes Höke
cb99341848
Update README.rst
2016-04-16 22:17:43 +02:00
Jannes Höke
1544f612ae
remove cancel command
2016-04-16 21:11:41 +02:00
Jannes Höke
53d1d5f589
fix cancel command
2016-04-16 21:09:24 +02:00
Jannes Höke
6992a7a369
fix key error
2016-04-16 21:03:30 +02:00
Jannes Höke
a846c8fd86
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-16 20:58:08 +02:00
Jannes Höke
0e5129e59f
fix method names and parameters for new methods
2016-04-16 20:57:50 +02:00
Jannes Höke
90576de9e2
inline keyboard example works
2016-04-16 20:55:43 +02:00
Jannes Höke
79ca07f839
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-16 20:33:36 +02:00
Jannes Höke
63c793aad4
initial example for inline keyboard
2016-04-16 20:32:44 +02:00
Jannes Höke
5e80efaa54
editMessage->editMessageText
2016-04-16 20:29:43 +02:00
Jannes Höke
a114f70249
fix callback query condition
2016-04-16 20:29:08 +02:00
Jannes Höke
31fba47829
fix super calls and module docs
2016-04-16 19:25:38 +02:00
Jannes Höke
360c3077ea
update examples
2016-04-16 19:25:08 +02:00
Jannes Höke
f2a92ccf46
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-16 19:00:01 +02:00
Leandro Toledo
dd8f94885a
Commenting out deprecated arguments #232
2016-04-16 13:59:15 -03:00
Jannes Höke
06ec465c5f
Merge pull request #237 from tsnoam/master
...
request: catch socket.error
2016-04-16 18:49:21 +02:00
Leandro Toledo
79228b0655
Adds kwargs for InlineQueryResult objects #232
2016-04-16 13:49:16 -03:00
Jannes Höke
b2045717d6
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-16 18:18:37 +02:00
Leandro Toledo
15cc410c10
Merge remote-tracking branch 'upstream/master' into bot-api-2.0
2016-04-16 13:16:49 -03:00
Leandro Toledo
f6524b0207
Adding InlineQueryResultCachedVoice #232
2016-04-16 13:10:30 -03:00
Noam Meltzer
ecc86d4bcd
request: catch socket.error
...
socket.error is another exception which is thrown by the underlying
infrastacture and not handled by the urllib2 or httplib layers
fixes #236
2016-04-16 19:09:45 +03:00
Leandro Toledo
56b17f2a17
Adding InlineQueryResultVoice #232
2016-04-16 13:05:55 -03:00
Leandro Toledo
8bf4a6fdda
Refactoring InlineQueryResultVideo #232
2016-04-16 13:01:26 -03:00
Leandro Toledo
109af62425
Adding InlineQueryResultVenue #232
2016-04-16 12:58:36 -03:00
Leandro Toledo
ec27edef58
Refactoring InlineQueryResultPhoto #232
2016-04-16 12:55:05 -03:00
Leandro Toledo
7231eaa349
Refactoring InlineQueryResultMpeg4Gif #232
2016-04-16 12:52:21 -03:00
Leandro Toledo
1876867ec7
Adding InlineQueryResultLocation #232
2016-04-16 12:49:07 -03:00
Leandro Toledo
17509fc24f
Refactoring InlineQueryResultGif #232
2016-04-16 12:46:24 -03:00
Leandro Toledo
2d2b269932
Adding InlineQueryResultDocument #232
2016-04-16 12:39:53 -03:00
Leandro Toledo
802a74c606
Adding InlineQueryResultContact #232
2016-04-16 12:35:23 -03:00
Leandro Toledo
c4074f740e
Refactoring InlineQueryResultAudio #232
2016-04-16 12:32:40 -03:00
Leandro Toledo
1e0ee0694f
Refactoring InlineQueryResultArticle #232
2016-04-16 12:30:18 -03:00
Leandro Toledo
6a7c0bb584
Adding InlineQueryResultCachedVideo #232
2016-04-16 12:22:29 -03:00
Leandro Toledo
fb2fc3842b
Adding InlineQueryResultCachedSticker #232
2016-04-16 12:20:15 -03:00
Leandro Toledo
c794c3520b
Adding InlineQueryResultCachedPhoto #232
2016-04-16 12:18:50 -03:00
Leandro Toledo
0fd013feec
Adding InlineQueryResultCachedMpeg4Gif #232
2016-04-16 12:16:45 -03:00
Leandro Toledo
1834d6c754
Adding InlineQueryResultCachedGif #232
2016-04-16 12:14:43 -03:00
Leandro Toledo
f51564f7cd
Adding InlineQueryResultCachedDocument #232
2016-04-16 12:12:37 -03:00
Leandro Toledo
624160e1db
Adding InlineQueryResultCachedAudio #232
2016-04-16 12:09:26 -03:00
Jannes Höke
d2f2b74bdb
imports and classname fix
2016-04-16 16:54:07 +02:00
Leandro Toledo
85f1b1af0c
Adding sendContact and sendVenue methods #232
2016-04-16 11:48:36 -03:00
Jannes Höke
6cb177d2a7
fix markup in readme
2016-04-16 16:46:40 +02:00
Jannes Höke
b5cbf17ef5
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-16 16:41:39 +02:00
Jannes Höke
0d0ad1334c
add documentation and minor stuff
2016-04-16 16:36:12 +02:00
Leandro Toledo
b9305ca7ac
Adding MessageEntity and Venue classes #232
2016-04-16 11:33:58 -03:00
Leandro Toledo
0e21609382
Adding InputMessageContent classes #232
2016-04-16 11:23:25 -03:00
Jannes Höke
95fde0c6c4
create missing handler types and minor fixes
2016-04-16 15:21:19 +02:00
Jannes Höke
884bb41d4a
update README with dispatcher changes
2016-04-16 15:20:52 +02:00
kiddick
a9b305edd0
Fix class declaration according to consistency. ( #235 )
2016-04-15 17:20:37 +03:00
Jannes Höke
1e19084a0d
initial commit for dispatcher rework. deleted updatequeue.py as it is not needed. added handler base class, messagehandler, commandhandler, regexhandler. adjusted dispatcher for new system
2016-04-14 23:57:40 +02:00
Noam Meltzer
e179b27f57
dispatcher: fix wrong variable ( #233 )
2016-04-14 23:23:02 +03:00
Leandro Toledo
8b95f9cbeb
PEP 8 - lemme sleep Traviszzzzz #232
2016-04-14 03:59:33 -03:00
Leandro Toledo
390184f605
Replacing assertIsInstance() to assertTrue(isinstance()) #232
2016-04-14 03:52:35 -03:00
Leandro Toledo
086fa1251c
Minor fixes #232
2016-04-14 03:40:26 -03:00
Leandro Toledo
60f9aede07
Minor fix on answerInlineQuery #232
2016-04-14 02:38:51 -03:00
Leandro Toledo
c411ef7822
Adding switch_pm_text and switch_pm_parameter to answerInlineQuery #232
2016-04-14 02:34:29 -03:00
Leandro Toledo
e1de7220df
Adding ChosenInlineResult #232
2016-04-14 02:21:00 -03:00
Leandro Toledo
429ea92254
Adding KeyboardButton #232
2016-04-14 02:01:05 -03:00
Leandro Toledo
751402a0d3
Adding new Bot methods editMessageText, editMessageCaption, editMessageReplyMarkup #232
2016-04-14 00:28:06 -03:00
Leandro Toledo
2af15cadd6
New method answerCallbackQuery #232
2016-04-13 21:25:26 -03:00
Leandro Toledo
93e19dc2ae
Adding CallbackQuery #232
2016-04-13 21:10:04 -03:00
Leandro Toledo
c2f5309cbf
Adding InlineKeyboardMarkup #232
2016-04-13 20:41:26 -03:00
Leandro Toledo
1657e43904
Adding InlineKeyboardMarkup #232
2016-04-13 20:38:45 -03:00
Leandro Toledo
23eba8a24e
Adding InlineKeyboardButton #232
2016-04-13 20:26:38 -03:00
Leandro Toledo
ed170e1595
Bootstrapping InputMessageContent classes #232
2016-04-13 20:01:36 -03:00
Leandro Toledo
46ca28f01c
Bootstrapping InlineQueryResult classes #232
2016-04-13 09:59:48 -03:00
Leandro Toledo
b99518e8b8
3 more classes #232
2016-04-12 01:23:52 -03:00
Leandro Toledo
62045316fe
Adding 27 new classes #232
2016-04-12 01:12:35 -03:00
Leandro Toledo
736d62e20d
New methods kickChatMember and unbanChatMember #232
2016-04-12 00:46:50 -03:00
Leandro Toledo
68dca31f15
Renamed fields new_chat_participant and left_chat_participant #232
2016-04-12 00:33:42 -03:00
Leandro Toledo
9a523dbc40
Update CONTRIBUTING.rst
2016-04-12 00:29:00 -03:00
Avanatiker
0342a5b30b
Update timerbot.py
...
The missing space bothered me.
2016-04-11 13:36:59 +03:00
Rahiel Kasim
b7f83cf375
Merge pull request #226 from rahiel/master
...
move examples to wiki, improve docs
2016-04-03 14:44:59 +02:00
Rahiel Kasim
d9d48f5c91
readme: move external examples to the wiki + other improvements
2016-04-03 00:26:24 +02:00
Rahiel Kasim
01b90e7ede
small improvements
2016-04-02 23:13:49 +02:00
leandrotoledo
ba0ea4f268
Add TOKEN and CHAT_ID for testing in favor of #221
2016-03-31 15:36:18 -03:00
Noam Meltzer
a0788788da
Merge pull request #220 from kiddick/master
...
Fix obsolete import for fsm bot.
2016-03-26 19:12:00 +03:00
kiddick@users.noreply.github.com
a264530540
Fix obsolete import for fsm bot.
2016-03-26 19:00:05 +03:00
Noam Meltzer
33f047a3dc
Merge pull request #219 from tsnoam/master
...
Documentation improvements
2016-03-23 23:06:46 +02:00
Noam Meltzer
88eb332c99
Documentation improvements
2016-03-23 22:41:21 +02:00
Noam Meltzer
eb6bafc003
Merge pull request #217 from python-telegram-bot/fix_webhook
...
Only set webhook if using SSL and also send certificate
2016-03-23 20:26:23 +02:00
Rahiel Kasim
f4603831b8
Merge pull request #218 from springjools/master
...
Fix annoying grammar error
2016-03-23 15:32:02 +01:00
jools
b41e1ab127
Fix annoying grammar error
2016-03-23 16:23:38 +02:00
Jannes Höke
5c71ebce52
ensure url_path is string
2016-03-23 11:04:38 +01:00
Jannes Höke
6db377d56d
Only set webhook if using SSL and also send certificate
2016-03-23 10:11:10 +01:00
leandrotoledo
da193711b1
Add legacy imports test to Dispatcher and JobQueue
2016-03-22 11:12:47 -03:00
Leandro Toledo
4f26bdd18f
Merge pull request #213 from python-telegram-bot/prep34
...
Prepare Release of v3.4
2016-03-21 23:15:38 -03:00
Jannes Höke
808945b623
prepare release of v3.4
2016-03-22 03:02:13 +01:00
Jannes Höke
63a83d4cc2
fix imports of updatequeue
2016-03-22 02:48:56 +01:00
Jannes Höke
c43b348117
lazily load all of telegram.ext
2016-03-22 02:42:40 +01:00
Jannes Höke
45a47d54bd
move updatequeue to telegram.utils
2016-03-22 02:42:19 +01:00
Jannes Höke
5e7f2688be
add encoding to fsm example bot
2016-03-22 02:33:43 +01:00
Jannes Höke
7199d2894f
add state machine example
2016-03-21 20:08:32 +01:00
Jannes Höke
d9a58fd904
Merge pull request #211 from python-telegram-bot/ext-docs
...
Adjust sphinx docs to telegram.ext submodule
2016-03-21 14:23:33 +01:00
Jannes Höke
cf9897e74b
Merge pull request #208 from rahiel/master
...
declare support for python 3.5, drop old py 3.2 reference
2016-03-21 14:23:23 +01:00
Jannes Höke
30308bdcc6
Fix formatting, table of contents link, add note on errors
2016-03-20 00:37:55 +01:00
Jannes Höke
af62c5be8e
update examples to telegram.ext
2016-03-19 16:39:35 +01:00
Jannes Höke
cd7bc8dfac
Update README to telegram.ext, move API section up
2016-03-19 16:35:02 +01:00
Jannes Höke
150914cf25
Adjust sphinx docs to telegram.ext submodule
2016-03-19 13:26:38 +01:00
Rahiel Kasim
19390b9659
declare support for python 3.5, drop old py 3.2 reference
2016-03-17 22:12:36 +01:00
Jannes Höke
fac4eb6438
Merge pull request #202 from tsnoam/master
...
Updater webhook bootstrapping improvements
2016-03-17 13:05:04 +01:00
Noam Meltzer
2939885c5b
test_updater: import Updater from telegram.ext
2016-03-15 22:08:06 +02:00
Noam Meltzer
f07f33e160
updater: unitests for _set_webhook
2016-03-15 22:02:34 +02:00
Noam Meltzer
0ddcb16889
start_webhook(): call bot.setWebhook() as a bootstrap step
2016-03-15 22:02:34 +02:00
Noam Meltzer
594b81e463
start_polling(): new argument - bootstrap_retries
...
refs #196
2016-03-15 22:02:16 +02:00
Leandro Toledo
41d0d45e2f
Merge pull request #204 from python-telegram-bot/debug-level-logs
...
Changing INFO logs to DEBUG and minor fixes
2016-03-15 11:35:05 -03:00
Leandro Toledo
1e4ae6546f
Changing INFO logs to DEBUG and minor fixes
2016-03-14 22:56:20 -03:00
Leandro Toledo
fd170773e2
Merge pull request #198 from rahiel/master
...
lazily load Updater & move extended classes to submodule
2016-03-14 17:00:25 -03:00
Rahiel Kasim
d1516f66ac
deprecation warning for telegram.Updater
2016-03-14 19:43:38 +01:00
Rahiel Kasim
739e218eb7
PEP8
2016-03-14 15:26:22 +01:00
Rahiel Kasim
dcea2c8015
Merge branch 'master' of https://github.com/leandrotoledo/python-telegram-bot
2016-03-14 15:07:16 +01:00
Rahiel Kasim
98112d3987
move Updater and friends to ext submodule
2016-03-14 14:50:12 +01:00
Jannes Höke
45a4689fd0
update docstrings of Message regarding supergroup conversion
2016-03-14 09:54:33 +01:00
Jannes Höke
82030c4109
Merge pull request #199 from python-telegram-bot/send-inputfile-from-bytesio
...
Fix InputFile attribute check when from a BufferedReader object
2016-03-14 01:17:27 +01:00
Leandro Toledo
25595e6d9e
Update README.rst
...
Update group link
2016-03-13 19:23:48 -03:00
Leandro Toledo
9637a8748c
Merge pull request #201 from shelomentsevd/master
...
Dispather command processing fix(#200 ).
2016-03-13 12:26:04 -03:00
Dmitriy
00e2b4815a
Processing commands without casting to UTF-8
2016-03-13 12:32:27 +03:00
Shelomentsev Dmitriy
fb34f81533
ShelomentsevD added to AUTHORS.rst
2016-03-13 02:27:10 +03:00
Shelomentsev Dmitriy
3d89f6b284
dispatchTelegramCommand no-break space fix.
2016-03-13 02:15:48 +03:00
Leandro Toledo
7a8e84b46f
Update README.rst
2016-03-12 20:04:45 -03:00
Leandro Toledo
8ad34fc3c0
Fix InputFile attribute check when from a BufferedReader object
2016-03-12 19:40:56 -03:00
Leandro Toledo
00f4328bab
Remove files from download()' tests on make clean
2016-03-12 18:23:14 -03:00
Rahiel Kasim
8b196ce71f
load Updater class only when used
2016-03-12 15:29:54 +01:00
Jannes Höke
196d1fcc3d
Update invite link to supergroup
2016-03-11 23:43:41 +01:00
Leandro Toledo
7ff7397d0f
Update CONTRIBUTING.rst
2016-03-11 17:45:06 -03:00
Leandro Toledo
0c676b1a75
Merge pull request #195 from aidarbiktimirov/master
...
Added disable_notification parameter for silent messages
2016-03-11 17:12:00 -03:00
Aydar Biktimirov
dc9b77e02c
Merge remote-tracking branch 'upstream/master'
2016-03-11 23:03:13 +03:00
Leandro Toledo
e7b339d527
Merge pull request #197 from rahiel/master
...
bot.sendMessage: update documentation
2016-03-11 16:42:16 -03:00
Rahiel Kasim
5958da0031
bot.sendMessage: update documentation
2016-03-11 20:32:10 +01:00
Aydar Biktimirov
0600b2634e
added tests for disable_notification parameter
2016-03-11 09:37:43 +03:00
Leandro Toledo
f8f16f0fe9
Update README.rst
...
Link to group updated
2016-03-10 10:12:39 -03:00
Aydar Biktimirov
433110abe9
Added disable_notification parameter for silent messages
2016-03-09 18:47:33 +03:00
Noam Meltzer
793437fec7
Merge pull request #191 from tsnoam/master
...
updater: allow cleaning updates from Telegram servers before start (+ docstring fix)
2016-03-01 23:32:20 +02:00
Noam Meltzer
a0a040a9c2
updater: allow cleaning updates from Telegram servers before start
2016-03-01 22:12:12 +02:00
Noam Meltzer
f0e7a3316c
jobqueue: fix docstring
2016-03-01 20:20:51 +02:00
Jannes Höke
218e22631c
Prepare to release v3.3
2016-02-28 02:33:49 +01:00
Jannes Höke
75c6662f35
leverage timing a bit more
2016-02-28 02:11:48 +01:00
Jannes Höke
cd42524fd4
Merge pull request #174 from python-telegram-bot/inlinebots
...
Implement Inlinebots
2016-02-28 02:10:21 +01:00
Jannes Höke
b5875a3abd
increase timing for repeatedly failing travis test
2016-02-28 01:53:18 +01:00
Jannes Höke
139cbc657d
add inline bot handler example
2016-02-28 01:51:14 +01:00
Jannes Höke
4aca4d1d1f
Merge pull request #187 from python-telegram-bot/flaky-tests
...
Flaky tests
2016-02-28 01:02:11 +01:00
Noam Meltzer
2e6db1330f
test_botan.py: another flaky test
2016-02-27 23:39:03 +02:00
Noam Meltzer
ccb24d1288
request.py: fix for python2.7
2016-02-27 23:13:29 +02:00
Noam Meltzer
26f87c4873
test_video.py: specify timeout for the sendVideo operation itself
2016-02-27 23:01:22 +02:00
Noam Meltzer
fc618274ae
bot.py: allow specifying timeout for sendVideo operations
2016-02-27 23:00:33 +02:00
Noam Meltzer
d2623d2671
test_voice.py: adapt to latest changes in the API
2016-02-27 22:53:40 +02:00
Noam Meltzer
ec8cd37345
test_video.py: adapt to latest changes in the API
2016-02-27 22:50:28 +02:00
Jannes Höke
ee56ffc9a5
Merge pull request #182 from tsnoam/master
...
request: better parsing of URLError exception
2016-02-24 09:51:02 +01:00
Noam Meltzer
ca8404adb7
travis.yml: another try to fix nosetests command line
2016-02-24 00:55:30 +02:00
Noam Meltzer
d5b35e7e1d
unitests: remove docstrings & prints - not needed with nosetests
2016-02-24 00:45:49 +02:00
Noam Meltzer
df8e388189
travis.yml: fix nosetests command line
2016-02-23 23:32:52 +02:00
Noam Meltzer
a2632b777a
travis.yml: enable nosetests --with-flaky
2016-02-22 02:03:10 +02:00
Noam Meltzer
e0cf0abb1b
flaky tests: try up to 3 times, need to succeed once
2016-02-22 01:52:31 +02:00
Noam Meltzer
ec13a36bdd
unitests: use home brewed timeout for tests
2016-02-22 01:38:26 +02:00
Jannes Höke
d05fa1275a
use timed tests and flaky
2016-02-21 12:52:47 +01:00
Jannes Höke
e189e8ad05
add -v to nosetests to debug travis tests
2016-02-21 12:08:40 +01:00
Jannes Höke
efd10507d0
remove kwargs in favor of named keyword arguments, validate argument types
2016-02-21 11:33:34 +01:00
Noam Meltzer
2338377eda
request: better parsing of URLError exception
2016-02-20 15:20:00 +02:00
Jannes Höke
ca526fba73
improve unit tests according to comments
2016-02-20 12:14:34 +01:00
Jannes Höke
e2cc8db992
Merge branch 'master' into inlinebots
2016-02-20 11:17:34 +01:00
Noam Meltzer
04c86813b3
Merge pull request #177 from tsnoam/master
...
join() threads for a cleaner stop procedure
2016-02-19 19:10:35 +02:00
Noam Meltzer
7d39e1bdef
updater: more unitests for webookhandler
2016-02-19 18:00:57 +02:00
Noam Meltzer
d415a60ebf
join() threads instead of guessing if they're running
...
- new book keeping of dispatcher's async threads so they can be joined
when stopping
- updater, webhook & dispatcher threads are now kept on
Updater.__threads so they can be joined at the end
refs #175
2016-02-19 18:00:57 +02:00
Noam Meltzer
fd7baa2236
updater.py: use _init_thread for webhook as well
2016-02-19 18:00:57 +02:00
Noam Meltzer
4945d99de6
webhookhandler: better handling of invalid POST data
2016-02-19 18:00:57 +02:00
Noam Meltzer
c103c05679
updater.py: fix log of thread name
2016-02-19 18:00:57 +02:00
Jannes Höke
8afea8cd69
Update group link (issue #178 )
2016-02-12 08:15:06 +01:00
Noam Meltzer
9d77a3b503
Merge pull request #162 from rahiel/master
...
legacy echobot: simpler exception handling
2016-02-10 10:44:09 +02:00
Rahiel Kasim
3e978277b3
echobot: simplify exception handling
2016-02-09 15:28:54 +01:00
Rahiel Kasim
d02e656700
raise NetworkError for HTTP 502 (Bad Gateway)
2016-02-09 15:26:59 +01:00
Jannes Höke
edf4e8abbe
fix docstring
2016-02-07 23:34:26 +01:00
Jannes Höke
c55c5408b1
tests and corrections for inlinequery
2016-02-07 23:34:15 +01:00
Jannes Höke
d1dc32d849
tests and corrections for choseninlineresult
2016-02-07 23:26:38 +01:00
Jannes Höke
fc73948c82
fix to_dict tests
2016-02-07 23:25:48 +01:00
Jannes Höke
70dfb88eb5
complete tests for inline results
2016-02-07 22:56:25 +01:00
Jannes Höke
2a01292a64
Merge branch 'master' into inlinebots
2016-02-07 22:42:12 +01:00
Jannes Höke
5b9ec7ff40
catch errors in error handlers
2016-02-07 22:40:55 +01:00
Jannes Höke
bec81b5c3b
Merge pull request #161 from tsnoam/master
...
better exception handling
2016-02-07 22:34:49 +01:00
Jannes Höke
f5a1e00af9
add info about logging to getting started section
2016-02-07 22:25:16 +01:00
Jannes Höke
eac3d8842d
remove json import
2016-02-07 15:09:41 +01:00
Jannes Höke
17ac73c3c4
fix message to json
2016-02-07 14:46:36 +01:00
Noam Meltzer
4a5001668d
updater/dispatcher: on exception stop all threads
2016-02-07 00:56:30 +02:00
Noam Meltzer
7ebbc60694
Unauthorized is HTTP code 401
...
I am not certain where the older 403 came from, but for now going to
leave it as is
2016-02-07 00:56:30 +02:00
Noam Meltzer
9c81b810f2
be verbose when running test - easier to follow progress
2016-02-07 00:56:30 +02:00
Noam Meltzer
e8363f2440
control name and location of python cmds
...
this is very useful for setups where python/pylint/etc. are not
installed in default names/paths
2016-02-07 00:56:30 +02:00
Noam Meltzer
e82ae432f7
dispatcher is now stopped using a threading.Event
2016-02-07 00:56:30 +02:00
Noam Meltzer
d4beb94059
Add specific exceptions types for important errors
...
maintain backward compatibility with the 'old' exception by inherting
from TelegramError and using the same message
2016-02-06 18:48:55 +02:00
Noam Meltzer
029705e0af
updater: catch TelegramError instead of URLError
...
- URLError is now being caught by telegram.request.
- simplify the code now that we don't need to catch URLError
2016-02-06 18:48:55 +02:00
Noam Meltzer
2859a8873f
utils.request: catch URLError in _try_except_req decorator
2016-02-06 18:48:55 +02:00
Jannes Höke
e5df2072e4
Merge pull request #171 from tsnoam/disable_audio_unitest
...
test_audio: temp. disable duration unitest
2016-02-06 17:47:06 +01:00
Noam Meltzer
034d0054ea
test_audio: temp. disable duration unitest
...
due to telegram server bug
2016-02-06 18:34:30 +02:00
Leandro Toledo
0edb2e0a0f
Update README.rst
...
Updating joinchat link
2016-02-03 11:29:50 -02:00
Jannes Höke
2436cab2e5
tests for gif and mpeg4
2016-02-03 02:09:05 +01:00
Leandro Toledo
3e7dc705db
Merge pull request #169 from trollknurr/little-readme-extend
...
Little document extend
2016-02-01 21:22:35 -02:00
Shtarev
cabbef8780
how to send photo
2016-02-01 20:14:17 +03:00
Jannes Höke
08836c60ca
tests for InlineQueryResultPhoto
2016-01-31 10:52:04 +01:00
Jannes Höke
6d2e159d75
move 'no new updates found' message to debug ( #167 )
2016-01-31 10:32:34 +01:00
Jannes Höke
8d94c14504
Merge branch 'master' into inlinebots
2016-01-29 23:55:34 +01:00
Jannes Höke
69183d85f7
add test for InlineQueryResultArticle
2016-01-29 23:54:49 +01:00
Jannes Höke
142cc6e6ad
add test for dispatching inline queries/results
2016-01-29 23:54:49 +01:00
Jannes Höke
d4370e49e5
Merge pull request #164 from jlmadurga/parse_mode-html
...
Parse mode for HTML added
2016-01-27 11:46:10 +01:00
Juan Madurga
df1d639144
Fix doc
2016-01-27 11:28:44 +01:00
Juan Madurga
c13af4d61d
parse mode for HTML added
2016-01-27 11:20:32 +01:00
Leandro Toledo
516d41eac0
Merge pull request #163 from jlmadurga/replymarkup-tests
...
Add tests for replymarkup objects
2016-01-26 21:11:03 -02:00
Juan Madurga
702544f709
fix pep8 extra lines
2016-01-26 23:58:07 +01:00
Juan Madurga
713f0d1335
add tests for replymarkup objects
2016-01-26 23:43:16 +01:00
Jannes Hoeke
a383cee558
merge master into inlinebots
2016-01-25 18:05:27 +01:00
Jannes Höke
44645d2cc6
Merge pull request #157 from jlmadurga/context-for-handlers
...
Add context to dispatcher
2016-01-25 17:46:14 +01:00
Jannes Höke
77f00e386c
Merge pull request #159 from ollmer/botan_integration
...
Botan integration
2016-01-25 17:18:12 +01:00
Oleg Shlyazhko
1000a56e0d
more test vor botan module, increase coverage
2016-01-24 18:32:12 +03:00
Oleg Shlyazhko
c3bca9af48
remove checking for non 200 http codes, exceptions already handle it
2016-01-24 18:28:27 +03:00
Oleg Shlyazhko
9eec34edd1
pep8 fix
2016-01-23 20:13:48 +03:00
Oleg Shlyazhko
383a2d3742
fix httperror error output
2016-01-23 20:03:29 +03:00
Oleg Shlyazhko
d1e4eeaf30
fix urlopen data format
2016-01-23 19:49:55 +03:00
Oleg Shlyazhko
80b53f1ab7
fix urlopen call
2016-01-23 19:44:40 +03:00
Oleg Shlyazhko
0faa38b8af
fix httperror logging
2016-01-23 19:29:01 +03:00
Oleg Shlyazhko
5a2a541ae0
rename botan test correctly and move token to ENV
2016-01-23 19:09:56 +03:00
Oleg Shlyazhko
7508c2f8bf
add detailed comment in class and src key to tracking url
2016-01-23 16:59:53 +03:00
Oleg Shlyazhko
bb2cce56a3
insert correct appmetrica token instead of bot token in botan test
2016-01-23 16:58:44 +03:00
Oleg Shlyazhko
2c12bd6775
replace print with logging
2016-01-23 16:58:01 +03:00
Oleg Shlyazhko
5b05bcc8f2
add http error exception handling
2016-01-23 15:21:13 +03:00
Oleg Shlyazhko
adb446abf6
fix pep8 styling
2016-01-23 15:14:17 +03:00
Oleg Shlyazhko
545767ea40
add myself to authors
2016-01-23 14:25:09 +03:00
Oleg Shlyazhko
7931045bf3
test for botan analytics module
2016-01-23 14:24:49 +03:00
Oleg Shlyazhko
17c2857622
add module for botan analytics
2016-01-23 14:24:34 +03:00
Juan Madurga
cbcbfab45f
fix pep8
2016-01-22 16:42:39 +01:00
Juan Madurga
1dc9907a70
fix code comments by jh0ker
2016-01-22 16:30:55 +01:00
Juan Madurga
b8c9992eff
Merge branch 'master' into context-for-handlers
2016-01-22 09:46:05 +01:00
Jannes Höke
fe26c94440
Merge pull request #155 from tsnoam/master
...
_try_except_req(): catch httplib.HTTPException
2016-01-22 02:48:11 +01:00
Juan Madurga
a6650de93d
Add context parameter to dispatcher. Handlers now can updates with a context data if required
2016-01-20 19:56:41 +01:00
Noam Meltzer
dc032b349c
_try_except_req(): catch httplib.HTTPException
...
fixes #153
2016-01-19 22:02:34 +02:00
Jannes Höke
5c2458bfd8
merge master into inlinebots
2016-01-14 15:28:22 +01:00
Jannes Höke
6166e7f07a
Merge pull request #152 from python-telegram-bot/docstring_pep257_checker
...
Add docstring style checker and fixing some
2016-01-14 15:24:44 +01:00
Leandro Toledo
2a7b03e7c2
Fix travis - file_size is irrelevant for resend test
2016-01-13 19:15:11 -02:00
Jannes Höke
da97c1741c
merge 'urls' into 'inline'
2016-01-13 21:58:45 +01:00
Jannes Höke
70445dc054
Merge pull request #151 from python-telegram-bot/urls
...
enable sending by URL for all sendX methods
2016-01-13 21:49:04 +01:00
leandrotoledo
d3a02405b2
pep8
2016-01-13 14:23:15 -02:00
leandrotoledo
dfc75cc64e
Add docstring style checker and fixing some
2016-01-13 14:09:35 -02:00
Jannes Höke
332667c98b
flake8
2016-01-12 13:16:43 +01:00
Jannes Höke
f71c40e0b8
use basename and check if filename has extension
2016-01-12 12:42:07 +01:00
Leandro Toledo
9f55c15cc7
Add sendPhoto tests, fix file_id casting to str instead unicode
2016-01-11 22:25:46 -02:00
Leandro Toledo
a32ae8b895
Merge branch 'master' into urls
2016-01-11 22:12:06 -02:00
Leandro Toledo
a539a0c3a5
Add data object for sendPhoto tests
2016-01-11 22:11:29 -02:00
Leandro Toledo
b4abf75524
Fix data objects references for tests to raw files on Githup repo
2016-01-11 21:11:10 -02:00
Leandro Toledo
12d71d5a91
Fix file_size tests for send* by URL
2016-01-11 20:33:17 -02:00
Leandro Toledo
48bf6bfab0
Adding telegram.gif for testing purposes
2016-01-11 20:20:57 -02:00
Leandro Toledo
7227ca3aab
Tests for send(Audio,Voice,Video) by URL
2016-01-11 20:19:55 -02:00
Jannes Höke
307d2621d7
removed support-restriction for sending by url
2016-01-10 22:08:01 +01:00
Jannes Höke
831a0a31e5
flake8
2016-01-10 15:20:05 +01:00
Jannes Höke
d10b657521
enable sending by URL for all sendX methods
2016-01-10 15:12:42 +01:00
Jannes Höke
ef1012b722
enable sending by URL for all sendX methods
2016-01-10 15:11:17 +01:00
Jannes Höke
5fd7a4fe0d
release v3.3b1
2016-01-09 15:50:19 +01:00
Jannes Höke
85d20ba549
Merge branch 'master' into inlinebots
2016-01-09 15:44:18 +01:00
Jannes Höke
48c1673d7c
fix additional args for inline queries
2016-01-09 15:30:47 +01:00
Jannes Höke
af6eb457c1
Merge branch 'inlinebots' of github.com:python-telegram-bot/python-telegram-bot into inlinebots
2016-01-09 15:12:34 +01:00
Jannes Höke
6ece89bc56
update inline query results after api change
2016-01-09 15:09:48 +01:00
Jannes Höke
c69cdfd184
Initial commit for inline bot support
2016-01-09 15:09:48 +01:00
Jannes Höke
6dab7068c3
Add Telegram Group link as badge
2016-01-09 14:57:46 +01:00
Jannes Höke
fd90c16265
merge master into inlinebots
2016-01-09 14:51:24 +01:00
Jannes Höke
77ca036d02
update inline query results after api change
2016-01-09 14:48:27 +01:00
Jannes Höke
e2e98e86db
Initial commit for inline bot support
2016-01-09 14:48:27 +01:00
Leandro Toledo
71f82d57d9
Update CONTRIBUTING.rst
2016-01-06 17:09:19 -02:00
Jannes Höke
6a3d514ed1
Merge branch 'master' into inlinebots
2016-01-06 16:28:17 +01:00
Leandro Toledo
6aa2e510a3
Merge pull request #149 from python-telegram-bot/contribute-update
...
Expanding more subjects on CONTRIBUTING.rst
2016-01-06 13:04:59 -02:00
leandrotoledo
099deabf4e
Removing if block to install unittest2 when running tests on Py2.6
2016-01-06 12:50:42 -02:00
Jannes Höke
b78ceeed10
fix race condition in dispatcher
2016-01-06 15:36:14 +01:00
leandrotoledo
a8240dca1f
Adding unittest2, update travis to use requirements-dev.txt
2016-01-06 12:12:01 -02:00
leandrotoledo
7e207433cc
Using flake8 instead pep8
2016-01-06 12:05:09 -02:00
leandrotoledo
fc6d0f4f07
Expanding more subjects
2016-01-06 11:54:22 -02:00
Jannes Höke
4fef5bcceb
Merge branch 'master' into inlinebots
2016-01-05 15:17:38 +01:00
Jannes Höke
fc64cc0a4a
Merge pull request #148 from mr-karan/patch-1
...
handle case of negative values of seconds
2016-01-05 14:37:26 +01:00
Karan Sharma
14a9962296
handle case of negative values of seconds
2016-01-05 19:06:28 +05:30
Jannes Höke
4197400853
remove token once again
2016-01-05 14:29:20 +01:00
Jannes Höke
aa8966832b
release 3.2 and update copyright notice to 2015-2016
2016-01-05 14:12:03 +01:00
Jannes Höke
e27427676d
fix jobqueue creation
2016-01-05 13:40:07 +01:00
Jannes Höke
8175fd7b53
update timerbot example
2016-01-05 13:39:51 +01:00
Jannes Höke
2875bae881
Integrate JobQueue with Updater
2016-01-05 13:32:19 +01:00
Jannes Höke
c756aa1c02
remove error raising in dispatchType
2016-01-05 12:49:48 +01:00
Jannes Höke
6d5c3187fc
Initial commit for inline bot support
2016-01-04 17:31:06 +01:00
Jannes Höke
c2f04331f3
Merge pull request #145 from python-telegram-bot/jobqueue
...
JobQueue by @franciscod
2016-01-04 12:34:29 +01:00
Jannes Höke
5293ec49ff
Add section about JobQueue to README
2016-01-04 11:34:47 +01:00
Jannes Höke
9319903343
rename testclass
2016-01-04 11:08:43 +01:00
Jannes Höke
95e2aad9bd
fix sphinx build
2016-01-04 02:36:27 +01:00
Jannes Höke
73f4f26da5
more tests
2016-01-04 02:36:15 +01:00
Jannes Höke
24b2bf335c
Increase time for travis testing
2016-01-04 02:12:24 +01:00
Jannes Höke
fc3fa0f515
Increase time for travis testing
2016-01-04 02:11:42 +01:00
Jannes Höke
87657bcd70
flake8 and string formatting
2016-01-04 02:05:39 +01:00
Jannes Höke
81b58c7d00
remove bot token (once again...)
2016-01-04 01:58:50 +01:00
Jannes Höke
dd7d1255d1
fixes, tests and examples for job queue
2016-01-04 01:56:22 +01:00
Jannes Höke
f813d4f5ec
improve docstring
2016-01-04 01:32:47 +01:00
Jannes Höke
623863cee1
fix exception logging
2016-01-04 01:32:00 +01:00
Jannes Höke
aa125e59fb
Merge branch 'master' into jobqueue
2016-01-04 00:01:27 +01:00
Jannes Höke
68c844df0c
implement starting jobqueue in thread and fix errors
2016-01-04 00:01:00 +01:00
Jannes Höke
3779d454f3
Merge pull request #136 from tsnoam/master
...
consistent TelegramError exceptions
2016-01-03 23:58:14 +01:00
Noam Meltzer
5d168bd479
improve unitest coverage
2016-01-04 00:34:39 +02:00
Noam Meltzer
1c8bb21790
fix python 2.6 unitests which with the backport package unittest2
2016-01-04 00:32:17 +02:00
Noam Meltzer
054c976ad6
add tsnoam to AUTHORS
2016-01-04 00:32:17 +02:00
Noam Meltzer
bc2679f2ae
utils.request: provide HTTP error code with unknown errors
2016-01-04 00:32:17 +02:00
Noam Meltzer
17dae68654
gitignore: files generated by unitests
2016-01-04 00:32:17 +02:00
Noam Meltzer
7734c1d6a6
fix unitests to work with new token validator
2016-01-04 00:32:13 +02:00
Noam Meltzer
aeca3ca174
basic token validation
...
refs #134
2016-01-04 00:31:40 +02:00
Noam Meltzer
21fdaa4ff7
utils.request: decorate functions with general try... except...
...
refs #134
2016-01-04 00:31:40 +02:00
Noam Meltzer
79f29c4b9e
properly handle utf-8 server response & identify json parsing errors
...
refs #134
2016-01-04 00:31:40 +02:00
Noam Meltzer
a2d8ca3663
some errors are prefixed with '[Error]: ' - strip that down
...
use custom _lstrip_str() func instead of regex. a little performance
improvment and (IMO) a bit more readable.
2016-01-04 00:31:40 +02:00
Jannes Höke
6f76bfc2de
Merge branch 'master' into jobqueue
2015-12-31 15:45:19 +01:00
Jannes Höke
97ebebefc1
Merge branch 'Tengah-master'
2015-12-31 15:41:53 +01:00
Jannes Höke
119743433d
merge Tengah-master into master
2015-12-31 15:41:37 +01:00
Bob Pasker
b0ad07f30f
remove traceback import
2015-12-31 09:29:02 -05:00
Jannes Höke
114cb787ea
Merge branch 'master' into jobqueue
2015-12-31 15:22:08 +01:00
Jannes Höke
5d1ef673a3
flake8
2015-12-31 15:04:42 +01:00
Jannes Höke
3e1cb08567
flake8
2015-12-31 15:03:40 +01:00
Jannes Höke
29a4062945
properly lock updater and dispatcher start/stop methods
2015-12-31 14:58:01 +01:00
Jannes Höke
2ff6fe9901
initial commit for JobQueue by @franciscod
2015-12-31 14:56:48 +01:00
Jannes Höke
34b91f5062
properly lock updater and dispatcher start/stop methods
2015-12-31 14:52:28 +01:00
Bob Pasker
cc6c4a6eb9
Change a print statement to use logger instead
2015-12-31 08:33:42 -05:00
Jannes Höke
fc9456e1a8
release v3.1.2
2015-12-29 14:46:00 +01:00
Jannes Höke
41ba57f064
don't stop the dispatcher thread on uncaught errors
2015-12-29 14:28:39 +01:00
Jannes Höke
b205751aee
change default value for poll_interval to 0
2015-12-29 14:28:39 +01:00
Jannes Höke
c4f13bd1bb
Merge pull request #138 from Gems/master
...
Fix file.download with custom_path
2015-12-28 12:27:26 +01:00
Eduard Gomolyako
7d7397317e
Fix file.download with custom_path
2015-12-27 04:01:13 +03:00
Jannes Höke
631954e5d9
Merge pull request #133 from rahiel/master
...
dedicate examples to the public domain (CC0)
2015-12-25 17:56:07 +01:00
Rahiel Kasim
90ed128a61
dedicate examples to the public domain (CC0)
2015-12-25 15:19:17 +01:00
Jannes Höke
2a2b679362
improved and renamed examples
2015-12-22 13:23:59 +01:00
Jannes Höke
f75e329225
fix docstring
2015-12-21 21:40:41 +01:00
Jannes Höke
ea7c54ba07
Release v3.1.1, change author email everywhere
2015-12-21 21:18:53 +01:00
Jannes Höke
3c7b037eaa
add additional arguments 'groups' and 'groupdict' for regex handlers
2015-12-21 20:25:31 +01:00
Jannes Höke
c15a1bc151
fix for #123
2015-12-21 19:36:17 +01:00
Jannes Höke
9e7314134e
fix docstring
2015-12-17 14:55:20 +01:00
Jannes Höke
37271e4a02
Merge pull request #127 from python-telegram-bot/chatclass
...
API updates Oct and Nov
2015-12-16 16:32:19 +01:00
Jannes Höke
0e78606d37
Release v3.1
2015-12-16 16:25:14 +01:00
Jannes Höke
cb0736fb3d
update sphinx docs
2015-12-16 16:23:18 +01:00
Jannes Höke
e0233a59a0
fix docstrings for sphinx
2015-12-16 16:18:48 +01:00
Jannes Höke
6e158042e1
API updates Oct and Nov
2015-12-16 15:31:02 +01:00
Jannes Höke
d791a6ee89
Update group link
2015-12-16 02:57:33 +01:00
leandrotoledo
5a3e142358
Updating one more ref to old repo
2015-12-14 21:51:17 -02:00
leandrotoledo
37a58fe1ad
Update TODO on README
2015-12-14 21:41:22 -02:00
leandrotoledo
80281cc66d
Moving to python-telegram-bot organization
2015-12-14 21:36:22 -02:00
Jannes Höke
fffa9d8a7c
Update README.rst
2015-12-14 12:22:25 +01:00
Jannes Höke
806b71030f
Update group link
2015-12-13 21:24:05 +01:00
Jannes Höke
764c5dac53
Add Logo to README
2015-12-13 21:18:59 +01:00
Jannes Höke
007dc5807a
move error disables to .travis.yml
2015-12-11 18:52:23 +01:00
Jannes Höke
16534872a7
add pylintrc ignoring import-error,no-name-in-module to fix travis
2015-12-11 18:38:29 +01:00
Jannes Höke
a13245dfbf
change 'wb' to 'rb' in certificate open call
2015-12-09 12:59:34 +01:00
Jannes Höke
6622ea3ec0
Release version 3.0.0
2015-12-08 00:07:21 +01:00
Jannes Höke
bcadfc5398
Release version 3.0.0
2015-12-07 23:49:19 +01:00
Jannes Höke
89ecb04a85
Catch URLError while getting updates
2015-12-07 23:45:21 +01:00
Jannes Höke
56ab40d94f
increase time in test multiple messages
2015-12-01 21:58:39 +01:00
Jannes Höke
f5ac1ae067
debug message after processing update
2015-12-01 21:45:12 +01:00
Jannes Höke
23507202e8
Merge branch 'Balduro-boteventhandler'
2015-12-01 18:08:38 +01:00
Jannes Höke
185bff7117
update example
2015-12-01 18:06:42 +01:00
Gerd Augsburg
9f07900d99
Added Balduro to AUTHORS.rst and fixed line length
2015-12-01 15:16:04 +01:00
Gerd Augsburg
809fe4b74f
Updated tests for start_webhook
2015-12-01 14:48:55 +01:00
Gerd Augsburg
8a4d5c5de7
Separate start_webhook and setWebhook
...
I think starting and setting the webhook should be two different tasks.
Because the internal webhook and the adress you see from outside can be
quite diffrent through apache etc. It provides more flexibility.
2015-12-01 14:11:27 +01:00
Jannes Höke
1976822dd0
Add documentation for Updater and Dispatcher
2015-12-01 01:01:28 +01:00
Jannes Höke
e60694a8cc
update test_webhook and add test_webhook_no_ssl
2015-11-30 23:00:56 +01:00
Jannes Höke
14b4c1ac62
Allow starting webhook without SSL (issue #112 )
2015-11-30 23:00:32 +01:00
Leandro Toledo
d5890d403b
Merge pull request #109 from leandrotoledo/boteventhandler
...
Indrucing "Updater" and "Dispatcher"
2015-11-30 08:22:36 -02:00
Jannes Höke
ef569b68c6
update docs
2015-11-24 21:07:13 +01:00
Jannes Höke
628a4c4eac
final renaming of files and flake8
2015-11-24 21:06:55 +01:00
Jannes Höke
83d2ca3aa7
assertIsNone(...) to assertTrue(None is ...)
2015-11-24 20:40:40 +01:00
Jannes Höke
29cdfe671e
test removehandler methods
2015-11-24 20:34:38 +01:00
Jannes Höke
f21b6046c5
test error in handler, other webhook server functionalites
2015-11-24 19:35:02 +01:00
Jannes Höke
8090658ab4
log warning
2015-11-24 19:33:41 +01:00
Jannes Höke
f49f592f0d
log warning
2015-11-24 19:33:03 +01:00
Jannes Höke
c2853fa1ef
WebhookServer: Lock serve_forever() and shutdown()
2015-11-24 15:39:00 +01:00
Jannes Höke
e1f3f346bc
Test for Update.idle()
2015-11-24 14:57:54 +01:00
Jannes Höke
1005ad57ce
Improve signal handling
2015-11-23 17:40:39 +01:00
Jannes Höke
0b72acc7c8
handle SIGINT, SIGTERM and SIGABRT
2015-11-23 03:45:47 +01:00
Jannes Höke
8d267ed896
use logging
2015-11-22 19:20:16 +01:00
Jannes Höke
83812f3af6
rename boteventhandler.py to updater.py
2015-11-22 19:20:05 +01:00
Jannes Höke
658b5ff1c0
update tests
2015-11-22 19:16:49 +01:00
Jannes Höke
593153128c
Update examples
2015-11-22 19:15:37 +01:00
Jannes Höke
d91f210f7c
refactor BotEventHandler to Updater, improve documentation, add idle() method
2015-11-22 19:15:17 +01:00
Jannes Höke
65177e791f
raise error instead of quietly exiting on bad SSL cert
2015-11-22 16:46:17 +01:00
Jannes Höke
15501e185b
renamed broadcaster.py to dispatcher.py
2015-11-22 14:52:41 +01:00
Jannes Höke
1782d0d19b
refactor Broadcaster to Dispatcher
2015-11-22 14:47:38 +01:00
Jannes Höke
88fbf3b5cf
remove broadcaster argument from __init__
2015-11-22 14:27:05 +01:00
Jannes Höke
c7a1d8dca3
test additional arguments
2015-11-22 14:08:33 +01:00
Jannes Höke
3e732a0736
fix multiple additional arguments
2015-11-22 14:07:20 +01:00
Jannes Höke
628e1b743a
add bits of documentation
2015-11-22 13:58:40 +01:00
Jannes Höke
e4de3f00b8
Add optional handler argument 'args' and documentation on handlers
2015-11-22 13:57:59 +01:00
Jannes Höke
32c021fdd5
Don't create new bot when broadcaster is passed
2015-11-22 13:30:23 +01:00
Jannes Höke
a6e5a71e05
Check SSL-Certificate, if possible
2015-11-22 01:03:29 +01:00
Jannes Höke
4d87e236be
Use random port for travis and py2&/py3 compability
2015-11-21 23:22:41 +01:00
Jannes Höke
29ab0556f0
test Webhook completed
2015-11-21 23:09:44 +01:00
Jannes Höke
fca8aee177
improve logging
2015-11-21 23:09:19 +01:00
Jannes Höke
6a80a33aef
test for error on getUpdates and began to test webhook
2015-11-21 21:22:58 +01:00
Jannes Höke
7c9928c58f
Let shutdown return immediately if server is not running
2015-11-21 21:22:11 +01:00
Jannes Höke
0cd7aa92ae
more logging
2015-11-21 21:21:09 +01:00
Jannes Höke
6626d4534e
test @run_async
2015-11-21 19:35:24 +01:00
Jannes Höke
6b309397e8
send less messages in more time so travis can take its time
2015-11-21 16:18:19 +01:00
Jannes Höke
618df51811
flake8
2015-11-21 16:04:06 +01:00
Jannes Höke
d38add1a1c
really?
2015-11-21 15:50:39 +01:00
Jannes Höke
1c7e784662
add setWebhook to mock bot
2015-11-21 15:48:45 +01:00
Jannes Höke
0006294f29
update tests
2015-11-21 15:45:45 +01:00
Jannes Höke
c1f194a310
change all start() to start_polling()
2015-11-21 15:31:23 +01:00
Jannes Höke
cccd6e5baf
Merge branch 'master' of github.com:leandrotoledo/python-telegram-bot into boteventhandler
2015-11-21 03:29:37 +01:00
Jannes Höke
a0baa68cf3
Merge pull request #105 from rahiel/master
...
handle "Unauthorized" exceptions in echobot
2015-11-20 18:28:08 +01:00
Rahiel Kasim
62b79df0a4
handle "Unauthorized" exceptions in echobot
2015-11-20 14:41:12 +01:00
Jannes Höke
1246039872
Merge pull request #104 from mASOUDd/boteventhandler
...
remove trailing whitespaces
2015-11-17 16:05:41 +01:00
Masoud Naservand
ed6dd76ae8
Corrected trailing whitespaces
2015-11-17 18:27:22 +03:30
Jannes Höke
70de2bd3f1
Merge pull request #102 from franciscod/patch-1
...
README: add link to TwitterForwarderBot
2015-11-17 09:08:38 +01:00
Francisco Demartino
8bde310ec7
README: add link to TwitterForwarderBot
2015-11-17 01:34:00 -03:00
Jannes Höke
be368f7d74
add example for webhook
2015-11-17 00:30:21 +01:00
Jannes Höke
9defc41774
correct docstrings
2015-11-17 00:04:28 +01:00
Jannes Höke
ee8b78aa0d
pep8 and docs
2015-11-16 20:43:35 +01:00
Jannes Höke
0b8fd24771
fixed issues with python2
2015-11-16 20:35:27 +01:00
Jannes Höke
396dc6cd3c
Implement webhook listener server
2015-11-16 13:05:57 +01:00
Jannes Höke
ba3d174fde
Change eh.start() to eh.start_polling()
2015-11-16 13:05:17 +01:00
Jannes Höke
ab313488ad
Usage instructions for bots
2015-11-15 20:13:03 +01:00
Jannes Höke
d808462fb6
Simple bot
2015-11-15 20:02:09 +01:00
Jannes Höke
71e73c3999
logging
2015-11-15 19:21:35 +01:00
Jannes Höke
a55df8b5e1
update example
2015-11-15 19:14:12 +01:00
Jannes Höke
f59efe0f4b
forward related update to errorhandlers
2015-11-15 19:12:42 +01:00
Jannes Höke
1b79a57673
Merge branch 'master' of github.com:leandrotoledo/python-telegram-bot into boteventhandler
2015-11-15 17:38:37 +01:00
Jannes Höke
ae59a18e2d
update example
2015-11-15 17:37:01 +01:00
Jannes Höke
12201f392d
graceful stopping of threads, use logging, reuse of broadcaster
2015-11-15 17:36:38 +01:00
leandrotoledo
8f3fe123e3
Fix travis
2015-11-13 10:53:31 -02:00
Jannes Höke
04050ca883
Merge branch 'master' of github.com:leandrotoledo/python-telegram-bot into boteventhandler
2015-11-13 11:05:26 +01:00
Jannes Höke
c3b3d51286
Merge pull request #99 from rahiel/readme
...
improve echobot with cleaner code and basic exception handling
2015-11-12 19:21:29 +01:00
Jannes Höke
10451509f1
fix for issue #79
2015-11-12 19:15:39 +01:00
Rahiel Kasim
ff0d724f32
improve echobot with cleaner code and basic exception handling
2015-11-12 17:26:25 +01:00
Leandro Toledo
c64e577049
Fixes pylint for Py2.6
2015-11-11 12:41:07 -02:00
Leandro Toledo
f08dca0af6
Fixes pylint for Py2.6
2015-11-11 12:39:09 -02:00
Leandro Toledo
8c0bcbf5bb
Fixes typo on .travis.yml
2015-11-11 12:28:34 -02:00
Leandro Toledo
596fc2aeda
Adding OSX and lint/pep8 tests to Travis
2015-11-11 12:27:07 -02:00
Leandro Toledo
968b19e8b7
Rolling back travis settings
2015-11-11 12:07:43 -02:00
Leandro Toledo
7993328ff7
Enable travis for PRs
2015-11-11 12:04:23 -02:00
Leandro Toledo
16349ac69a
Releasing v2.9.2
2015-11-11 11:31:20 -02:00
Jannes Höke
45712c52f1
Merge branch 'master' of github.com:leandrotoledo/python-telegram-bot into boteventhandler
2015-11-11 14:27:58 +01:00
Leandro Toledo
235dcd2ad2
Merge branch 'master' of https://github.com/leandrotoledo/python-telegram-bot
2015-11-11 11:25:05 -02:00
Leandro Toledo
ed92d1c254
Adds requirements.txt to MANIFEST
2015-11-11 11:24:49 -02:00
Jannes Höke
0b4c23f50e
improve error handling on timeouts
2015-11-11 14:06:10 +01:00
Jannes Höke
63c895c0a0
run_async moved to broadcaster and uses a thread pool now
2015-11-11 13:33:03 +01:00
Jannes Höke
3162bc60e9
cleaned up code
2015-11-11 13:32:11 +01:00
leandrotoledo
206802cf4d
Minor fix on docs
2015-11-10 20:33:14 -02:00
leandrotoledo
5eb4f8e5cd
Minor pep8 fix
2015-11-10 20:31:51 -02:00
Jannes Höke
0a27e3927b
merge
2015-11-10 23:17:31 +01:00
Jannes Höke
401add78d3
fix big mistake
2015-11-10 23:15:37 +01:00
Jannes Höke
af375eb402
improved code quality
2015-11-10 23:15:37 +01:00
Jannes Höke
2797111ced
First tests for BotEventHandler and Broadcaster
2015-11-10 23:15:37 +01:00
Jannes Höke
d7d4889c50
use run_async decorator in example
2015-11-10 23:15:37 +01:00
Jannes Höke
bf356e124f
add run_async decorator
2015-11-10 23:15:37 +01:00
Jannes Höke
d7fd43ca79
Import BotEventHandler and Broadcaster
2015-11-10 23:15:37 +01:00
Jannes Höke
42e11d169e
Update AUTHORS.rst
2015-11-10 23:15:37 +01:00
Jannes Höke
c1fae0b5ee
example bot for BotEventHandler
2015-11-10 23:15:37 +01:00
Jannes Höke
ef99bab435
initial commit for BotEventHandler and Broadcaster
2015-11-10 23:15:37 +01:00
Jannes Höke
93afd3eabe
remove check for network_delay
2015-11-10 23:12:20 +01:00
Jannes Höke
61dac76bee
don't send network_delay to telegram servers
2015-11-10 22:40:19 +01:00
Jannes Höke
245f5abc45
further improved formatting
2015-11-10 21:32:54 +01:00
Jannes Höke
0f8f6584ce
Fix for issue #81
2015-11-10 20:36:26 +01:00
Jannes Höke
dd498ded00
Update to version 2.9.1
2015-11-10 20:22:58 +01:00
Jannes Höke
5d2999818b
Update to version 2.9.1
2015-11-10 20:19:12 +01:00
Jannes Höke
eb1f197ff4
2.9.1 release and generally improved formatting
2015-11-10 20:10:44 +01:00
Jannes Höke
4bc03ed56a
Add parameter network_delay for slow connections and increase default to 2 seconds
2015-11-10 19:47:21 +01:00
Leandro Toledo
9191d333ca
Adds future as requirement
2015-11-10 12:27:18 -02:00
Leandro Toledo
c6533a2d69
Releasing v2.9
2015-11-10 12:21:04 -02:00
Leandro Toledo
6c13762c93
Fixes PEP8 and Lint minor issues
2015-11-10 12:10:50 -02:00
Leandro Toledo
06c09b96cf
Fixes travis to support future module
2015-11-10 12:04:21 -02:00
Leandro Toledo
8a5ec3b2a1
Merge pull request #92 from jh0ker/emoticons
...
Decode Emoji byte strings into unicode strings if using Python 3 (Alternative)
2015-11-10 11:58:57 -02:00
Leandro Toledo
21c26aed2f
Merge pull request #96 from leandrotoledo/revert-85-master
...
Revert 1879cff82d
2015-11-10 11:55:50 -02:00
Leandro Toledo
5fe1481ae9
Revert 1879cff82d
2015-11-10 11:55:42 -02:00
Leandro Toledo
1879cff82d
Merge pull request #85 from jh0ker/master
...
Decode Emoji byte strings into unicode strings if using Python 3
2015-11-10 11:55:19 -02:00
Jannes Höke
cd5e805692
added documentation
2015-11-10 05:16:16 +01:00
Jannes Höke
90a77ab7a1
Merge pull request #87 from franciscod/patch-1
...
Remove `.encode('utf-8')` from echobot
2015-11-10 04:58:21 +01:00
Jannes Höke
3928e27cf4
Merge pull request #90 from rahiel/master
...
raise exception if telegram times out on long-polling
2015-11-10 04:56:18 +01:00
Leandro Toledo
45b1124553
Merge pull request #95 from rahiel/readme
...
fix LGPLv3 badge
2015-11-09 16:53:47 -02:00
Rahiel Kasim
252b43dcb7
fix LGPLv3 badge
2015-11-09 19:06:30 +01:00
Jannes Höke
c19a84ac05
improved code quality
2015-11-06 00:24:01 +01:00
Jannes Höke
404fdc2dd7
First tests for BotEventHandler and Broadcaster
2015-11-06 00:23:34 +01:00
Jannes Höke
2ec56abe7e
use run_async decorator in example
2015-11-05 16:01:25 +01:00
Jannes Höke
63a8700258
add run_async decorator
2015-11-05 16:01:08 +01:00
Jannes Höke
d363185031
Import BotEventHandler and Broadcaster
2015-11-05 15:22:13 +01:00
Jannes Höke
aabaaa9049
Update AUTHORS.rst
2015-11-05 14:07:28 +01:00
Jannes Höke
eb2be61eac
example bot for BotEventHandler
2015-11-05 13:52:57 +01:00
Jannes Höke
0688691974
initial commit for BotEventHandler and Broadcaster
2015-11-05 13:52:33 +01:00
Leandro Toledo
d3d5c1e907
Merge pull request #91 from jh0ker/useroptional
...
Make user_from optional to work with channels channels
2015-11-04 09:52:00 -02:00
Jannes Höke
cbf66d411d
add jh0ker to AUTHORS.rst
2015-11-03 14:47:26 +01:00
Jannes Höke
0e5b48f3b4
Add tests for Emoji class, since it now contains actual code
2015-11-03 14:47:13 +01:00
Jannes Höke
df7cfdc8d0
create file requirements.txt and add 'future'
2015-11-03 14:42:16 +01:00
Jannes Höke
89015e5ecc
fix for sending into a channel
2015-11-03 13:46:23 +01:00
Jannes Höke
025d4c9a75
fix emojis for python3
2015-11-03 12:24:44 +01:00
Jannes Höke
d3bea4c3b4
make user_from optional, because of channels
2015-11-03 10:28:06 +01:00
Jannes Höke
a6c12adda2
make user_from optional, because of channels
2015-11-03 10:20:45 +01:00
Rahiel Kasim
dcb9129809
raise exception if telegram times out on long-polling
2015-11-02 20:30:37 +01:00
Francisco Demartino
bd1f171f51
Remove .encode('utf-8') from echobot
...
This was making the bot throw TypeError on py3.
Closes #86
2015-10-23 16:48:26 -03:00
Jannes Höke
54efb034a4
add jh0ker to AUTHORS.rst
2015-10-23 01:18:05 +02:00
Jannes Höke
fe94f146bb
Add tests for Emoji class, since it now contains actual code
2015-10-23 01:16:10 +02:00
Jannes Höke
22b492762b
Decode Emoji byte strings into unicode strings if using Python 3 (missed something)
2015-10-23 00:32:10 +02:00
Jannes Höke
fea0c5cc2b
Decode Emoji byte strings into unicode strings if using Python 3
2015-10-23 00:29:26 +02:00
Leandro Toledo
688d6af541
Releasing v2.8.7
2015-10-08 11:31:48 -03:00
Leandro Toledo
bcbd32cdd3
Merge branch 'master' of https://github.com/leandrotoledo/python-telegram-bot
2015-10-08 11:30:16 -03:00
Leandro Toledo
3fa8b97ed2
Type as optional for GroupChat
2015-10-08 11:30:02 -03:00
Leandro Toledo
7cd4e2e205
Update README.rst
2015-10-08 10:40:27 -03:00
Leandro Toledo
f2b0cb46a2
Releasing v2.8.6
2015-10-08 10:23:12 -03:00
Leandro Toledo
cf5d184766
Add type to User and GroupChat classes
2015-10-08 10:19:05 -03:00
Leandro Toledo
5738dc553f
Releasing v2.8.5
2015-09-24 09:29:23 -03:00
Leandro Toledo
386accab80
Merge pull request #74 from leandrotoledo/http_bad_gateway_as_except
...
Handles HTTP Bad Gateway error (503) on request module #63
2015-09-24 09:26:19 -03:00
Leandro Toledo
e7686db759
Merge pull request #73 from leandrotoledo/stop_casting_unicode_fields
...
Fixes regression on Audio and Document models for unicode fields #65
2015-09-24 09:26:10 -03:00
Leandro Toledo
6c9490f2c6
Handles HTTP Bad Gateway error (503) on request module #63
2015-09-24 09:17:50 -03:00
Leandro Toledo
855ab19dea
Fixes regression on Audio and Document models for unicode fields #65
2015-09-24 09:10:33 -03:00
Leandro Toledo
797a3e6ea4
Update README.rst
2015-09-22 09:41:31 -03:00
Leandro Toledo
bbd443d397
Merge pull request #71 from zeehio/patch-1
...
[doc] fix "Telegram sticker" -> "Telegram user"
2015-09-22 09:39:19 -03:00
Sergio Oller
4e1597c614
[doc] fix "Telegram user" -> "telegram sticker"
2015-09-22 11:52:10 +02:00
Leandro Toledo
75e338d5df
Releasing v2.8.4
2015-09-20 12:52:40 -03:00
Leandro Toledo
1919f873c0
Fix tests
2015-09-20 12:47:02 -03:00
Leandro Toledo
a1f35355f6
Keep bleeding edge features on testing branch
2015-09-20 12:43:32 -03:00
Leandro Toledo
c4c17e8036
Merge branch 'testing'
2015-09-20 12:34:34 -03:00
Leandro Toledo
3024c1ce3d
Merge branch 'master' into testing
2015-09-20 12:34:02 -03:00
Leandro Toledo
b79530b10c
Adding File and its tests
2015-09-20 12:28:10 -03:00
Leandro Toledo
778c63a6d3
Merge pull request #68 from leandrotoledo/revert-67-feature/requests
...
Revert "Feature/requests"
2015-09-16 00:22:03 -03:00
Leandro Toledo
f623db06ea
Revert "Feature/requests"
2015-09-16 00:21:45 -03:00
Leandro Toledo
026673dc05
Merge pull request #67 from peczony/feature/requests
...
Feature/requests
2015-09-16 00:17:38 -03:00
Leandro Toledo
6893da5dd3
Update keywords for pip package
2015-09-16 00:15:51 -03:00
pecheny
d5a9c185f0
use requests instead of urllib if possible; add timeout and decorator to get and post
2015-09-14 19:13:22 +03:00
Leandro Toledo
cbdeacd22d
Releasing v2.8.3
2015-09-10 21:00:05 -03:00
Leandro Toledo
1e2fdedc45
Removing command_handler from master (under dev)
2015-09-10 20:44:23 -03:00
Leandro Toledo
c1c0e66233
Merge branch 'testing'
2015-09-10 20:37:41 -03:00
Leandro Toledo
eb557e0eba
Keeping features under development off this release
2015-09-10 20:37:25 -03:00
Leandro Toledo
a7ac4193fe
PEP8, lint and TelegramError class refactor
2015-09-10 20:08:24 -03:00
Leandro Toledo
354bfcad79
legacy tests now run using BaseTest
2015-09-10 20:06:27 -03:00
Leandro Toledo
a1e12d424c
Fix inverted lat/long
2015-09-10 16:59:08 -03:00
Leandro Toledo
38c6d002c8
Merge pull request #60 from ergoz/ISSUE-58
...
Add Markdown support for sendMessage method.[#58 ]
2015-09-10 15:25:01 -03:00
ErgoZ
c8a14bf34d
Merge branch 'testing' of https://github.com/leandrotoledo/python-telegram-bot into ISSUE-58
...
Conflicts:
telegram/__init__.py
2015-09-10 20:42:56 +03:00
ErgoZ
53c44f14bd
Add Markdown support for sendMessage method.
2015-09-10 20:15:20 +03:00
Leandro Toledo
e75deea25c
Merge pull request #59 from ergoz/PR57-Fix
...
Code cleanup for filename. Filename uses only for sendDocument.
2015-09-10 08:56:11 -03:00
ErgoZ
17b8bb4881
Code cleanup for filename. Filename uses only for sendDocument.
2015-09-10 14:46:49 +03:00
leandrotoledo
009862593b
Fix Py3
2015-09-09 09:34:45 -03:00
leandrotoledo
e2fa052f54
Send JSON requests over urlencoded post data
2015-09-09 09:29:23 -03:00
leandrotoledo
dcfe08dbda
Add sticker as an inputfile
2015-09-09 09:28:58 -03:00
leandrotoledo
dc2dfa24ad
Adding .sublime
2015-09-09 09:12:59 -03:00
leandrotoledo
ce58f45c4f
Adding .sublime
2015-09-09 09:12:35 -03:00
Leandro Toledo
7059930b5d
Merge pull request #55 from njittam/testing
...
add a father command. and hide commands in help.
2015-09-09 09:08:39 -03:00
leandrotoledo
77977b99b1
Add tests to custom filename arg #56
2015-09-08 15:52:10 -03:00
Leandro Toledo
ed77afaab9
Merge pull request #57 from ergoz/testing
...
Add ability for custom filename in send methods and InputFile
2015-09-08 15:22:58 -03:00
ErgoZ Riftbit Vaper
c7f2add463
small pretty fix for self.data.pop('filename')
2015-09-08 21:17:54 +03:00
ErgoZ Riftbit Vaper
8a074fd719
Delete unused check (forget from previous local version)
2015-09-08 21:13:11 +03:00
leandrotoledo
cfa5e8a6fe
Using nose to run tests
2015-09-08 15:03:04 -03:00
leandrotoledo
c6bf13e407
Using nose to test on travis
2015-09-08 15:02:28 -03:00
ErgoZ Riftbit Vaper
6237bb636c
Fix InputFile class for python 3+ support
2015-09-08 20:54:50 +03:00
ErgoZ Riftbit Vaper
0496781501
Update AUTHORS.rst
2015-09-08 20:45:44 +03:00
ErgoZ
4a761d0611
Add ability to set custom filename (fix InputFile class)
...
For commands that uses InputFile class
2015-09-08 20:43:28 +03:00
ErgoZ
714adc13ee
Add ability to set custom filename
...
For commands that uses InputFile class
2015-09-08 20:42:23 +03:00
leandrotoledo
fa387d1821
Ignore coveralls token settings
2015-09-07 20:11:46 -03:00
leandrotoledo
073d43fd75
Improve tests for GroupChat and User
2015-09-07 20:11:02 -03:00
leandrotoledo
5c0eeac036
Fix coveralls
2015-09-07 20:06:34 -03:00
leandrotoledo
64ca4d7b82
Fix travis, this time for real
2015-09-07 16:53:01 -03:00
leandrotoledo
6d7542ce50
Fix travis
2015-09-07 16:33:00 -03:00
leandrotoledo
0cfaaa590c
Fix travis
2015-09-07 16:29:39 -03:00
leandrotoledo
48bb8a2413
Fix travis
2015-09-07 16:28:00 -03:00
leandrotoledo
36dc1633f5
Move old tests to legacy dir until get new ones written
2015-09-07 15:54:50 -03:00
leandrotoledo
e1edeb7bec
Improve design of this class
2015-09-07 15:54:12 -03:00
leandrotoledo
a409fc511d
Improve raise of empty chat_id
2015-09-07 15:53:43 -03:00
leandrotoledo
69d705a99f
strize raw String properties for Telegram Objects
2015-09-07 15:53:09 -03:00
leandrotoledo
cdcf2481ba
Update Makefile to support multiple tests
2015-09-07 15:47:50 -03:00
leandrotoledo
5c4f0f152a
Much better, such wow Location tests
2015-09-07 14:31:08 -03:00
leandrotoledo
f29a6f0e36
Update Document tests class
2015-09-07 14:17:41 -03:00
leandrotoledo
1b0c3731de
Update Base tests class
2015-09-07 14:12:58 -03:00
leandrotoledo
4be946d116
Much better, such wow GroupChat tests
2015-09-07 14:10:57 -03:00
leandrotoledo
73e36e3b73
Much better, such wow User tests
2015-09-07 14:03:20 -03:00
leandrotoledo
6141e76693
Much better, such wow Update tests
2015-09-07 13:55:28 -03:00
leandrotoledo
61ef876532
Much better, such wow Contact tests
2015-09-07 13:42:51 -03:00
leandrotoledo
060442e0ae
Much better, such wow Sticker tests
2015-09-07 12:10:29 -03:00
leandrotoledo
2254440671
Much better, such wow Document tests
2015-09-07 11:55:55 -03:00
leandrotoledo
65a224884f
Much better, such wow Audio/Voice/Video tests
2015-09-07 11:22:25 -03:00
leandrotoledo
0218aa2f4e
Much better, such wow Voice tests
2015-09-07 09:56:51 -03:00
leandrotoledo
28e81ee9f6
Much better, such wow Audio tests
2015-09-07 09:56:41 -03:00
mattijn
6ffcdcf2fe
removed unused imports
2015-09-07 05:13:08 +02:00
mattijn
89bab207b6
pep8
2015-09-07 05:11:08 +02:00
mattijn
69aa1c252b
added an easier way to get frequent commands from message.
2015-09-07 04:55:00 +02:00
mattijn
5b8f41b3c1
pep 8 command_handler.py
2015-09-07 04:17:43 +02:00
mattijn
ea5c690e7a
add a help for extra commands.
2015-09-07 03:38:07 +02:00
mattijn
9145f24efa
added a father command. and some other a way to hide commands in the help.
2015-09-07 03:13:40 +02:00
leandrotoledo
c590d9c2fd
Moving _requestURL method to utils package
2015-09-05 11:56:06 -03:00
leandrotoledo
cfd401f22b
Moving _requestURL method to utils package
2015-09-05 11:55:55 -03:00
leandrotoledo
7f790c3cb2
Releasing v2.8.2
2015-09-04 23:23:41 -03:00
leandrotoledo
30749c3b66
Merging testing
2015-09-04 23:21:31 -03:00
leandrotoledo
8f0447156b
Merge branch 'testing'
2015-09-04 23:20:31 -03:00
leandrotoledo
df000f8086
Fix regression on ReplyMarkup and add certificate to is_inputfile method
2015-09-04 23:20:14 -03:00
Leandro Toledo
3d835527e0
Update README.rst
2015-09-04 23:07:03 -03:00
Leandro Toledo
323052a6c9
Update README.rst
2015-09-04 23:05:14 -03:00
Leandro Toledo
ef4871cce1
Update README.rst
2015-09-04 19:14:54 -03:00
leandrotoledo
f355af1d2b
Restoring new features after rebase
2015-09-04 19:11:31 -03:00
leandrotoledo
121e365348
Oops, restoring file on testing
2015-09-04 19:07:20 -03:00
leandrotoledo
82f1d18f4b
Releasing v2.8.1
2015-09-04 19:00:54 -03:00
leandrotoledo
79cdb6cafe
Adding test to check if thumbs are PhotoSize instances
2015-09-04 18:58:48 -03:00
leandrotoledo
49ff02dcf4
Fix regression on Telegram objects with thumb properties
2015-09-04 18:50:26 -03:00
leandrotoledo
be23ff5d29
Fix codeclimate
2015-09-04 18:35:35 -03:00
leandrotoledo
72a7355c2f
Fix codeclimate
2015-09-04 18:33:51 -03:00
leandrotoledo
64cf9ed941
Fix codeclimate
2015-09-04 18:29:37 -03:00
leandrotoledo
bb84113272
Releasing 2.8
2015-09-04 18:19:05 -03:00
leandrotoledo
d740ce89cf
Keep off some features still in progress
2015-09-04 18:11:47 -03:00
leandrotoledo
245238b3a2
Keep off some features still in progress
2015-09-04 18:03:04 -03:00
Leandro Toledo
e693922fe8
Merge pull request #54 from leandrotoledo/testing
...
Merge Testing branch
2015-09-04 17:59:37 -03:00
leandrotoledo
62f06da897
Move command_handler tests to tests/ folder
2015-09-04 17:54:30 -03:00
leandrotoledo
05b7fda4a1
Add certificate arg to setWebhook function
2015-09-04 17:53:39 -03:00
leandrotoledo
910959b672
Raises error when chat_id is not set
2015-09-04 17:15:44 -03:00
Leandro Toledo
881b0b3d06
Update README.rst
2015-09-02 13:23:11 -03:00
Leandro Toledo
95ecd44c0e
Merge pull request #51 from njittam/testing
...
Adding command handler
2015-09-02 13:20:33 -03:00
njittam
9241534ba6
Create command_handler_example.py
...
this is an example of how to write a commandHandler
2015-09-02 16:21:11 +02:00
njittam
256d219862
A command handler
...
I saw in the TODO list on pypi that you wanted a commandhandler.
I am not sure about the run and run_once commands.
and I didn't implement logging yet.
2015-09-02 16:17:57 +02:00
njittam
8fddd3b027
test for commandHandler
...
Not everything has a test. and I'm quite new to unit testing so I'm not sure if I am doing this the right way.
2015-09-02 16:11:21 +02:00
njittam
3f3cb1edc5
Update AUTHORS.rst
2015-09-02 16:04:15 +02:00
Leandro Toledo
f037a8c776
Update README.rst
2015-08-29 10:55:23 -03:00
Leandro Toledo
98c489c44f
Fix Python 3
2015-08-28 17:53:31 -03:00
Leandro Toledo
a86fc6c2ac
Improving the design of existing Telegram classes
2015-08-28 17:45:44 -03:00
Leandro Toledo
1c4595123c
Add improvements to tests
2015-08-28 13:28:58 -03:00
Leandro Toledo
942706e20f
Add PyPy to travis
2015-08-28 13:09:47 -03:00
Leandro Toledo
6837bef9bb
Fix tests for Py2.6
2015-08-28 13:07:12 -03:00
Leandro Toledo
6132e65dc3
Fix travis
2015-08-28 13:04:36 -03:00
Leandro Toledo
0f924508f7
Fix tests and minor changes
2015-08-28 13:02:02 -03:00
Leandro Toledo
b20f5af1e1
Improving the design of existing Telegram classes and adding docstrings
2015-08-28 12:19:30 -03:00
Leandro Toledo
ce58f72566
Merge branch 'testing' of https://github.com/leandrotoledo/python-telegram-bot into testing
2015-08-28 11:11:32 -03:00
Leandro Toledo
f4839a3afe
Merge pull request #47 from mASOUDd/testing
...
Extended the Bot class. Added a dispatching mechanism, and decorators to add commands.
2015-08-28 10:50:18 -03:00
Masoud Naservand
25f9eb7898
Extended the Bot class. Added a dispatching mechanism,
...
and decorators to add command to the bot the flask routing style, e.g:
>>> @bot.command('/start')
... def start(command, user_id):
... return ('Hello, there', None, None)
2015-08-28 18:08:03 +04:30
Leandro Toledo
c625b9a449
Update README.rst
2015-08-26 21:45:09 -03:00
Leandro Toledo
e239315cca
Merge pull request #46 from rahiel/master
...
add remaining chat actions
2015-08-25 11:22:03 -03:00
rahiel
ccdb999e37
add remaining chat actions
2015-08-25 13:45:02 +02:00
Leandro Toledo
2f99b785b2
Merge pull request #45 from rahiel/master
...
use long polling in examples
2015-08-24 09:26:20 -03:00
rahiel
41eb45918c
use long polling in examples
2015-08-24 11:46:33 +02:00
leandrotoledo
d43e292499
Adding required comments
2015-08-21 23:22:58 -03:00
leandrotoledo
fdb5f2339c
Improving the design of existing Telegram classes and adding docstrings
2015-08-21 23:15:29 -03:00
leandrotoledo
d03a394075
Refactoring, improving the design of existing message class and adding docstrings
2015-08-21 14:49:07 -03:00
Leandro Toledo
3658b4231c
Update README.rst
2015-08-21 14:09:13 -03:00
leandrotoledo
1d6e9502cb
Adding botan.io support
2015-08-20 21:07:49 -03:00
Leandro Toledo
92ca92341a
Merge pull request #43 from rahiel/master
...
confirm processed message in examples
2015-08-20 15:49:21 -03:00
rahiel
0691b1e971
confirm processed message in examples
2015-08-20 19:58:57 +02:00
leandrotoledo
8746222cf6
Releasing v2.7.1
2015-08-19 16:16:06 -03:00
leandrotoledo
32dc05ed36
Fix lines too long
2015-08-19 16:08:03 -03:00
leandrotoledo
ba5902c1d4
Fix serialization when message has reply_to_message, new_chat_participant or new_chat_photo #42
2015-08-19 15:41:09 -03:00
Leandro Toledo
80371c9f6e
Merge branch 'master' of https://github.com/leandrotoledo/python-telegram-bot
2015-08-17 13:15:41 -03:00
Leandro Toledo
a8fd6b5061
Releasing v2.7
2015-08-17 13:15:29 -03:00
Leandro Toledo
53f5911aad
Update README.rst
2015-08-17 11:45:28 -03:00
Leandro Toledo
d4870148c7
Add telegram.voice to docs and minor docstring fixes #39
2015-08-17 11:40:21 -03:00
Leandro Toledo
6e2881b31b
Adding support for Voice object and sendVoice method #39
2015-08-17 11:34:42 -03:00
Leandro Toledo
686aecb914
Fix tests for Python 3
2015-08-17 10:01:17 -03:00
Leandro Toledo
35f31bf136
Merge branch 'master' of https://github.com/leandrotoledo/python-telegram-bot
2015-08-17 09:57:07 -03:00
Leandro Toledo
56f6845969
Adding is_json tests and fixes json serialization when a forwared message #38
2015-08-17 09:56:51 -03:00
Leandro Toledo
505df01ae1
Update AUTHORS.rst
2015-08-15 15:19:17 -03:00
Leandro Toledo
3be58b759f
Releasing v2.6.1
2015-08-15 15:06:32 -03:00
Leandro Toledo
5dc1e4cac1
Use imghdr instead re to match image headers. Fixes #37
2015-08-15 15:00:28 -03:00
Leandro Toledo
2cecca8324
Releasing v2.6.0
2015-08-14 16:36:39 -03:00
Leandro Toledo
109439022f
Minor fixes and cfg for setuptools
2015-08-14 16:30:30 -03:00
Leandro Toledo
59ff1b68b5
clearCredentians and require_authentication are now decapred, bot properties will be called when needed only #33
2015-08-14 16:25:27 -03:00
Leandro Toledo
fda1843593
Remove import pdb
2015-08-14 15:48:33 -03:00
Leandro Toledo
9b6ccaf94b
Convert unix timestamp from date and forward_date in messages to date object #35
2015-08-14 15:47:31 -03:00
Leandro Toledo
ea1614631e
Update and rename CONTRIBUTING to CONTRIBUTING.rst
2015-08-12 18:57:46 -03:00
Leandro Toledo
6bcc8cdcfd
Update AUTHORS.rst
2015-08-12 18:44:40 -03:00
leandrotoledo
9b3ce5069e
Releasing 2.5.3
2015-08-11 23:49:26 -03:00
leandrotoledo
f2671ffff3
fix space trailing
2015-08-11 23:46:09 -03:00
Leandro Toledo
3974690b90
Fixes base_url when pickling object
2015-08-11 23:43:40 -03:00
Leandro Toledo
66b3f8bbd3
Adding CONTRIBUTING
2015-08-11 18:24:53 -03:00
Leandro Toledo
140e68dd20
Update README.rst
2015-08-11 18:15:45 -03:00
Leandro Toledo
46cf2c250e
Update README.rst
2015-08-11 18:07:32 -03:00