Repost-rss

Материал из wiki-MyMakerBot

Назад: Авто репост

{key_clear}
{if !isset($black_list)}{$black_list=[]}{/if}
{if !isset($white_list)}{$white_list=[]}{/if}
{if !isset($registered)}{$registered=1}{/if}
{if !isset($src_link)}{$src_link=1}{/if}
{if !isset($sign)}{$sign=''}{/if}
{if !isset($group)}{$group='rss'}{/if}

{if !isset($v.description)}{$v['description']=''}{/if}
{if !isset($v.link)}{$v['link']=''}{/if}
{if !isset($v.pubDate)}{$v['pubDate']=''}{/if}
{if !isset($v.title)}{$v['title']=''}{/if}

{if $v.description|check_black_list:$black_list && $v.description|check_white_list:$white_list 
	&& (!$registered || !$v.guid|group_rss:$group:1) }

{if !isset($keys)}
   {$keys=0}
{/if}


{capture 'block'}
{if (isset($v['category']) && is_string($v['category']))}<b>{$v.category}</b>{/if}


<a href='{$v.link}'>{$v.title}</a>

<code>{$v.description}</code>

Опубликовано: <code>{date('d.m.Y H:i', strtotime($v.pubDate))}</code> {if $keys} {key l=1 t=$v.title c=$v.link} {/if}
{/capture}

{if isset($like) && $like}
	{import c=$like}
{/if}

{tg_sendMessage text=$smarty.capture.block disable_web_page_preview=0 chat_id=$chat_id keys=1}

{/if}
{key_clear}