mastoposter-oss_images/config.ini

67 lines
2.4 KiB
INI
Raw Normal View History

2022-08-24 08:09:41 +03:00
[main]
2022-08-24 08:22:28 +03:00
; This is a list of output modules. Each module should be defined in section,
; named "module/MODULENAME". Space-separated list of strings.
2022-08-24 08:09:41 +03:00
modules = telegram
2022-08-24 08:22:28 +03:00
; Mastodon instance to grab posts from
2022-08-24 08:09:41 +03:00
instance = mastodon.example.org
2022-08-24 08:22:28 +03:00
; Mastodon user token.
; Required permissions: read:statuses read:lists
; You can get your token by creating application in
; ${instance}/settings/applications
2022-08-24 08:09:41 +03:00
token = blahblah
2022-08-24 08:22:28 +03:00
; Mastodon user ID. Used to filter out posts. Unfortunately, I can't find a way
; to get it using token itself. GARGOOOOOOON!!!!!
; Anyways, you could navigate to your profile ${instance}/@${username} and
; look for your profile picture link. For example, for me it's
; https://mastodon.astrr.ru/system/accounts/avatars/107/914/495/779/447/227/original/9651ac2f47cb2993.jpg
; that part between "avarars" and "original" is the user ID. Grab it, remove
; all of the slashes and you should be left with, for example, this:
user = 107914495779447227
; Mastodon user list ID. AGAIN, UNFORTUNATELY, there is no way to reliably use
; streaming API to get all of your posts. Using home timeline is unreliable and
; does not always include boosts, same with public:local
; So, create a list, add yourself here, and put its ID here (it should be in
; address bar while you have that list open)
2022-08-24 08:09:41 +03:00
list = 1
; Should we automatically reconnect to the streaming socket?
; That option exists because it's not really a big deal when crossposter runs
; as a service and restarts automatically by the service manager.
auto-reconnect = yes
2022-08-24 08:22:28 +03:00
; Example Telegram integration. You can use it as a template
2022-08-24 08:09:41 +03:00
[module/telegram]
2022-08-24 08:22:28 +03:00
; For Telegram it should be "telegram". Obviously
2022-08-24 08:09:41 +03:00
type = telegram
2022-08-24 08:22:28 +03:00
; Telegram Bot API token. There's plenty of guides how to obtain one.
; https://core.telegram.org/bots#3-how-do-i-create-a-bot
2022-08-24 08:09:41 +03:00
token = 12345:blahblah
2022-08-24 08:22:28 +03:00
; Telegram channel/chat ID or name. Also can be just a regular user.
; You can use @showjsonbot to obtain your channel ID, or just use its
; username, if it is public
2022-08-24 08:09:41 +03:00
chat = @username
2022-08-24 08:22:28 +03:00
; Should we show link to post as a link after post content?
2022-08-24 08:09:41 +03:00
show-post-link = yes
2022-08-24 08:22:28 +03:00
; Should we show link to original author before post content?
2022-08-24 08:09:41 +03:00
show-boost-from = yes
; Should we make posts silent?
; https://core.telegram.org/bots/api#sendmessage `disable_notification`
silent = true
; Discord integration
2022-08-24 08:09:41 +03:00
[module/discord]
type = discord
; Webhook URL with the `?wait=true`
2022-08-24 08:09:41 +03:00
webhook = url