Skip to content

Commit

Permalink
Rebuild and retest our mobile app to ensure server updates for outbra…
Browse files Browse the repository at this point in the history
…nd web do not break mobile.
  • Loading branch information
xAIdrian committed Dec 18, 2023
1 parent 6814b05 commit 86f977c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ web-build/
# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
.env
actions/telegram-script.js
23 changes: 23 additions & 0 deletions actions/telegram-script.js
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);
});

0 comments on commit 86f977c

Please sign in to comment.