Создание поста на канале через Telegram API, язык PHP
Нужна разработка простого php –скрипта, который будет создавать пост на телеграм канале через АПИ по определенному шаблону.
Скрипт будет запускаться кроном (типа: php posting.php)
Версия PHP 7+
Сценарий:
1. Подключение библиотек(если необходимо)
2. Необходимые конфиги (параметры своего канала айди, токены)
3. Другие настройки для постинга, доступные в API.
4. Инициализация переменных тестовыми значениями
5. Создание шаблона для телеграм постинга
6. Отправка через АПИ
7. Отправка уведомления о результате на почту (отправлен успешно, если нет – то информация о ошибке), обычной функцией mail.
8. Простейшие обработки ошибок
Вам нужно заполнить переменные тестовыми данными, и сделать так, чтоб при запуске скрипта, создавался пост по шаблону ниже.
Шаблон сообщения (схема):
<img src=”$message_img” />
$some_description
<br/>
foreach($categories as $category)
<b>$category[‘name’] </b><br/>
foreach($category[‘items’] as $item) >
<a href=”$item[‘href’]”> $item[‘name’]</a> $icon_symbol $item[‘rating’] > <br/>
<br/>
$some_description2
#$hashtag1 #$hashtag2
$link_to_site (вывести так, чтоб пост подхватывал данные с сайта, как на картинке http://moderato.site/telega_primer.jpg)
Комментарии к переменным:
$message_img – url картинки с сайта http://mysite.com/pic1.jpg
$some_description – текст
$icon_symbol - иконка
$categories – массив, категории с элементами
$some_description2– текст
$hashtag1 – хэштег
$link_to_site – ссылка на сайт
В заявке указывайте стоимость работы.
-
160 2 0 Добрый день! Готов приступить, большой опыт кастомных скриптов(свой код заточенный под заказчика и задачи). Большой опыт работы с разными cms и фреймворком laravel.
Пусть вас не обманет, что нету рейтинга. Сайтами занимаюсь 4 года но только сейчас пришел на фриланс. Так что о цене можем договориться. Обьязательно пишите!
-
297 3 1 Добрый день Инна
Реализую скприпт по вашим требования
Пишите, буду рад сотрудничеству
-
1410 19 0 Здравствуйте. Я уже создавал некоторые таких ботов. Есть опыт работы по телеграм апи с php
Обращайтесь если договорим то могу приступить к работе прямо сейчас
Telegram: lazerg
-
313 30 0 приветствую! Готов сделать, будет готово сегодня. Быстро и качественно.
Current freelance projects in the category PHP
Fix CLSIt is necessary to fix the Cumulative Layout Shift through code PageSpeed does not see this problem, but through Google Chrome, it is visible that there is a layout shift for the desktop version of the page According to Google Search, there is an error regarding the speed of… PHP, Web Programming ∙ 1 day 13 hours back ∙ 27 proposals |
Transfer the fully ready adaptive HTML5 structure to WordPress.
268 USD
I am looking for an experienced WordPress developer who can convert our meticulously prepared static HTML5/CSS3 code into a high-performance custom WordPress theme. The frontend is almost ready (about 99%): semantic markup, metadata, and multilingual structure (hreflang) are… Content Management Systems, PHP ∙ 1 day 15 hours back ∙ 61 proposals |
GoPos IntegrationHello, has anyone done an integration of GoPos with a custom website for a restaurant in Poland? I need help, their documentation is very sparse, there is only swagger and it lacks descriptions. https://app.gopos.io/doc/swagger-ui/index.html The essence is this: we used their… PHP, Web Programming ∙ 2 days 7 hours back ∙ 25 proposals |
Write meta data for ALT using AIA website on Laravel, the site has many images for which it is necessary to automatically generate correct semantic and relevant ALT descriptions for the images, with the possibility of verification. AI & Machine Learning, PHP ∙ 3 days 5 hours back ∙ 34 proposals |
A developer is needed to complete and integrate a project for automatic data collection and processing.
16 USD
The main part of the parser has already been implemented. The parser works in a Windows environment through Microsoft Edge: the site has anti-bot protection, so data collection is performed not through direct HTTP requests, but through a live browser session. The scripts control… PHP, Web Programming ∙ 3 days 11 hours back ∙ 25 proposals |