-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild and retest our mobile app to ensure server updates for outbra…
…nd web do not break mobile.
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const axios = require('axios'); | ||
|
||
const token = '6803978849:AAG1mCvJKpTUe2R5gcsXB9ZemuOUXMsPUlQ'; // Replace with your Telegram bot token | ||
const chatId = '-1001936016561'; // Replace with your group chat ID | ||
const url = `https://api.telegram.org/bot${token}/sendMessage`; | ||
|
||
const commitMessage = process.argv[2]; | ||
const commitAccount = process.argv[3]; | ||
|
||
const message = `Liftoff! 🚀 ${commitAccount} added to the code base: \"${commitMessage}\".`; | ||
|
||
axios.post(url, { | ||
chat_id: chatId, | ||
text: message, | ||
reply_to_message_id: '4127' | ||
}) | ||
.then(response => { | ||
console.log('Message posted within the topic'); | ||
console.log(response.data); | ||
}) | ||
.catch(error => { | ||
console.error('Error:', error); | ||
}); |