Minor refactoring of template logic to avoid code repetition
FYI: I used html/template instead of txt/template for proper escaping, but it not fully solve the problem. To avoid a 503 Bad Request from Telegram server you should follow this requirements to the HTML code: https://core.telegram.org/bots/api#html-style
FYI: I used
html/template
instead oftxt/template
for proper escaping, but it not fully solve the problem. To avoid a503 Bad Request
from Telegram server you should follow this requirements to the HTML code: https://core.telegram.org/bots/api#html-style