Skip to content

Latest commit

 

History

History
53 lines (50 loc) · 1.17 KB

README.md

File metadata and controls

53 lines (50 loc) · 1.17 KB

EmailToTelegram

Configuring the file Settings.json

FilePath is set automatically from appsettings.json, SettingsFilePath

{
	"FilePath": "<Path to Settings.json>",
	"TelegramBotAccessToken": "<TOKEN>",
	"Pop3Settings": [
		{
			"Host": "",
			"NoSslPort": 0,
			"SslPort": 0,
			"UseSsl": true,
			"Login": "",
			"Password": "",
			"StartMessageIndex": 0,
			"CommonTelegramChatId": "<CHAT_ID>",
			"CommonTelegramMessageThreadId": null,
			"MessageFilters": [
				{
					"TelegramChatId": "<CHAT_ID>",
					"TelegramMessageThreadId": null,
					"MessageSubjectRegexPattern": "<SUBJECT_REGEX_PATTERN>"
				}
			]
		}
  	],
	"ImapSettings": [
		{
			"Host": "",
			"NoSslPort": 0,
			"SslPort": 0,
			"UseSsl": true,
			"Login": "",
			"Password": "",
			"StartMessageIndex": 0,
			"CommonTelegramChatId": "<CHAT_ID>",
			"CommonTelegramMessageThreadId": null,
			"MessageFilters": [
				{
					"TelegramChatId": "<CHAT_ID>",
					"TelegramMessageThreadId": null,
					"MessageSubjectRegexPattern": "<SUBJECT_REGEX_PATTERN>"
				}
			]
		}
	],
  	"CheckingNewMessagesDelaySeconds": 60
}