[{"data":1,"prerenderedAt":550},["ShallowReactive",2],{"docs-page-\u002Fdocs\u002Fb418-tg-cf7\u002Fmessage-templates":3,"docs-navigation":515},{"id":4,"title":5,"body":6,"description":508,"extension":509,"meta":510,"navigation":53,"path":511,"seo":512,"stem":513,"__hash__":514},"docs\u002Fdocs\u002Fb418-tg-cf7\u002F4.message-templates.md","Message templates",{"type":7,"value":8,"toc":500},"minimark",[9,13,22,27,30,112,122,126,141,180,183,187,299,303,315,360,465,468,472,479,483,496],[10,11,5],"h1",{"id":12},"message-templates",[14,15,16,17,21],"p",{},"Templates control what the Telegram message says. They use the same ",[18,19,20],"code",{},"[field-name]"," tag syntax you already know from Contact Form 7 mail settings, plus a set of special tags.",[23,24,26],"h2",{"id":25},"the-default-message","The default message",[14,28,29],{},"A connection without a template uses the built-in default:",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-markdown shiki shiki-themes github-dark","📩 New form submission\n\nForm: [_form_title]\nSite: [_site_title]\nDate: [_date] [_time]\n\n[all_fields]\n","markdown","",[18,38,39,48,55,68,79,96,101],{"__ignoreMap":36},[40,41,44],"span",{"class":42,"line":43},"line",1,[40,45,47],{"class":46},"s95oV","📩 New form submission\n",[40,49,51],{"class":42,"line":50},2,[40,52,54],{"emptyLinePlaceholder":53},true,"\n",[40,56,58,61,65],{"class":42,"line":57},3,[40,59,60],{"class":46},"Form: [",[40,62,64],{"class":63},"sSArK","_form_title",[40,66,67],{"class":46},"]\n",[40,69,71,74,77],{"class":42,"line":70},4,[40,72,73],{"class":46},"Site: [",[40,75,76],{"class":63},"_site_title",[40,78,67],{"class":46},[40,80,82,85,88,91,94],{"class":42,"line":81},5,[40,83,84],{"class":46},"Date: [",[40,86,87],{"class":63},"_date",[40,89,90],{"class":46},"] [",[40,92,93],{"class":63},"_time",[40,95,67],{"class":46},[40,97,99],{"class":42,"line":98},6,[40,100,54],{"emptyLinePlaceholder":53},[40,102,104,107,110],{"class":42,"line":103},7,[40,105,106],{"class":46},"[",[40,108,109],{"class":63},"all_fields",[40,111,67],{"class":46},[14,113,114,117,118,121],{},[18,115,116],{},"[all_fields]"," expands to a ",[18,119,120],{},"name: value"," line for every submitted field (empty fields are skipped).",[23,123,125],{"id":124},"field-tags","Field tags",[14,127,128,129,132,133,136,137,140],{},"Every form field is available as a tag named after the field. For a form with ",[18,130,131],{},"your-name",", ",[18,134,135],{},"your-email",", and ",[18,138,139],{},"your-message"," fields:",[31,142,144],{"className":33,"code":143,"language":35,"meta":36,"style":36},"🔥 New lead from [your-name]\n\nEmail: [your-email]\n\n[your-message]\n",[18,145,146,155,159,168,172],{"__ignoreMap":36},[40,147,148,151,153],{"class":42,"line":43},[40,149,150],{"class":46},"🔥 New lead from [",[40,152,131],{"class":63},[40,154,67],{"class":46},[40,156,157],{"class":42,"line":50},[40,158,54],{"emptyLinePlaceholder":53},[40,160,161,164,166],{"class":42,"line":57},[40,162,163],{"class":46},"Email: [",[40,165,135],{"class":63},[40,167,67],{"class":46},[40,169,170],{"class":42,"line":70},[40,171,54],{"emptyLinePlaceholder":53},[40,173,174,176,178],{"class":42,"line":81},[40,175,106],{"class":46},[40,177,139],{"class":63},[40,179,67],{"class":46},[14,181,182],{},"Checkbox and multi-select values are joined with commas.",[23,184,186],{"id":185},"special-tags","Special tags",[188,189,190,203],"table",{},[191,192,193],"thead",{},[194,195,196,200],"tr",{},[197,198,199],"th",{},"Tag",[197,201,202],{},"Value",[204,205,206,219,229,239,249,259,269,279,289],"tbody",{},[194,207,208,213],{},[209,210,211],"td",{},[18,212,116],{},[209,214,215,216,218],{},"All submitted fields as a ",[18,217,120],{}," list",[194,220,221,226],{},[209,222,223],{},[18,224,225],{},"[_form_title]",[209,227,228],{},"Form title",[194,230,231,236],{},[209,232,233],{},[18,234,235],{},"[_site_title]",[209,237,238],{},"Site title",[194,240,241,246],{},[209,242,243],{},[18,244,245],{},"[_site_url]",[209,247,248],{},"Site URL",[194,250,251,256],{},[209,252,253],{},[18,254,255],{},"[_page_url]",[209,257,258],{},"Page the form was submitted from",[194,260,261,266],{},[209,262,263],{},[18,264,265],{},"[_date]",[209,267,268],{},"Submission date (site date format)",[194,270,271,276],{},[209,272,273],{},[18,274,275],{},"[_time]",[209,277,278],{},"Submission time (site time format)",[194,280,281,286],{},[209,282,283],{},[18,284,285],{},"[_user_ip]",[209,287,288],{},"Visitor IP address",[194,290,291,296],{},[209,292,293],{},[18,294,295],{},"[_user_agent]",[209,297,298],{},"Visitor browser (user agent)",[23,300,302],{"id":301},"html-formatting","HTML formatting",[14,304,305,306,310,311,314],{},"Each template has a ",[307,308,309],"strong",{},"parse mode",": plain text or ",[307,312,313],{},"Telegram HTML",". With HTML enabled you can use the tags Telegram accepts:",[14,316,317,132,320,132,323,132,326,132,329,132,332,132,335,132,338,132,341,132,344,132,347,132,350,132,353,136,356,359],{},[18,318,319],{},"\u003Cb>",[18,321,322],{},"\u003Cstrong>",[18,324,325],{},"\u003Ci>",[18,327,328],{},"\u003Cem>",[18,330,331],{},"\u003Cu>",[18,333,334],{},"\u003Cins>",[18,336,337],{},"\u003Cs>",[18,339,340],{},"\u003Cstrike>",[18,342,343],{},"\u003Cdel>",[18,345,346],{},"\u003Ca href=\"…\">",[18,348,349],{},"\u003Ccode>",[18,351,352],{},"\u003Cpre>",[18,354,355],{},"\u003Cblockquote>",[18,357,358],{},"\u003Ctg-spoiler>",".",[31,361,365],{"className":362,"code":363,"language":364,"meta":36,"style":36},"language-html shiki shiki-themes github-dark","\u003Cb>New lead\u003C\u002Fb> from \u003Ca href=\"[_page_url]\">[_form_title]\u003C\u002Fa>\n\n\u003Cb>Name:\u003C\u002Fb> [your-name]\n\u003Cb>Email:\u003C\u002Fb> \u003Ccode>[your-email]\u003C\u002Fcode>\n\n\u003Cblockquote>[your-message]\u003C\u002Fblockquote>\n","html",[18,366,367,406,410,424,447,451],{"__ignoreMap":36},[40,368,369,372,376,379,381,384,387,391,394,398,401,403],{"class":42,"line":43},[40,370,371],{"class":46},"\u003C",[40,373,375],{"class":374},"s4JwU","b",[40,377,378],{"class":46},">New lead\u003C\u002F",[40,380,375],{"class":374},[40,382,383],{"class":46},"> from \u003C",[40,385,386],{"class":374},"a",[40,388,390],{"class":389},"svObZ"," href",[40,392,393],{"class":46},"=",[40,395,397],{"class":396},"sU2Wk","\"[_page_url]\"",[40,399,400],{"class":46},">[_form_title]\u003C\u002F",[40,402,386],{"class":374},[40,404,405],{"class":46},">\n",[40,407,408],{"class":42,"line":50},[40,409,54],{"emptyLinePlaceholder":53},[40,411,412,414,416,419,421],{"class":42,"line":57},[40,413,371],{"class":46},[40,415,375],{"class":374},[40,417,418],{"class":46},">Name:\u003C\u002F",[40,420,375],{"class":374},[40,422,423],{"class":46},"> [your-name]\n",[40,425,426,428,430,433,435,438,440,443,445],{"class":42,"line":70},[40,427,371],{"class":46},[40,429,375],{"class":374},[40,431,432],{"class":46},">Email:\u003C\u002F",[40,434,375],{"class":374},[40,436,437],{"class":46},"> \u003C",[40,439,18],{"class":374},[40,441,442],{"class":46},">[your-email]\u003C\u002F",[40,444,18],{"class":374},[40,446,405],{"class":46},[40,448,449],{"class":42,"line":81},[40,450,54],{"emptyLinePlaceholder":53},[40,452,453,455,458,461,463],{"class":42,"line":98},[40,454,371],{"class":46},[40,456,457],{"class":374},"blockquote",[40,459,460],{"class":46},">[your-message]\u003C\u002F",[40,462,457],{"class":374},[40,464,405],{"class":46},[14,466,467],{},"Field values are automatically HTML-escaped when the template is sent in HTML mode, so user input can never break your markup or inject links.",[23,469,471],{"id":470},"testing-templates","Testing templates",[14,473,474,475,478],{},"Use the ",[307,476,477],{},"Test"," action on a connection to render the template with sample field values and deliver it to the connected chats — the fastest way to iterate on formatting.",[23,480,482],{"id":481},"for-developers","For developers",[14,484,485,486,359],{},"The rendered text and the placeholder map can both be modified with filters — see ",[386,487,489,492,493],{"href":488},"\u002Fdocs\u002Fb418-tg-cf7\u002Fhooks",[18,490,491],{},"b418_wp_tg_cf7_message_text"," and ",[18,494,495],{},"b418_wp_tg_cf7_placeholders",[497,498,499],"style",{},"html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .sSArK, html code.shiki .sSArK{--shiki-default:#DBEDFF;--shiki-default-text-decoration:underline}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .s4JwU, html code.shiki .s4JwU{--shiki-default:#85E89D}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}",{"title":36,"searchDepth":50,"depth":50,"links":501},[502,503,504,505,506,507],{"id":25,"depth":50,"text":26},{"id":124,"depth":50,"text":125},{"id":185,"depth":50,"text":186},{"id":301,"depth":50,"text":302},{"id":470,"depth":50,"text":471},{"id":481,"depth":50,"text":482},"Customize Telegram notification text with CF7-style field tags, special tags, and optional Telegram HTML formatting.","md",{},"\u002Fdocs\u002Fb418-tg-cf7\u002Fmessage-templates",{"title":5,"description":508},"docs\u002Fb418-tg-cf7\u002F4.message-templates","4Mti0PKlQYnCoDJKU99C_HbePECaX6pGfEyBRVJVQRE",[516],{"title":517,"path":518,"stem":519,"children":520},"Docs","\u002Fdocs","docs",[521,524],{"title":522,"path":518,"stem":523},"Overview","docs\u002Findex",{"title":525,"path":526,"stem":527,"children":528,"page":549},"Telegram for CF7","\u002Fdocs\u002Fb418-tg-cf7","docs\u002Fb418-tg-cf7",[529,533,537,541,542,545],{"title":530,"path":531,"stem":532},"Getting started","\u002Fdocs\u002Fb418-tg-cf7\u002Fgetting-started","docs\u002Fb418-tg-cf7\u002F1.getting-started",{"title":534,"path":535,"stem":536},"Bots & chats","\u002Fdocs\u002Fb418-tg-cf7\u002Fbots-and-chats","docs\u002Fb418-tg-cf7\u002F2.bots-and-chats",{"title":538,"path":539,"stem":540},"Connections & routing","\u002Fdocs\u002Fb418-tg-cf7\u002Fconnections","docs\u002Fb418-tg-cf7\u002F3.connections",{"title":5,"path":511,"stem":513},{"title":543,"path":488,"stem":544},"Developer hooks","docs\u002Fb418-tg-cf7\u002F5.hooks",{"title":546,"path":547,"stem":548},"FAQ & troubleshooting","\u002Fdocs\u002Fb418-tg-cf7\u002Ffaq","docs\u002Fb418-tg-cf7\u002F6.faq",false,1784301861415]