Added Telegram Topic Thread ID Support (#854)

This commit is contained in:
Chris Caron
2023-05-12 18:37:19 -04:00
committed by GitHub
parent b327abf134
commit e83cba66a6
2 changed files with 38 additions and 1 deletions

View File

@ -98,6 +98,14 @@ apprise_url_tests = (
('tgram://bottest@123456789:abcdefg_hijklmnop/lead2gold/', {
'instance': NotifyTelegram,
}),
# Support Thread Topics
('tgram://bottest@123456789:abcdefg_hijklmnop/id1/?topic=12345', {
'instance': NotifyTelegram,
}),
# Threads must be numeric
('tgram://bottest@123456789:abcdefg_hijklmnop/id1/?topic=invalid', {
'instance': TypeError,
}),
# Testing image
('tgram://123456789:abcdefg_hijklmnop/lead2gold/?image=Yes', {
'instance': NotifyTelegram,