Tobias Perschon
7424c296b7
Add missing services and strings entries for reply_to_message_id ( #105072 )
2023-12-06 11:01:05 +01:00
Matthias Dunda
0f3cb9b1b6
Add telegram message timestamp to event data ( #87493 )
2023-12-04 10:53:59 +01:00
Kalpit
b35afab5ef
Add reply_to_message_id to all telegram_bot message types ( #103566 )
2023-11-14 16:41:13 +01:00
YuriiMaiboroda
ca7355b2f3
Using the MarkdownV2 parser with the Telegram bot ( #101139 )
2023-10-06 12:26:20 +02:00
Zehuan Li
41cb8526d1
Add secret_token support to telegram_bot component ( #100869 )
...
* Support secret_token for setWebHook api
* Revert configuration YAML changes; generate and store secret token instead
* Reformat codes
* Revert storage of secret token; use ephemeral secret token instead
* Reformat
* Update homeassistant/components/telegram_bot/webhooks.py
* Fix when header is not present
* Check for non-empty token
* Fix tests to support secret token
* Add tests for invalid secret token
* Minor: remove comment
* Revert back to 401
* ... and for tests
* Change patching method for the generation of secret tokens
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-10-02 11:44:15 +02:00
Jan Bouwhuis
50da5c3fae
Fix typo in telegram_bot translations ( #97793 )
2023-08-04 21:35:35 +02:00
Paulus Schoutsen
7859be6481
Add deduplicate translations script ( #96384 )
...
* Add deduplicate script
* Fix forecast_solar incorrect key with space
* Fix utf-8
* Do not create references to other arbitrary other integrations
* Add commented code to only allow applying to referencing integrations
* Tweak
* Bug fix
* Add command line arg for limit reference
* never suggest to update common keys
* Output of script
* Apply suggestions from code review
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
Franck Nijhof
4edec69637
Migrate integration services (T-V) to support translations ( #96379 )
2023-07-12 07:37:13 +02:00
Maxim Oei
36b0fc17df
Update Telegram bot to support URLs in inlineKeyboard ( #70445 )
...
* Update Telegram bot to support URLs in inlineKeyboard
Update creation of InlineKeyboardButton to support url case, on top of callbacks
* linting
* Apply suggestions from code review
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-06-28 12:56:00 +02:00
Vova-SH
f8fdeeabc2
Add resize_keyboard and one_time_keyboard attributes to telegram bot service ( #91613 )
...
* Add new params for telegram bot
Add resize_keyboard and one_time_keyboard attributes
* Apply review changes
* Update homeassistant/components/telegram_bot/__init__.py
* Update __init__.py
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-05-24 16:07:22 +02:00
Erik Montnemery
b0b1d8143f
Sort manifests 10 ( #87031 )
2023-02-08 20:41:50 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 ( #87347 )
2023-02-03 23:08:48 +01:00
Franck Nijhof
3b5fd4bd06
Enable Ruff TRY004 ( #86811 )
2023-01-30 14:06:52 +01:00
Franck Nijhof
8819634b61
String formatting and max line length - Part 6 ( #84525 )
2022-12-24 13:19:51 +01:00
epenet
0f33c08dca
Remove telegram_bot from mypy ignore list ( #74661 )
2022-07-09 19:52:26 +02:00
Lerosen
8b97271c26
Telegram bot map user data for callback query ( #74302 )
...
fix(component/telegram-bot): map user data for callback query
2022-07-06 11:21:15 +02:00
Anders Liljekvist
f5d8487768
Add send_poll to telegram bot ( #68666 )
2022-06-29 07:08:58 -07:00
Paulus Schoutsen
c765e11f55
Fix telegram broadcast ( #69452 )
2022-04-06 10:44:02 -07:00
Wictor
d7375f1a9c
Refactor telegram_bot polling/webhooks platforms and add tests ( #66433 )
...
Co-authored-by: Pär Berge <paer.berge@gmail.com>
2022-04-02 20:39:14 -07:00
Lars
e22f8496c0
Allow sending telegram stickers from sticker packs ( #57482 )
2022-02-23 10:42:17 -08:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json ( #65083 )
2022-01-28 13:37:53 -08:00
epenet
18056f3a8a
Add init type hints [t-u] ( #63194 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-01 22:06:11 -08:00
epenet
92ace6c2e8
Ensure service calls are typed [s-u] ( #62922 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 14:23:42 +01:00
J. Nick Koston
41bac5ccbb
Fix non-threadsafe call to async_fire in telegram_bot ( #61465 )
...
Fixes https://github.com/home-assistant/core/issues/53255#issuecomment-888111478
2021-12-11 11:20:58 +01:00
Marc Mueller
c979e89b70
Use assignment expressions 14 ( #57939 )
2021-10-21 08:26:01 +02:00
Ville Skyttä
d8d34fdd3b
Prefer HTTPStatus over int in HA view JSON functions ( #56504 )
...
* Prefer HTTPStatus over int in HA view JSON functions
* Update zwave tests to not expect a fixed typo
2021-09-22 21:59:52 +03:00
Joakim Sørensen
4f33679255
Fix url lookup in telegram_bot webhook ( #55587 )
2021-09-02 19:17:33 +02:00
Marc Mueller
69e413ac1e
Update pylint to 2.10.1 ( #54963 )
...
* Update pylint to 2.10.0
* useless-suppression
* Consider-using-tuple
* Apply suggestions from code review
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Use dict.items()
* Add pylint disable
* Use pylint 2.10.1
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-08-21 10:41:23 +02:00
Andrew55529
09947d13a8
Fix problem with telegram_bot ( #53690 )
2021-07-29 18:31:32 +02:00
Marc Mueller
f6b162bc39
Add pylint CodeStyle extension ( #53147 )
2021-07-19 06:57:06 -07:00
Farzad Noorian
fbf85fd86b
Add OAuth 2.0 Bearer Token authentication to send_file for telegram_bot ( #46567 )
2021-06-28 20:43:23 +02:00
Nikolai
52e7d57533
Processing of messages from channel by telegram_bot ( #51274 )
...
* Processing of messages from channel by telegram_bot
* formatted using Black
* refactor
* check allowed chat
2021-05-31 16:35:49 +02:00
tkdrob
028a07d86f
Wrap up selectors ( #50794 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
tkdrob
d37a3cded0
Add targets and selectors for services (S-T) ( #50629 )
2021-05-14 22:30:41 -07:00
Marc Mueller
f1d48ddfe3
Update pylint to 2.8.0 ( #49637 )
2021-04-24 14:39:24 -10:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest ( #46935 )
2021-04-15 10:21:38 +02:00
Marc Mueller
8e2b5b36b5
Bump pyupgrade to 2.12.0 ( #48943 )
2021-04-09 09:58:27 -07:00
J. Nick Koston
c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period ( #48064 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
Marc Mueller
16dcbf1467
Update pylint ( #47205 )
2021-02-28 22:09:01 -10:00
Olivér Falvai
6ffa3c18b2
Upgrade Telegram lib, refactor component for breaking changes ( #44147 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-12-17 21:09:58 +01:00
Tobias Perschon
266f82ac76
Add send animation service to telegram ( #41489 )
...
* added telegram sendAnimation api call
Signed-off-by: Tobias Perschon <tobias@perschon.at>
* more accurate service descriptions
Signed-off-by: Tobias Perschon <tobias@perschon.at>
* added 3rd parse_mode to description
2020-12-15 15:20:08 +01:00
Vladimir Dronnikov
a4b1990487
Add telegram_bot.send_voice service ( #43433 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-12-02 20:44:02 +01:00
Wictor
5fa00244da
Allow members of allowed groups to talk to telegram_bot ( #43241 )
2020-12-02 19:25:35 +01:00
Nikolai
a396f8f76f
Add telegram_sent event ( #41159 )
...
Co-authored-by: Heine Furubotten <hfurubotten@users.noreply.github.com>
2020-10-29 17:55:25 -05:00
Franck Nijhof
0e98bc5ea2
Skip template result parsing in several places ( #42408 )
...
* Skip template result parsing in several places
* Adjust alert integration
* Adjust Alexa integration
* Adjust apns integration
* Adjust arest integration
* Adjust dialogflow integration
* Adjust generic camera integration
* Adjust imap email content integration
* Adjust InfluxDB integration
* Adjust intent integration
* Adjust logbook integration
* Adjust HP ILO integration
* Adjust manual alarm control panel integration
* Adjust manual mqtt alarm control panel integration
* Adjust minio integration
* Adjust mqtt integration
* Adjust notify integration
* Adjust persistent notification integration
* Adjust rest integration
* Adjust rss feed template integration
* Adjust slack integration
* Adjust Xiaomi integration
* Adjust TCP integration
* Adjust Telegram Bot integration
* Bump CI cache version
* Revert "Bump CI cache version"
This reverts commit 875efe58cf
.
* Adjust demo tests
2020-10-26 19:29:10 +01:00
J. Nick Koston
9c719beded
Update telegram_bot to use async_add_executor_job ( #41924 )
2020-10-16 13:29:28 +02:00
Nikolai
27c3ce16c3
Fix spelling in telegram_bot services ( #41235 )
2020-10-04 22:52:02 +02:00
Franck Nijhof
cc4ebc925c
Improve X-Forwarded-* request headers handling ( #38696 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-08-11 22:57:50 +02:00
Franck Nijhof
53545c984b
Log lines do not end with a full stop ( #37527 )
2020-07-05 23:04:19 +02:00
Franck Nijhof
e3e3a113e9
async_get_url -> get_url ( #35382 )
2020-05-08 21:53:28 +02:00