Provides a simple way to recieve notifications of new messages from Discord through Telegram. Once a message is recieved on Discord the username of the sender is sent to Telegram through the Telegram Bot API. Before use of this program, please read the disclaimer outlined below.
The intended audience of this program is of users of AOSP (or one of its derivatives such as LineageOS or RattlesnakeOS) who do not have Google Play services. This is because apps like Discord rely on GCM or FCM to deliver push notifications, which is a service provided by Google Play services.
This will download dependencies before building.
go build main.go
The conf.json
configuration file requires three entries (see conf.json.example
).
discordToken
is the session token for Discord. This can be generated either interactively by running this program (do not attempt if two factor authentication is enabled on your account) and entering your username and password, or it may be obtained by logging into Discord on your browser and finding token
in Local Storage
(SHIFT
+F9
on Firefox).
telegramToken
is the token for the Telegram bot, which is provided by creating a bot by following the steps provided in the Telegram bot API documentation.
telegramChatID
refers to the Telegram user account, for which the ID can be obtained by messaging the Telegram bot @get_id_bot
.
The use of a user account interacting with Discord's API, opposed to that of a bot, is implicitly against Discord's terms of service. Therefore use of this program may result in the termination of your account. I take no responsibility in the event this may occur. However, as I have no knowledge of this occuring and that the program interacts to a very minimal extent with the API, the percieved risk is low.