Skip to content

Commit

Permalink
fix(telegram_bot_token): bot should not be in the token
Browse files Browse the repository at this point in the history
`bot` is only used while verifying the token, as per https://core.telegram.org/bots/api#authorizing-your-bot
  • Loading branch information
jfagoagas authored Sep 3, 2024
1 parent 5bafc1d commit 41f7746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/plugins/telegram_token_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class TestTelegramTokenDetector:
@pytest.mark.parametrize(
'payload, should_flag',
[
('bot110201543:AAHdqTcvCH1vGWJxfSe1ofSAs0K5PALDsaw', True),
('110201543:AAHdqTcvCH1vGWJxfSe1ofSAs0K5PALDsaw', True),
('110201543:AAHdqTcvCH1vGWJxfSe1ofSAs0K5PALDsaw', True),
('7213808860:AAH1bjqpKKW3maRSPAxzIU-0v6xNuq2-NjM', True),
('foo:AAH1bjqpKKW3maRSPAxzIU-0v6xNuq2-NjM', False),
Expand Down

0 comments on commit 41f7746

Please sign in to comment.