Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

N.B. please note that at this point the report being exported is just a zip file and the report export module has no knowledge of the structure of the report, therefore you need to specify exactly which files you wish to publish to Telegram, there is no option to automatically export the page for eacht location that is present in the report.


Example report export configuration, which exports the last current forecast report, generating an image for each html page, and sends three specific locations to a telegram channel:


Code Block
xml
xml
<reportExport ...>
	<reportExportRootDir>$REPORT_EXPORT_ROOT_DIR$</reportExportRootDir>
	<reportExportTelegramPhoto>
		<telegramBotToken>NNdDxIKKEe0ioFhF/v9V3coUf/fFG94HgP+16hvYQsJfdSR/s3JJx+9MzMoLA82S</telegramBotToken>
		<telegramChatId>-1001345024100</telegramChatId>
		<telegramSendPhoto>
			<reportTelegramFile>Telegram_Inhambane_2.jpeg</reportTelegramFile>
			<reportTelegramCaption>Inhambane, Morungulo (Massinga)</reportTelegramCaption>
		</telegramSendPhoto>
		<telegramSendPhoto>
			<reportTelegramFile>Telegram_Inhambane_5.jpeg</reportTelegramFile>
			<reportTelegramCaption>Inhambane, Zavora (Inharrime)</reportTelegramCaption>
		</telegramSendPhoto>
		<telegramSendPhoto>
			<reportTelegramFile>Telegram_Pemba_1.jpeg</reportTelegramFile>
			<reportTelegramCaption>Pemba, 'offshore' </reportTelegramCaption>
		</telegramSendPhoto>
	</reportExportTelegramPhoto>
	<currentForecastReports>
		<currentForcastSubDir>ForeCast</currentForcastSubDir>
		<numberCurrentForecasts>1</numberCurrentForecasts>
		<includeModuleInstanceId>Report_Telegram_Create</includeModuleInstanceId>
		<generatePdf>true</generatePdf> 
		<generateImage>jpeg</generateImage>
	</currentForecastReports>
</reportExport>